{"id":15785921,"url":"https://github.com/lucatosc/ai-chatbot-next","last_synced_at":"2026-02-02T13:15:20.507Z","repository":{"id":257807080,"uuid":"861487963","full_name":"lucatosc/AI-Chatbot-Next","owner":"lucatosc","description":"A full-featured, hackable Next.js AI chatbot built by Vercel","archived":false,"fork":false,"pushed_at":"2024-09-29T22:26:05.000Z","size":2382,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-11T21:04:50.807Z","etag":null,"topics":["ai","chatgpt","gpt-3","gpt-4","nextjs","react","redis","shadcn-ui","vercel"],"latest_commit_sha":null,"homepage":"http://chat.vercel.ai","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lucatosc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-23T02:02:24.000Z","updated_at":"2024-09-29T22:32:20.000Z","dependencies_parsed_at":"2024-10-02T10:12:29.457Z","dependency_job_id":null,"html_url":"https://github.com/lucatosc/AI-Chatbot-Next","commit_stats":null,"previous_names":["lucatosc/ai-chatbot-next"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lucatosc/AI-Chatbot-Next","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucatosc%2FAI-Chatbot-Next","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucatosc%2FAI-Chatbot-Next/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucatosc%2FAI-Chatbot-Next/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucatosc%2FAI-Chatbot-Next/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucatosc","download_url":"https://codeload.github.com/lucatosc/AI-Chatbot-Next/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucatosc%2FAI-Chatbot-Next/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261808048,"owners_count":23212687,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","chatgpt","gpt-3","gpt-4","nextjs","react","redis","shadcn-ui","vercel"],"created_at":"2024-10-04T21:00:19.053Z","updated_at":"2026-02-02T13:15:20.466Z","avatar_url":"https://github.com/lucatosc.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://chat.vercel.ai/\"\u003e\n  \u003cimg alt=\"Next.js 14 and App Router-ready AI chatbot.\" src=\"https://chat.vercel.ai/opengraph-image.png\"\u003e\n  \u003ch1 align=\"center\"\u003eNext.js AI Chatbot\u003c/h1\u003e\n\u003c/a\u003e\n\n\n\u003cp align=\"center\"\u003e\n  An open-source AI chatbot app template built with Next.js, the Vercel AI SDK, OpenAI, and Vercel KV.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#features\"\u003e\u003cstrong\u003eFeatures\u003c/strong\u003e\u003c/a\u003e ·\n  \u003ca href=\"#model-providers\"\u003e\u003cstrong\u003eModel Providers\u003c/strong\u003e\u003c/a\u003e ·\n  \u003ca href=\"#deploy-your-own\"\u003e\u003cstrong\u003eDeploy Your Own\u003c/strong\u003e\u003c/a\u003e ·\n  \u003ca href=\"#running-locally\"\u003e\u003cstrong\u003eRunning locally\u003c/strong\u003e\u003c/a\u003e ·\n  \u003ca href=\"#authors\"\u003e\u003cstrong\u003eAuthors\u003c/strong\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cbr/\u003e\n\n## Features\n\n- [Next.js](https://nextjs.org) App Router\n- React Server Components (RSCs), Suspense, and Server Actions\n- [Vercel AI SDK](https://sdk.vercel.ai/docs) for streaming chat UI\n- Support for OpenAI (default), Anthropic, Cohere, Hugging Face, or custom AI chat models and/or LangChain\n- [shadcn/ui](https://ui.shadcn.com)\n  - Styling with [Tailwind CSS](https://tailwindcss.com)\n  - [Radix UI](https://radix-ui.com) for headless component primitives\n  - Icons from [Phosphor Icons](https://phosphoricons.com)\n- Chat History, rate limiting, and session storage with [Vercel KV](https://vercel.com/storage/kv)\n- [NextAuth.js](https://github.com/nextauthjs/next-auth) for authentication\n\n## Model Providers\n\nThis template ships with OpenAI `gpt-3.5-turbo` as the default. However, thanks to the [Vercel AI SDK](https://sdk.vercel.ai/docs), you can switch LLM providers to [Anthropic](https://anthropic.com), [Cohere](https://cohere.com/), [Hugging Face](https://huggingface.co), or using [LangChain](https://js.langchain.com) with just a few lines of code.\n\n## Deploy Your Own\n\nYou can deploy your own version of the Next.js AI Chatbot to Vercel with one click:\n\n\n## Creating a KV Database Instance\n\nFollow the steps outlined in the [quick start guide](https://vercel.com/docs/storage/vercel-kv/quickstart#create-a-kv-database) provided by Vercel. This guide will assist you in creating and configuring your KV database instance on Vercel, enabling your application to interact with it.\n\nRemember to update your environment variables (`KV_URL`, `KV_REST_API_URL`, `KV_REST_API_TOKEN`, `KV_REST_API_READ_ONLY_TOKEN`) in the `.env` file with the appropriate credentials provided during the KV database setup.\n\n## Running locally\n\nYou will need to use the environment variables [defined in `.env.example`](.env.example) to run Next.js AI Chatbot. It's recommended you use [Vercel Environment Variables](https://vercel.com/docs/projects/environment-variables) for this, but a `.env` file is all that is necessary.\n\n\u003e Note: You should not commit your `.env` file or it will expose secrets that will allow others to control access to your various OpenAI and authentication provider accounts.\n\n1. Install Vercel CLI: `npm i -g vercel`\n2. Link local instance with Vercel and GitHub accounts (creates `.vercel` directory): `vercel link`\n3. Download your environment variables: `vercel env pull`\n\n```bash\npnpm install\npnpm dev\n```\n\nYour app template should now be running on [localhost:3000](http://localhost:3000/).\n\n## Authors\n\nThis library is created by [Vercel](https://vercel.com) and [Next.js](https://nextjs.org) team members, with contributions from:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucatosc%2Fai-chatbot-next","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucatosc%2Fai-chatbot-next","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucatosc%2Fai-chatbot-next/lists"}