{"id":15594120,"url":"https://github.com/mathu97/ai-chatbot-template","last_synced_at":"2025-06-18T08:40:22.604Z","repository":{"id":237548992,"uuid":"794710238","full_name":"mathu97/ai-chatbot-template","owner":"mathu97","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-01T20:12:57.000Z","size":227,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T14:14:11.349Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/mathu97.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-05-01T19:40:42.000Z","updated_at":"2024-05-01T20:13:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"6dc03960-170b-4698-996b-92a489028cb2","html_url":"https://github.com/mathu97/ai-chatbot-template","commit_stats":null,"previous_names":["mathu97/ai-chatbot-template"],"tags_count":0,"template":false,"template_full_name":"vercel/ai-chatbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathu97%2Fai-chatbot-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathu97%2Fai-chatbot-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathu97%2Fai-chatbot-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathu97%2Fai-chatbot-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathu97","download_url":"https://codeload.github.com/mathu97/ai-chatbot-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247297395,"owners_count":20915836,"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":[],"created_at":"2024-10-03T00:25:03.899Z","updated_at":"2025-04-05T06:26:09.477Z","avatar_url":"https://github.com/mathu97.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\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[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?demo-title=Next.js+Chat\u0026demo-description=A+full-featured%2C+hackable+Next.js+AI+chatbot+built+by+Vercel+Labs\u0026demo-url=https%3A%2F%2Fchat.vercel.ai%2F\u0026demo-image=%2F%2Fimages.ctfassets.net%2Fe5382hct74si%2F4aVPvWuTmBvzM5cEdRdqeW%2F4234f9baf160f68ffb385a43c3527645%2FCleanShot_2023-06-16_at_17.09.21.png\u0026project-name=Next.js+Chat\u0026repository-name=nextjs-chat\u0026repository-url=https%3A%2F%2Fgithub.com%2Fvercel-labs%2Fai-chatbot\u0026from=templates\u0026skippable-integrations=1\u0026env=OPENAI_API_KEY%2CAUTH_SECRET\u0026envDescription=How+to+get+these+env+vars\u0026envLink=https%3A%2F%2Fgithub.com%2Fvercel-labs%2Fai-chatbot%2Fblob%2Fmain%2F.env.example\u0026teamCreateStatus=hidden\u0026stores=[{\"type\":\"kv\"}])\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\n- Jared Palmer ([@jaredpalmer](https://twitter.com/jaredpalmer)) - [Vercel](https://vercel.com)\n- Shu Ding ([@shuding\\_](https://twitter.com/shuding_)) - [Vercel](https://vercel.com)\n- shadcn ([@shadcn](https://twitter.com/shadcn)) - [Vercel](https://vercel.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathu97%2Fai-chatbot-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathu97%2Fai-chatbot-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathu97%2Fai-chatbot-template/lists"}