A minimalist AI chatbot built with Next.js 16, Vercel AI SDK, and modern web technologies.
- π¬ Real-time AI chat with streaming responses
- π¨ Claude-inspired design system
- π± Responsive sidebar with chat history
- β¨ Markdown and syntax highlighting support
- ποΈ PostgreSQL database with Drizzle ORM
- β‘ Built with Next.js 16 and React 19
- Framework: Next.js 16 (App Router)
- AI: Vercel AI SDK (@ai-sdk/react)
- Database: PostgreSQL + Drizzle ORM
- Styling: Tailwind CSS 4 + shadcn/ui
- Language: TypeScript
- Install dependencies
pnpm install- Set up environment variables
cp .env.example .envEdit .env and add your API keys:
DATABASE_URL=your_database_url
OPENAI_API_KEY=your_openai_key
- Set up database
pnpm db:push- Run development server
pnpm devOpen http://localhost:3000 in your browser.
pnpm dev- Start development serverpnpm build- Build for productionpnpm lint- Run ESLintpnpm type-check- TypeScript type checkingpnpm format- Format code with Prettierpnpm db:push- Push schema changes to databasepnpm db:studio- Open Drizzle Studio
simple-chatbot/
βββ app/ # Next.js app router
βββ components/ # React components
β βββ chat/ # Chat-related components
β βββ sidebar/ # Sidebar component
β βββ ui/ # shadcn/ui components
βββ lib/ # Utilities and configurations
β βββ db/ # Database schema and client
βββ docs/ # Documentation
MIT