Shadcn Refreshes Its Database-Free Chatbot Starter Past 1,000 Stars
Shadcn refreshed his open-source chatbot starter with the latest Next.js, AI SDK, and shadcn/react, adding typed tool parts and a human-in-the-loop questionnaire flow.
- Shadcn refreshed the chatbot-template repo with latest Next.js, AI SDK, shadcn/react and bug fixes.
- Minimal starter: streaming chat, markdown, tool calling, provider web search, human-in-the-loop questionnaire.
- Runs on Vercel AI Gateway with automatic OIDC auth on deploy, no keys needed.
- Typed tool parts inferred via
InferUITools, so tool inputs/outputs are fully typed end-to-end. - Repo is MIT licensed, sits at over 1,000 stars, and clocks in at only 156 KB.
- Public
/api/chatroute is unauthenticated by default; add rate limits and spend caps before shipping.
Shadcn refreshes its database-free chatbot starter
Shadcn has updated the chatbot template with the latest Next.js, AI SDK, shadcn React components, and cn utility, plus assorted bug fixes. The repository has 902 GitHub stars as a compact reference for building a streaming chatbot on the Vercel AI Gateway without adding a database or authentication layer.
Many Next.js examples demonstrate a bare useChat hook, while larger starters bundle persistence, authentication, billing, and other SaaS infrastructure. This template focuses on the application layer: streaming responses, markdown rendering, tool calls, web search, citations, and typed components for interactive tool output.
Inside the compact starter
The template provides the main pieces required for a tool-enabled chat interface:
- Streaming chat responses rendered as markdown with shadcn/typeset.
- A server-executed tool that retrieves GitHub repository information.
- Provider-native web search with deduplicated source citations.
- A human-in-the-loop questionnaire that lets the model request clarification through a shadcn component.
The request and rendering paths remain easy to trace:
app/api/chat/route.ts
This story is for Pro members
You've reached the end of the free preview. Upgrade to AlphaSignal Pro to read the full article - and everything else behind the paywall.