{"id":26820154,"url":"https://github.com/rishabh3562/sentiment-analysis-chatbot-js","last_synced_at":"2025-06-17T15:40:32.488Z","repository":{"id":284895885,"uuid":"956374176","full_name":"rishabh3562/sentiment-analysis-chatbot-js","owner":"rishabh3562","description":"A simple chatbot built with TypeScript and the Gemini API, utilizing sentiment analysis with an event-stream architecture.","archived":false,"fork":false,"pushed_at":"2025-03-28T08:02:11.000Z","size":157,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T09:22:11.066Z","etag":null,"topics":["ai","chatbot","gemini-api","sentiment-analysis","typescript"],"latest_commit_sha":null,"homepage":"https://sentiment-analysis-chatbot-js.vercel.app","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/rishabh3562.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":"2025-03-28T06:29:50.000Z","updated_at":"2025-03-28T08:02:15.000Z","dependencies_parsed_at":"2025-03-28T09:22:13.106Z","dependency_job_id":"9940b14b-9040-4608-abd6-4a830e0ac25b","html_url":"https://github.com/rishabh3562/sentiment-analysis-chatbot-js","commit_stats":null,"previous_names":["rishabh3562/sentiment-analysis-chatbot-js"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rishabh3562/sentiment-analysis-chatbot-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabh3562%2Fsentiment-analysis-chatbot-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabh3562%2Fsentiment-analysis-chatbot-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabh3562%2Fsentiment-analysis-chatbot-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabh3562%2Fsentiment-analysis-chatbot-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rishabh3562","download_url":"https://codeload.github.com/rishabh3562/sentiment-analysis-chatbot-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabh3562%2Fsentiment-analysis-chatbot-js/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260390093,"owners_count":23001863,"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","chatbot","gemini-api","sentiment-analysis","typescript"],"created_at":"2025-03-30T06:20:45.998Z","updated_at":"2025-06-17T15:40:27.475Z","avatar_url":"https://github.com/rishabh3562.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Chatbot with TypeScript, Gemini API, and Sentiment Analysis\n\n## Overview\nThis project is a simple chatbot built using **TypeScript** and the **Gemini API**, incorporating **sentiment analysis** with an **event-stream architecture** for real-time responses.\n\n## Features\n- **Real-time streaming responses** (similar to ChatGPT)\n- **Sentiment analysis** for analyzing user input\n- **TypeScript** for type safety and maintainability\n- **Gemini API** integration for natural language understanding\n- **Event-stream architecture** for efficient message handling\n\n## Technologies Used\n- **TypeScript**\n- **Nextjs** (for frontend)\n- **Gemini API** (for chatbot responses)\n- **Sentiment Analysis Library** (e.g., `sentiment` or `compromise`)\n- **Event Streams** (Server-Sent Events or WebSockets)\n\n## Installation\n### Prerequisites\n- **Node.js** (v16 or later)\n- **Gemini API Key**\n\n### Steps\n1. Clone the repository:\n   ```sh\n   git clone https://github.com/rishabh3562/sentiment-analysis-chatbot-js.git\n   cd sentiment-analysis-chatbot-js\n   ```\n2. Install dependencies:\n   ```sh\n   npm install\n   ```\n3. Create a `.env` file and add your API key:\n   ```env\n   GEMINI_API_KEY=your_api_key_here\n   ```\n4. Start the server:\n   ```sh\n   npm run dev\n   ```\n\n## Usage\n- Run the server and send a POST request to `/chat` with user input.\n- The chatbot will return a streaming response with sentiment analysis insights.\n\n## API Endpoints\n| Method | Endpoint | Description |\n|--------|------------|-------------|\n| POST   | `/chat`   | Sends a message and receives a streaming chatbot response |\n\n## Example Request\n```sh\ncurl -X POST http://localhost:3000/chat -H \"Content-Type: application/json\" -d '{\"message\": \"Hello! How are you?\"}'\n```\n\n## Future Enhancements\n- WebSocket support for two-way communication\n- UI integration with React\n- Multi-language support\n\n## License\nThis project is licensed under the MIT License.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frishabh3562%2Fsentiment-analysis-chatbot-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frishabh3562%2Fsentiment-analysis-chatbot-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frishabh3562%2Fsentiment-analysis-chatbot-js/lists"}