#55th of 18 in Chat apps

chatbot

Next.js chat template with Auth.js, Postgres history and AI Gateway models

Releases and problems feed (RSS)

Stars
21.1k
License
Apache-2.0
Last commit
Nov 2026
Language
TypeScript
Stars, last 34 weeks+1,382
28 Mar 2026: 19,696 stars4 Apr 2026: 19,766 stars11 Apr 2026: 19,817 stars18 Apr 2026: 19,887 stars25 Apr 2026: 19,938 stars2 May 2026: 19,986 stars9 May 2026: 20,040 stars16 May 2026: 20,094 stars23 May 2026: 20,150 stars30 May 2026: 20,204 stars6 Jun 2026: 20,250 stars13 Jun 2026: 20,298 stars20 Jun 2026: 20,335 stars27 Jun 2026: 20,385 stars4 Jul 2026: 20,421 stars11 Jul 2026: 20,462 stars18 Jul 2026: 20,505 stars25 Jul 2026: 20,546 stars1 Aug 2026: 20,580 stars8 Aug 2026: 20,691 stars15 Aug 2026: 20,718 stars22 Aug 2026: 20,755 stars29 Aug 2026: 20,792 stars5 Sept 2026: 20,827 stars12 Sept 2026: 20,859 stars19 Sept 2026: 20,881 stars26 Sept 2026: 20,898 stars3 Oct 2026: 20,925 stars10 Oct 2026: 20,946 stars17 Oct 2026: 20,967 stars24 Oct 2026: 20,983 stars31 Oct 2026: 21,007 stars7 Nov 2026: 21,029 stars14 Nov 2026: 21,053 stars21 Nov 2026: 21,078 stars

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
Also in Chat apps
RankProjectScore
3chatgpt-telegram-workersTelegram bot that proxies chat to multiple LLM providers on Cloudflare Workers3.8k starsMIT69 out of 100
#4ant-design-x-vueVue component library for building AI chat interfaces, port of Ant Design X1.8k starsMIT69 out of 100
#6boarduiReact component library for agent UIs, installed as source via CLI1.3k starsMIT58 out of 100
#7langchain-nextjs-templateNext.js routes for LangChain.js chat, agents, structured output and RAG Live demo ↗ (opens in a new tab)2.6k starsMIT57 out of 100
#8twitterbioSingle-form Next.js text generator streaming from Together AI Live demo ↗ (opens in a new tab)1.8k starsMIT49 out of 100