{"id":25921845,"url":"https://github.com/iritman/nextjs-ai-chatbot","last_synced_at":"2026-05-14T05:39:40.015Z","repository":{"id":280173460,"uuid":"941177059","full_name":"iritman/nextjs-ai-chatbot","owner":"iritman","description":"The AI chatbot, built using Next.js, TypeScript, and TailwindCSS, enables interactive conversations with an AI, saves conversation history, and supports image queries.","archived":false,"fork":false,"pushed_at":"2025-03-01T19:16:10.000Z","size":75,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-01T19:19:42.730Z","etag":null,"topics":["ai","chatbot","chatgpt","gemini","nextjs","openrouter"],"latest_commit_sha":null,"homepage":"https://iritman-chatbot.vercel.app","language":"TypeScript","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/iritman.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":"2025-03-01T17:12:37.000Z","updated_at":"2025-03-01T19:16:13.000Z","dependencies_parsed_at":"2025-03-01T19:20:07.889Z","dependency_job_id":"ce4634e6-9230-4ac0-92d2-9ecd88353c2d","html_url":"https://github.com/iritman/nextjs-ai-chatbot","commit_stats":null,"previous_names":["iritman/nextjs-ai-chatbot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iritman/nextjs-ai-chatbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iritman%2Fnextjs-ai-chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iritman%2Fnextjs-ai-chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iritman%2Fnextjs-ai-chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iritman%2Fnextjs-ai-chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iritman","download_url":"https://codeload.github.com/iritman/nextjs-ai-chatbot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iritman%2Fnextjs-ai-chatbot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33012761,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","chatbot","chatgpt","gemini","nextjs","openrouter"],"created_at":"2025-03-03T16:16:22.102Z","updated_at":"2026-05-14T05:39:39.998Z","avatar_url":"https://github.com/iritman.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 AI Chatbot\n\nThis is an AI-powered chatbot built with Next.js, TypeScript, and TailwindCSS. The chatbot allows users to have interactive conversations with an AI model while maintaining conversation history and supporting image-based queries.\n\n## ✨ Features\n\n- 💬 **Chat with AI:** Users can send messages and receive AI-generated responses.\n- 📜 **Chat Log Display:** Chat messages are logged at the top of the application.\n- 🔄 **Auto Scroll:** When a new prompt is sent, the chat automatically scrolls to the latest message.\n- 🖼️ **Image Support:** Users can optionally include an image URL with their prompt and ask questions about the image.\n- 📁 **Export Chat History:** Users can download their conversation as a `.txt` file.\n- 🧠 **Context Awareness:** The chatbot remembers previous messages in the conversation for more coherent responses.\n- 🔗 **Powered by OpenRouter.AI:** AI responses are generated using the OpenRouter.AI API.\n\n## 🌐 Live Demo\n\nYou can try the chatbot online at:\n🔗 **[Live Demo](https://iritman-chatbot.vercel.app)**\n\n## 📦 Tech Stack\n\n- **Next.js** (React framework for server-side rendering)\n- **TypeScript** (Strongly typed JavaScript for better maintainability)\n- **TailwindCSS** (Utility-first CSS framework for rapid UI development)\n- **OpenRouter.AI** (AI service provider for chat interactions)\n\n## 🚀 Getting Started\n\n### 🔧 Prerequisites\n\nMake sure you have the following installed:\n\n- [Node.js](https://nodejs.org/) (Latest LTS recommended)\n- [Yarn](https://yarnpkg.com/) or [npm](https://www.npmjs.com/)\n\n### 📥 Installation\n\n1. Clone the repository:\n   ```sh\n   git clone https://github.com/iritman/nextjs-ai-chatbot.git\n   cd nextjs-ai-chatbot\n   ```\n2. Install dependencies:\n   ```sh\n   yarn install  # or npm install\n   ```\n3. Create a `.env.local` file in the root directory and add your OpenRouter.AI API key:\n   ```env\n   GEMINI_API_KEY=your_api_key_here\n   ```\n\n### ▶️ Running the Project\n\nStart the development server:\n\n```sh\nyarn dev  # or npm run dev\n```\n\nThe app will be available at [http://localhost:3000](http://localhost:3000) 🎉\n\n## 📤 Exporting Chat History\n\n- Click the **Export** button to download your conversation as a `.txt` file.\n- The file will contain the full chat history in a readable format.\n\n## 🌟 Contributing\n\nContributions are welcome! Feel free to open an issue or submit a pull request. 🚀\n\n## 📄 License\n\nThis project is licensed under the MIT License.\n\n## 📧 Contact\n\nFor any questions or feedback, feel free to reach out:\n\n- 📩 Email: [iritman@gmail.com](mailto:iritman@gmail.com)\n- 🔗 LinkedIn: [Naiem Yousefifard](https://www.linkedin.com/in/naiem-yousefifard-11086729b)\n\nHappy coding! 🎉\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firitman%2Fnextjs-ai-chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Firitman%2Fnextjs-ai-chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firitman%2Fnextjs-ai-chatbot/lists"}