{"id":22780271,"url":"https://github.com/glavin001/next-ai-app-starter","last_synced_at":"2025-03-30T14:16:14.603Z","repository":{"id":218185053,"uuid":"745813808","full_name":"Glavin001/next-ai-app-starter","owner":"Glavin001","description":"Starter template for AI apps built with Next.js ","archived":false,"fork":false,"pushed_at":"2024-01-20T08:36:39.000Z","size":86,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-05T15:54:06.252Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Glavin001.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}},"created_at":"2024-01-20T08:09:01.000Z","updated_at":"2024-12-25T23:09:33.000Z","dependencies_parsed_at":"2024-01-20T09:43:04.112Z","dependency_job_id":null,"html_url":"https://github.com/Glavin001/next-ai-app-starter","commit_stats":null,"previous_names":["glavin001/next-ai-app-starter"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Glavin001%2Fnext-ai-app-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Glavin001%2Fnext-ai-app-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Glavin001%2Fnext-ai-app-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Glavin001%2Fnext-ai-app-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Glavin001","download_url":"https://codeload.github.com/Glavin001/next-ai-app-starter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246326783,"owners_count":20759439,"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-12-11T20:12:39.967Z","updated_at":"2025-03-30T14:16:14.584Z","avatar_url":"https://github.com/Glavin001.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vercel AI SDK, Next.js, and OpenAI Chat Example\n\nThis example shows how to use the [Vercel AI SDK](https://sdk.vercel.ai/docs) with [Next.js](https://nextjs.org/) and [OpenAI](https://openai.com) to create a ChatGPT-like AI-powered streaming chat bot.\n\n## Deploy your own\n\nDeploy the example using [Vercel](https://vercel.com?utm_source=github\u0026utm_medium=readme\u0026utm_campaign=ai-sdk-example):\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fai%2Ftree%2Fmain%2Fexamples%2Fnext-openai\u0026env=OPENAI_API_KEY\u0026envDescription=OpenAI%20API%20Key\u0026envLink=https%3A%2F%2Fplatform.openai.com%2Faccount%2Fapi-keys\u0026project-name=vercel-ai-chat-openai\u0026repository-name=vercel-ai-chat-openai)\n\n## How to use\n\nExecute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), or [pnpm](https://pnpm.io) to bootstrap the example:\n\n```bash\nnpx create-next-app --example https://github.com/vercel/ai/tree/main/examples/next-openai next-openai-app\n```\n\n```bash\nyarn create next-app --example https://github.com/vercel/ai/tree/main/examples/next-openai next-openai-app\n```\n\n```bash\npnpm create next-app --example https://github.com/vercel/ai/tree/main/examples/next-openai next-openai-app\n```\n\nTo run the example locally you need to:\n\n1. Sign up at [OpenAI's Developer Platform](https://platform.openai.com/signup).\n2. Go to [OpenAI's dashboard](https://platform.openai.com/account/api-keys) and create an API KEY.\n3. Set the required OpenAI environment variable as the token value as shown [the example env file](./.env.local.example) but in a new file called `.env.local`\n4. `pnpm install` to install the required dependencies.\n5. `pnpm dev` to launch the development server.\n\n## Learn More\n\nTo learn more about OpenAI, Next.js, and the Vercel AI SDK take a look at the following resources:\n\n- [Vercel AI SDK docs](https://sdk.vercel.ai/docs)\n- [Vercel AI Playground](https://play.vercel.ai)\n- [OpenAI Documentation](https://platform.openai.com/docs) - learn about OpenAI features and API.\n- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglavin001%2Fnext-ai-app-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglavin001%2Fnext-ai-app-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglavin001%2Fnext-ai-app-starter/lists"}