{"id":20731826,"url":"https://github.com/patrickacraig/next-openai-starter","last_synced_at":"2025-05-11T01:31:25.450Z","repository":{"id":259180879,"uuid":"617594438","full_name":"patrickacraig/next-openai-starter","owner":"patrickacraig","description":"a starter kit for integrating OpenAI's API into a Next.js application.","archived":false,"fork":false,"pushed_at":"2023-03-23T00:32:17.000Z","size":101,"stargazers_count":13,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-17T05:17:03.443Z","etag":null,"topics":["ai","artificial-intelligence","boilerplate","boilerplate-application","chatgpt","chatgpt-api","davinci","generative","generative-ai","next","nextjs","nextjs-api","openai","openai-api","openai-example","starter","starter-kit"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/patrickacraig.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-03-22T17:57:48.000Z","updated_at":"2024-10-11T11:42:36.000Z","dependencies_parsed_at":"2024-10-23T09:36:17.299Z","dependency_job_id":"fc5cd946-8bbb-4755-80a2-ce435cd61bc1","html_url":"https://github.com/patrickacraig/next-openai-starter","commit_stats":null,"previous_names":["patrickacraig/next-openai-starter"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickacraig%2Fnext-openai-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickacraig%2Fnext-openai-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickacraig%2Fnext-openai-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickacraig%2Fnext-openai-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patrickacraig","download_url":"https://codeload.github.com/patrickacraig/next-openai-starter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253504519,"owners_count":21918822,"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","artificial-intelligence","boilerplate","boilerplate-application","chatgpt","chatgpt-api","davinci","generative","generative-ai","next","nextjs","nextjs-api","openai","openai-api","openai-example","starter","starter-kit"],"created_at":"2024-11-17T05:16:53.299Z","updated_at":"2025-05-11T01:31:25.194Z","avatar_url":"https://github.com/patrickacraig.png","language":"JavaScript","funding_links":[],"categories":["NextJS"],"sub_categories":["OpenAI"],"readme":"# Next.js OpenAI Starter App\n\nThis is a starter kit for integrating [OpenAI's API](https://platform.openai.com/docs/api-reference) into a [Next.js](https://nextjs.org/) application. It is crafted with minimal styling and basic API integration so you can strip it and bring your own libraries to make it your own. Feel free to fork and create something amazing!\n\n\n## Getting Started\nFirst, fork the repo to your dev environment and install the packages:\n```bash\nnpm install\n#or\nyarn\n```\nThen, run the development server:\n\n```bash\nnpm run dev\n# or\nyarn dev\n```\n\nIf you use something besides `yarn`, be sure to delete any other package manager lockfiles. \nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\n## Important!\nMake sure that update the `OPENAI_API_KEY=yourApiKey` in the `.env.example` file, and then change the file name to `.env.local`. You can get an API key by [creating an account with OpenAI](https://platform.openai.com/signup) and then navigating [here](https://platform.openai.com/account/api-keys).\n\n## OpenAI API Endpoint\n\nOpenAI's [API route](https://nextjs.org/docs/api-routes/introduction) is located at `src/pages/api/openai.js`.\n\n\n\nThe `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.\n\nThis project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.\n\n## Learn More\n\nTo learn more about Next.js and OpenAI, take a look at the following resources:\n### Next.js\n- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.\n- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.\n### OpenAI\n- [OpenAI Documentation](https://platform.openai.com/) – learn abou OpenAI's features and API, as well as how to use them. \n- [OpenAI Examples](https://platform.openai.com/examples) – see what others have already created with OpenAI.\n\nYou can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!\n\n## Deploy on Vercel\n\nThe easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template\u0026filter=next.js\u0026utm_source=create-next-app\u0026utm_campaign=create-next-app-readme) from the creators of Next.js.\n\nCheck out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickacraig%2Fnext-openai-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrickacraig%2Fnext-openai-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickacraig%2Fnext-openai-starter/lists"}