ai-chatbot  by vercel

Next.js chatbot template for building AI-powered chat applications

created 2 years ago
17,242 stars

Top 2.7% on sourcepulse

GitHubView on GitHub
Project Summary

This project provides a fully-featured, hackable Next.js AI chatbot template, designed for developers looking to quickly build and deploy sophisticated conversational AI applications. It leverages modern Next.js features and the AI SDK for a robust and performant user experience.

How It Works

The chatbot utilizes Next.js App Router for advanced routing and React Server Components (RSCs) and Server Actions for efficient server-side rendering. It integrates the AI SDK for a unified API to interact with various Large Language Models (LLMs), supporting text generation, structured objects, and tool calls. The UI is built with shadcn/ui and Radix UI components, styled with Tailwind CSS, ensuring accessibility and flexibility. Data persistence is handled via Neon Serverless Postgres for chat history and Vercel Blob for file storage, with Auth.js providing authentication.

Quick Start & Requirements

  • Install dependencies: pnpm install
  • Run locally: pnpm dev
  • Requires Node.js and pnpm.
  • Environment variables (API keys for AI models, authentication, etc.) are managed via a .env file or Vercel Environment Variables.
  • Official deployment to Vercel is available via a one-click deploy button.
  • Documentation: Read Docs

Highlighted Details

  • Built with Next.js App Router, RSCs, and Server Actions.
  • AI SDK supports multiple model providers (xAI, OpenAI, Anthropic, Cohere, etc.).
  • Uses shadcn/ui and Radix UI for accessible component primitives.
  • Data persistence with Neon Serverless Postgres and Vercel Blob.
  • Integrated authentication via Auth.js.

Maintenance & Community

  • Developed by Vercel.
  • Links to official documentation are provided.

Licensing & Compatibility

  • The README does not explicitly state a license.

Limitations & Caveats

The project's licensing is not specified in the README, which may impact commercial use or integration into closed-source projects.

Health Check
Last commit

3 weeks ago

Responsiveness

1+ week

Pull Requests (30d)
19
Issues (30d)
18
Star History
1,486 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.