{"id":19282965,"url":"https://github.com/jorkdev/gemini-chatbot","last_synced_at":"2026-05-16T04:42:46.471Z","repository":{"id":257679115,"uuid":"858910103","full_name":"JorkDev/Gemini-Chatbot","owner":"JorkDev","description":"An AI project utilizing Google's Gemini model to build an interactive chatbot. This repository explores basic AI concepts, including large language models (LLMs) and API integration, allowing users to create AI-powered applications.","archived":false,"fork":false,"pushed_at":"2024-09-21T17:35:58.000Z","size":397,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-05T17:25:38.888Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/JorkDev.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":"2024-09-17T18:38:11.000Z","updated_at":"2024-09-21T17:36:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"01b7e801-b57e-47e9-8fb3-03093b794b0b","html_url":"https://github.com/JorkDev/Gemini-Chatbot","commit_stats":null,"previous_names":["jorkdev/gemini-chatbot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JorkDev%2FGemini-Chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JorkDev%2FGemini-Chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JorkDev%2FGemini-Chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JorkDev%2FGemini-Chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JorkDev","download_url":"https://codeload.github.com/JorkDev/Gemini-Chatbot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240387019,"owners_count":19793269,"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-11-09T21:29:08.572Z","updated_at":"2025-11-17T04:05:42.487Z","avatar_url":"https://github.com/JorkDev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Gemini Chatbot\n\nThis is a chatbot built using **React** and **Express.js**, leveraging **Google's Generative AI (Gemini)** for answering questions. The application allows users to input questions and get responses, with a surprise feature that suggests random questions to ask.\n\n## Features\n- **Ask Questions**: Users can input a question and receive a response from Google Generative AI.\n- **Surprise Me**: A button that generates random questions from a pre-set list.\n- **Error Handling**: Displays an error message when no input is provided or if something goes wrong.\n- **Clear Functionality**: Users can reset the chat history and input field.\n\n## Project Structure\n- **App.js**: Contains the main React component where users can input questions and view responses.\n- **server.js**: Express server that handles requests from the client and communicates with the Google Gemini API.\n\n## Installation\n\nTo run this project locally, follow these steps:\n\n### Prerequisites\n- Node.js installed on your machine.\n- A Google Gemini API key (set up in the `.env` file).\n\n### Steps\n\n1. Clone the repository:\n\n   ```bash\n   git clone \u003crepo-url\u003e\n   ```\n\n2. Install dependencies:\n\n   ```bash\n   npm install\n   ```\n\n3. Create a `.env` file in the root directory and add your Google Generative AI key:\n\n   ```\n   GOOGLE_GEN_AI_KEY=your-api-key-here\n   ```\n\n4. Run the server:\n\n   ```bash\n   node server.js\n   ```\n\n5. Start the React app:\n\n   ```bash\n   npm start\n   ```\n\nThe server will run on `localhost:8000`, and the React frontend on `localhost:3000`.\n\n## API Endpoints\n\n- `POST /gemini`: Accepts user input and forwards it to Google Gemini for processing. The response is displayed on the frontend.\n\n## Technologies Used\n- **React**: Frontend UI framework.\n- **Express**: Backend server framework.\n- **Google Generative AI (Gemini)**: AI technology used for generating responses.\n- **Node.js**: JavaScript runtime.\n- **dotenv**: For handling environment variables.\n- **cors**: Middleware for handling Cross-Origin Resource Sharing.\n\n## Future Improvements\n- Implement a real-time response from the Google Gemini API.\n- Add more sophisticated error handling for failed API calls.\n- Extend the surprise feature with more diverse questions.\n\n## License\n\nThis project is open source under the [MIT License](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjorkdev%2Fgemini-chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjorkdev%2Fgemini-chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjorkdev%2Fgemini-chatbot/lists"}