{"id":19591312,"url":"https://github.com/humanloop/chatbot-starter","last_synced_at":"2025-06-28T23:32:38.943Z","repository":{"id":195740649,"uuid":"693178678","full_name":"humanloop/chatbot-starter","owner":"humanloop","description":"Starter template AI chatbot, built with Next.js and Humanloop","archived":false,"fork":false,"pushed_at":"2024-09-02T13:41:32.000Z","size":1850,"stargazers_count":22,"open_issues_count":0,"forks_count":8,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-23T04:48:48.203Z","etag":null,"topics":["humanloop","llms","nextjs","openai"],"latest_commit_sha":null,"homepage":"","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/humanloop.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":"2023-09-18T14:01:26.000Z","updated_at":"2025-03-23T10:30:27.000Z","dependencies_parsed_at":"2024-11-11T08:30:33.199Z","dependency_job_id":"848ef7fe-7ef6-4343-b35d-abde381904e7","html_url":"https://github.com/humanloop/chatbot-starter","commit_stats":null,"previous_names":["humanloop/chatbot-starter"],"tags_count":0,"template":false,"template_full_name":"vercel/ai-chatbot","purl":"pkg:github/humanloop/chatbot-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humanloop%2Fchatbot-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humanloop%2Fchatbot-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humanloop%2Fchatbot-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humanloop%2Fchatbot-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/humanloop","download_url":"https://codeload.github.com/humanloop/chatbot-starter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/humanloop%2Fchatbot-starter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262513625,"owners_count":23322661,"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":["humanloop","llms","nextjs","openai"],"created_at":"2024-11-11T08:28:28.866Z","updated_at":"2025-06-28T23:32:38.925Z","avatar_url":"https://github.com/humanloop.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://chat.vercel.ai/\"\u003e\n  \u003cimg alt=\"Next.js 13 and app template Router-ready AI chatbot.\" src=\"https://chat.vercel.ai/opengraph-image.png\"\u003e\n  \u003ch1 align=\"center\"\u003eHumanloop 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 Humanloop.\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- [Humanloop](https://humanloop.com) integration for observability, logging and monitoring\n- Edge runtime-ready\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\n## Running locally\n\nYou will need to populate the two evironment variables shown in `.env.example`. Copy this file to a file called `.env`. You can retrieve you OpenAI API key [here](https://platform.openai.com/account/api-keys) and your Humanloop API key [here](https://app.humanloop.com/account/api-keys).\n\nTo run the application locally, simply run:\n\n```bash\nnpm install\nnpm run dev\n```\n\nYour app template should now be running on [localhost:3000](http://localhost:3000/).\n\n## Preview\n\nThe chat interface powered by Next.js looks something like this:\n\n![Screenshot of the chat interface](./public/interface-example.png)\n\nMeanwhile, in your Humanloop project, you can explore the generated logs from the app, iterate on the prompt, evaluate it and redeploy.\n\n![The Humanloop project linked to the chatbot app](./public/humanloop-example.png)\n\n## Humanloop\n\nIn `app/api/chat/route.ts`, LLM chat calls are made via Humanloop's TypeScript SDK. Note that this file is an example of a Next.js [Route Handler](https://nextjs.org/docs/app/building-your-application/routing/route-handlers). This means it will run server-side, and therefore does not expose your OpenAI and Humanloop API keys to the client. This backend Route Handler is called from `components/chat.tsx` with the Vercel SDK's `useChat` hook.\n\nAfter sending and receiving some chat messages in your app, visit the [Humanloop app](https://app.humnaloop.com), and you will see a project called `sdk-example`. Visit the `Logs` tab and you will find all the chat histories from your running application.\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_GITHUB_ID%2CAUTH_GITHUB_SECRET%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## Authors\n\nCredit for the foundational design, app, and implementation is due to [Vercel](https://vercel.com) and their [AI Chatbot Template](https://github.com/vercel-labs/ai-chatbot) 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)) - [Contractor](https://shadcn.com)\n\nWe've mostly just ripped out the good (but more complicated) auth and KV store, and powered the AI chatbot with [Humanloop](https://humanloop.com) to make it easier to customise, evaluate and improve the underlying AI.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhumanloop%2Fchatbot-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhumanloop%2Fchatbot-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhumanloop%2Fchatbot-starter/lists"}