#55th of 18 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
- 21.1k
- License
- Apache-2.0
- Last commit
- Nov 2026
- Language
- TypeScript
19,696 on 28 Mar 202621,078 on 21 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Vercel is hiring: 86 open roles
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
Head to head
Also in Chat apps
See all 18| Rank | Project | Score |
|---|---|---|
| 3 | chatgpt-telegram-workersTelegram bot that proxies chat to multiple LLM providers on Cloudflare Workers | 69 out of 100 |
| #4 | ant-design-x-vueVue component library for building AI chat interfaces, port of Ant Design X | 69 out of 100 |
| #6 | boarduiReact component library for agent UIs, installed as source via CLI | 58 out of 100 |
| #7 | langchain-nextjs-templateNext.js routes for LangChain.js chat, agents, structured output and RAG | 57 out of 100 |
| #8 | twitterbioSingle-form Next.js text generator streaming from Together AI | 49 out of 100 |