{"id":20956053,"url":"https://github.com/fitri-hy/hy-gemini-ai-react","last_synced_at":"2026-07-19T08:34:49.265Z","repository":{"id":227199232,"uuid":"770743690","full_name":"fitri-hy/hy-gemini-ai-react","owner":"fitri-hy","description":"A simple Gemini AI Chatbot project using simple ReactJS","archived":false,"fork":false,"pushed_at":"2024-03-14T00:27:53.000Z","size":263,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-26T00:07:32.973Z","etag":null,"topics":["chatbot-gemini","gemini","geminiai","react-gemini","react-gpt"],"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/fitri-hy.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":"2024-03-12T04:39:35.000Z","updated_at":"2024-03-24T08:30:09.000Z","dependencies_parsed_at":"2025-01-19T23:33:17.876Z","dependency_job_id":"5978894f-78cd-4837-a5b4-b5e9f4edff0f","html_url":"https://github.com/fitri-hy/hy-gemini-ai-react","commit_stats":null,"previous_names":["fitri-hy/hy-gemini-ai-react"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fitri-hy/hy-gemini-ai-react","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitri-hy%2Fhy-gemini-ai-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitri-hy%2Fhy-gemini-ai-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitri-hy%2Fhy-gemini-ai-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitri-hy%2Fhy-gemini-ai-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fitri-hy","download_url":"https://codeload.github.com/fitri-hy/hy-gemini-ai-react/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitri-hy%2Fhy-gemini-ai-react/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35647761,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-19T02:00:06.923Z","response_time":112,"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":["chatbot-gemini","gemini","geminiai","react-gemini","react-gpt"],"created_at":"2024-11-19T01:24:02.907Z","updated_at":"2026-07-19T08:34:49.246Z","avatar_url":"https://github.com/fitri-hy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Modules Floating Chat GPT AI (Gemini) for React\n\n\u003cimg src=\"./Screenshot.png\" alt=\"ss\"/\u003e\n\nReactJS modules are simple but have many advantages, one of which is that you can customize them freely.\n\n## NPM Installation\n```sh\nnpm i hytech-component\nnpm i @google/generative-ai\nnpm i react-markdown\n```\n\n## Import Modules\n```sh\nimport GeminiAI,{ ButtonGpt, CloseButtonGpt, FormInputGpt, MessageGpt } from \"hytech-component/GeminiAI\";\nimport Markdown from 'react-markdown';\n```\n## Setup Config\n```sh\n  const apiKey = 'Your apiKey'; // Use your GeminiAI Api here\n  const command = 'You have to pretend to be a AI for HyTech Group';\n  const aiModel = 'gemini-pro';\n  const {\n    showBoxAI,\n    toggleBox,\n    loading,\n    response,\n    message,\n    setMessage,\n    handleSubmit,\n  } = GeminiAI(apiKey, command, aiModel);\n```\n\n## Implementation Component\n```sh\n\u003cdiv\u003e\n  \u003cButtonGpt className=\"float-button\" onClick={toggleBox}\u003eAI\u003c/ButtonGpt\u003e\n  {showBoxAI \u0026\u0026 (\n    \u003cdiv className=\"card\"\u003e\n      \u003cCloseButtonGpt className=\"close\" onClick={toggleBox}\u003e\n        \u003csvg xmlns=\"http://www.w3.org/2000/svg\" width=\"18\" height=\"18\" fill=\"currentColor\" viewBox=\"0 0 24 24\"\u003e\u003cpath d=\"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"/\u003e\u003c/svg\u003e\n      \u003c/CloseButtonGpt\u003e\n      \u003cFormInputGpt className=\"input-section\" handleSubmit={handleSubmit}\u003e\n        \u003cinput type=\"text\" value={message} onChange={(e) =\u003e setMessage(e.target.value)} /\u003e\n        \u003cButtonGpt\u003eAsk\u003c/ButtonGpt\u003e\n      \u003c/FormInputGpt\u003e\n      \u003cdiv className=\"message-section\"\u003e\n        {loading ? \n          \u003cMessageGpt\u003e\n            Loading ...\n          \u003c/MessageGpt\u003e : \u003cMessageGpt\u003e\n            \u003cMarkdown\u003e{String(response)}\u003c/Markdown\u003e\n          \u003c/MessageGpt\u003e\n        }\n      \u003c/div\u003e\n    \u003c/div\u003e\n  )}\n\u003c/div\u003e\n```\n\n## Full Code App.js\n\n```sh\nimport React from \"react\";\nimport GeminiAI,{ ButtonGpt, CloseButtonGpt, FormInputGpt, MessageGpt } from \"hytech-component/GeminiAI\";\nimport Markdown from 'react-markdown';\n\nfunction App() {\n  const apiKey = 'Your apiKey'; // Use your GeminiAI Api here\n  const command = 'You have to pretend to be a AI for HyTech Group';\n  const aiModel = 'gemini-pro';\n  const {\n    showBoxAI,\n    toggleBox,\n    loading,\n    response,\n    message,\n    setMessage,\n    handleSubmit,\n  } = GeminiAI(apiKey, command, aiModel);\n\n  return (\n    \u003cdiv\u003e\n      \u003cButtonGpt className=\"float-button\" onClick={toggleBox}\u003eAI\u003c/ButtonGpt\u003e\n      {showBoxAI \u0026\u0026 (\n        \u003cdiv className=\"card\"\u003e\n          \u003cCloseButtonGpt className=\"close\" onClick={toggleBox}\u003e\n            \u003csvg xmlns=\"http://www.w3.org/2000/svg\" width=\"18\" height=\"18\" fill=\"currentColor\" viewBox=\"0 0 24 24\"\u003e\u003cpath d=\"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"/\u003e\u003c/svg\u003e\n          \u003c/CloseButtonGpt\u003e\n          \u003cFormInputGpt className=\"input-section\" handleSubmit={handleSubmit}\u003e\n            \u003cinput\n              type=\"text\"\n              value={message}\n              onChange={(e) =\u003e setMessage(e.target.value)}\n            /\u003e\n            \u003cButtonGpt\u003e\n              Ask\n            \u003c/ButtonGpt\u003e\n          \u003c/FormInputGpt\u003e\n          \u003cdiv className=\"message-section\"\u003e\n            {loading ? \n            \u003cMessageGpt\u003e\n              Loading ...\n            \u003c/MessageGpt\u003e : \u003cMessageGpt\u003e\n              \u003cMarkdown\u003e{String(response)}\u003c/Markdown\u003e\n            \u003c/MessageGpt\u003e\n            }\n          \u003c/div\u003e\n        \u003c/div\u003e\n      )}\n    \u003c/div\u003e\n  );\n}\n\nexport default App;\n```\n\n## Get ApiKey\nGo to : \u003ca href=\"https://makersuite.google.com/\"\u003eHERE\u003c/a\u003e\n\n\u003cp\u003eOfficial Site: \u003ca href=\"https://hy-tech.my.id/docs\"\u003eHyTech Group\u003c/a\u003e\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffitri-hy%2Fhy-gemini-ai-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffitri-hy%2Fhy-gemini-ai-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffitri-hy%2Fhy-gemini-ai-react/lists"}