{"id":48669302,"url":"https://github.com/ernestohegi/ai-chatbot","last_synced_at":"2026-04-10T11:35:14.913Z","repository":{"id":313064583,"uuid":"1047419633","full_name":"ernestohegi/ai-chatbot","owner":"ernestohegi","description":"🤖💬 AI Chatbot with DeepSeek – A friendly, real-time AI assistant built with Next.js and DeepSeek, offering safe, concise, and helpful responses with a clean Tailwind UI.","archived":false,"fork":false,"pushed_at":"2026-04-10T04:54:21.000Z","size":347,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-10T06:35:52.147Z","etag":null,"topics":["ai","ai-chatbot","chat","chatbot","deepseek","llm","nextjs"],"latest_commit_sha":null,"homepage":"","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/ernestohegi.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-30T11:33:47.000Z","updated_at":"2026-04-03T15:03:42.000Z","dependencies_parsed_at":"2025-11-29T09:04:54.514Z","dependency_job_id":null,"html_url":"https://github.com/ernestohegi/ai-chatbot","commit_stats":null,"previous_names":["ernestohegi/ai-chatbot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ernestohegi/ai-chatbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ernestohegi%2Fai-chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ernestohegi%2Fai-chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ernestohegi%2Fai-chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ernestohegi%2Fai-chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ernestohegi","download_url":"https://codeload.github.com/ernestohegi/ai-chatbot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ernestohegi%2Fai-chatbot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31641436,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T07:40:12.752Z","status":"ssl_error","status_checked_at":"2026-04-10T07:40:11.664Z","response_time":98,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","ai-chatbot","chat","chatbot","deepseek","llm","nextjs"],"created_at":"2026-04-10T11:35:14.843Z","updated_at":"2026-04-10T11:35:14.901Z","avatar_url":"https://github.com/ernestohegi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI Chatbot with DeepSeek\n\nA Next.js-based AI chatbot that provides helpful assistance using DeepSeek's language models. The chatbot acts as a friendly and professional assistant, offering concise and safe responses to your queries.\n\n## Features\n\n- 🤖 AI-powered assistance using DeepSeek models\n- 💬 General-purpose conversational capabilities\n- ⚡ Real-time streaming responses\n- 🎨 Clean, responsive UI built with Tailwind CSS\n- 📱 Markdown rendering for formatted responses\n- 🛡️ Safe and helpful responses\n\n## Supported Models\n\nThis application currently supports the following DeepSeek models:\n\n- **DeepSeek Chat** (`deepseek-chat`) - The primary model used for general assistance\n\n## Prerequisites\n\nBefore running this application, ensure you have:\n\n- Node.js 18+ installed\n- A DeepSeek API key (get one from [DeepSeek's platform](https://platform.deepseek.com/))\n- pnpm package manager (recommended) or npm/yarn\n\n## Installation\n\n1. **Clone the repository**\n\n   ```bash\n   git clone \u003cyour-repo-url\u003e\n   cd ai-chatbot\n   ```\n\n2. **Install dependencies**\n\n   ```bash\n   pnpm install\n   # or\n   npm install\n   # or\n   yarn install\n   ```\n\n3. **Set up environment variables**\n\n   ```bash\n   cp .env.example .env.local\n   ```\n\n   Edit `.env.local` and add your DeepSeek API key:\n\n   ```\n   DEEPSEEK_API_KEY=your_actual_deepseek_api_key_here\n   ```\n\n## Running the Application\n\n### Development Mode\n\n```bash\npnpm dev\n# or\nnpm run dev\n# or\nyarn dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) in your browser to see the application.\n\n### Production Build\n\n```bash\npnpm build\npnpm start\n# or\nnpm run build\nnpm start\n# or\nyarn build\nyarn start\n```\n\n## How to Use\n\n1. **Start the application** using the commands above\n2. **Open your browser** to `http://localhost:3000`\n3. **Enter your questions or requests** in the chat input field\n4. **Get helpful responses** - The AI assistant will provide concise and useful answers\n\n### Example Usage:\n\n- Input: \"Can you help me with a coding problem?\"\n- Output: The AI will provide assistance with your coding question\n- Input: \"What's the weather like today?\"\n- Output: The AI will respond with weather information or guidance\n\n## Technology Stack\n\n- **Framework**: Next.js 15.5.2 with App Router\n- **AI SDK**: Vercel AI SDK with DeepSeek integration\n- **Frontend**: React 19 with TypeScript\n- **Styling**: Tailwind CSS\n- **Markdown**: React Markdown for formatted responses\n- **State Management**: React Query for efficient data handling\n\n## API Configuration\n\nThe chatbot uses a system prompt that configures the AI to:\n\n- Respond politely and professionally\n- Provide concise answers\n- Avoid unnecessary repetition\n- Always provide safe and helpful responses\n- Be friendly and approachable\n\n## Environment Variables\n\n| Variable           | Description                            | Required |\n| ------------------ | -------------------------------------- | -------- |\n| `DEEPSEEK_API_KEY` | Your DeepSeek API key for model access | Yes      |\n\n## Project Structure\n\n```\nai-chatbot/\n├── src/\n│   ├── app/\n│   │   ├── api/\n│   │   │   └── chat/\n│   │   │       └── route.ts          # API endpoint for chat\n│   │   ├── components/\n│   │   │   ├── DeepSeekChat.tsx      # Main chat component\n│   │   │   └── MemoisedMarkdown.tsx  # Markdown renderer\n│   │   ├── layout.tsx                # Root layout\n│   │   ├── page.tsx                  # Home page\n│   │   └── globals.css               # Global styles\n├── .env.example                      # Environment template\n├── package.json                      # Dependencies\n└── README.md                         # This file\n```\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## Support\n\nIf you encounter any issues or have questions:\n\n1. Check the [DeepSeek documentation](https://platform.deepseek.com/docs) for API-related issues\n2. Review the [Next.js documentation](https://nextjs.org/docs) for framework questions\n3. Open an issue in this repository for application-specific problems\n\n## Acknowledgments\n\n- [DeepSeek](https://www.deepseek.com/) for providing the AI models\n- [Vercel](https://vercel.com/) for the AI SDK and Next.js framework\n- The open-source community for various libraries and tools used\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fernestohegi%2Fai-chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fernestohegi%2Fai-chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fernestohegi%2Fai-chatbot/lists"}