How abdulla6883/google-gemini-clone works
This is a small React Gemini chat interface. The user enters a prompt in the main view or reopens one from the sidebar; shared context manages chat state and formats the response, then the Gemini adapter sends the prompt to Google’s generative AI service. The graph also shows new-chat and prompt-history interactions. Relationships are based on the supplied source excerpts; no other capabilities are documented in the README.
Main entry points: context.jsx Chat context · Main.jsx Chat view · Sidebar.jsx Chat sidebar · App.jsx App layout
Components 8
Chat interface
- React entry
src/main.jsx - App layout
src/App.jsx - Chat view
src/components/Main/Main.jsx - Chat sidebar
src/components/Sidebar/Sidebar.jsx
Chat state
- Chat context
src/context/context.jsx
AI integration
- Gemini adapter
src/config/gemini.js
Other components
- User
- Google Gemini
Connections 12
- React entry → Chat context: provides state
src/main.jsx - React entry → App layout: renders
src/main.jsx - App layout → Chat view: renders
src/App.jsx - App layout → Chat sidebar: renders
src/App.jsx - User → Chat view: enters prompts
src/components/Main/Main.jsx - User → Chat sidebar: selects prompts
src/components/Sidebar/Sidebar.jsx - Chat view → Chat context: reads state; sends
src/components/Main/Main.jsx - Chat sidebar → Chat context: loads; starts chat
src/components/Sidebar/Sidebar.jsx - Chat context → Chat view: provides chat state
src/components/Main/Main.jsx - Chat context → Chat sidebar: provides history
src/components/Sidebar/Sidebar.jsx - Chat context → Gemini adapter: sends prompt
src/context/context.jsx - Gemini adapter → Google Gemini: requests generation
src/config/gemini.js