How the0wl/chat-gratuito works
Chat IA is a browser-based chat client for Gemini, Groq, and Claude. A user enters a message; ChatInterface checks the selected provider’s saved API key, updates conversation state, dispatches the conversation to that provider, and displays the returned text. Settings manage API keys in local storage, while App manages the persisted theme. The excerpts establish the main render, callback, and request flows; no README content was provided, so unsampled capabilities are not inferred.
Main entry points: ChatInterface.tsx Chat Orchestrator · App.tsx App Theme · gemini.ts Gemini Client · groq.ts Groq Client
Components 18
Application Shell
- React Entry
src/main.tsx - App Theme
src/App.tsx - Chat Data Types
src/types.ts
Conversation UI
- Chat Orchestrator
src/components/ChatInterface.tsx - Message Input
src/components/MessageInput.tsx - Message List
src/components/MessageList.tsx - Message Rendering
src/components/MessageBubble.tsx
Controls and Settings
- Model Selector
src/components/ModelSelector.tsx - API Key Settings
src/components/SettingsModal.tsx - Theme Toggle
src/components/ThemeToggle.tsx
Model Providers
- Gemini Client
src/services/gemini.ts - Groq Client
src/services/groq.ts - Claude Client
src/services/claude.ts
Other components
- User
- Browser Local Storage
- Gemini API
- Groq API
- Anthropic API
Connections 24
- User → Message Input: enters message
src/components/MessageInput.tsx - React Entry → App Theme: renders
src/main.tsx - App Theme → Chat Orchestrator: renders
src/App.tsx - App Theme → Browser Local Storage: reads and writes theme
src/App.tsx - Chat Orchestrator → Message Input: renders
src/components/ChatInterface.tsx - Chat Orchestrator → Message List: renders
src/components/ChatInterface.tsx - Message List → Message Rendering: renders
src/components/MessageList.tsx - Chat Orchestrator → Model Selector: renders
src/components/ChatInterface.tsx - Chat Orchestrator → API Key Settings: renders
src/components/ChatInterface.tsx - Chat Orchestrator → Theme Toggle: renders
src/components/ChatInterface.tsx - Message Input → Chat Orchestrator: submits text
src/components/MessageInput.tsx - Model Selector → Chat Orchestrator: changes model
src/components/ChatInterface.tsx - API Key Settings → Chat Orchestrator: saves keys
src/components/ChatInterface.tsx - Theme Toggle → App Theme: toggles theme
src/App.tsx - Chat Orchestrator → Browser Local Storage: reads and writes keys
src/components/ChatInterface.tsx - Chat Orchestrator → Gemini Client: dispatches request
src/components/ChatInterface.tsx - Chat Orchestrator → Groq Client: dispatches request
src/components/ChatInterface.tsx - Chat Orchestrator → Claude Client: dispatches request
src/components/ChatInterface.tsx - Gemini Client → Gemini API: sends request
src/services/gemini.ts - Groq Client → Groq API: sends request
src/services/groq.ts - Claude Client → Anthropic API: sends request
src/services/claude.ts - Gemini Client → Chat Orchestrator: returns reply
src/components/ChatInterface.tsx - Groq Client → Chat Orchestrator: returns reply
src/components/ChatInterface.tsx - Claude Client → Chat Orchestrator: returns reply
src/components/ChatInterface.tsx