22nd of 12 in Chat apps
chatbot
Next.js chat template with Auth.js, Postgres history and AI Gateway models
Live demo ↗
(opens in a new tab)Documentation ↗
(opens in a new tab)Repository on GitHub ↗
(opens in a new tab)
- Stars
- 21k
- License
- Apache-2.0
- Last commit
- Jul 2026
- Language
- TypeScript
Overview
Clone it and you get a Next.js App Router chat app on the AI SDK with Auth.js login, chat history in Neon Postgres through Drizzle migrations, file uploads to Vercel Blob and a streaming UI on shadcn/ui. Models route through Vercel AI Gateway; Mistral, Moonshot, DeepSeek, OpenAI and xAI are preconfigured in lib/ai/models.ts. For teams starting a chat product on Vercel who want auth and persistence wired on day one.
Who it is for: Teams starting a chat product on Next.js and Vercel
Strengths
- Auth.js, Postgres chat history and Drizzle migrations wired out of the box
- Live demo plus a separate docs site
- Per-model provider routing in lib/ai/models.ts; swapping vendors is a small edit
- Tests included
Weaknesses
- Defaults to Vercel services: AI Gateway, Neon Postgres, Vercel Blob
- Off Vercel you must set AI_GATEWAY_API_KEY and replace Blob storage
- No Docker or compose files
What it needs
- TypeScript, ai-gateway, ai-sdk, openai, mistral
- Needs postgres, vercel-blob, ai-gateway-api-key
- GitHub template
- env example file
- sign-in: Auth.js
Also in Chat apps
See all 12| Rank | Project | Score |
|---|---|---|
| 1 | langchain-nextjs-templateNext.js routes for LangChain.js chat, agents, structured output and RAG | 63 out of 100 |
| 3 | chatNuxt UI chat template with GitHub login, SQLite history and AI Gateway | 52 out of 100 |
| #4 | gemini-chatbotNext.js chatbot template defaulting to Gemini with NextAuth and Postgres | 50 out of 100 |
| #5 | claude-quickstartsIndependent Claude API starter projects, one folder per pattern | 48 out of 100 |
| #6 | twitterbioSingle-form Next.js text generator streaming from Together AI | 45 out of 100 |