Vercel's Open-Source Chatbot Template Hits 20.9k Stars on GitHub
Vercel's open-source Next.js chatbot template hits 20.9k stars, shipping artifacts, multi-model routing, auth, persistence, and Playwright tests out of the box.
Takeaways
- Vercel's open-source Next.js chatbot template reaches 20.9k stars and 6.7k forks.
- Ships with streaming chat, Auth.js, Neon Postgres via Drizzle, and Vercel Blob file uploads.
- Supports Mistral, Moonshot, DeepSeek, OpenAI, and xAI through the AI Gateway.
- Includes Text, Code, Image, and Sheet artifacts similar to ChatGPT Canvas and Claude Artifacts.
- Uses AI SDK streamText, useChat hook, and onFinish persistence for message round-trips.
- Playwright E2E tests, resumable streams, and tool approval flows ship as customization modules.
Building a production-grade chatbot from scratch means wiring together streaming APIs, auth, persistence, file uploads, rate limiting, and a UI that does not look like a hackathon demo. Vercel's open-source template hands you all of that pre-assembled, and it has now crossed 20.9k stars with 6.7k forks, making it one of the most-copied AI starter kits on GitHub.
Chatbot (formerly AI Chatbot) is a free, open-source template built with Next.js and the AI SDK. The repo is configured as a GitHub template, licensed permissively, and deployable to Vercel with one click.
What ships in the box
The stack is opinionated but conventional for the Next.js ecosystem. It uses the App Router with React Server Components and Server Actions, the AI SDK for unified text generation, structured objects and tool calls, and shadcn/ui components styled with Tailwind CSS on Radix primitives. Neon Serverless Postgres handles chat history and user data, Vercel Blob stores files, and Auth.js manages sessions.
A few features push it past the usual ChatGPT clone:
- Artifacts workspace: A workspace-style UI alongside chat, similar to ChatGPT's Canvas and Claude's Artifacts. The template ships with Text, Code, Image, and Sheet artifacts, each with client and server halves you can fork.