AI-powered reply assistant for X (Twitter) using Google Gemini.
- Automatically extracts tweet content when you click on a tweet
- Generates contextual replies using Google Gemini AI
- 4 tone options: Friendly, Professional, Empathetic, Humorous
- 3 length options: Short, Medium, Long
- Persona analysis: Upload your writings to generate replies in your voice
- Edit and copy generated comments
- Token usage and cost tracking
- Language: TypeScript
- Build Tool: Vite
- UI Framework: React
- LLM: Google Gemini API
- Manifest: Chrome Extension Manifest V3
npm installDevelopment mode (with hot reload):
npm run devProduction build:
npm run build- Navigate to
chrome://extensions/in Chrome - Enable "Developer mode" (toggle in top right)
- Click "Load unpacked"
- Select the
distfolder
- Get an API key from Google AI Studio
- Open the extension Side Panel and enter your API key in Settings
- Go to X (Twitter) website
- Click on a tweet you want to reply to
- The Side Panel opens automatically (or click the extension icon)
- Select your preferred tone and length
- Click "Generate Comment"
- Review and edit the generated reply
- Click "Copy" and paste into the tweet reply box
xcho/
├── src/
│ ├── background/ # Background service worker
│ ├── content/ # Content script (X page interaction)
│ ├── sidepanel/ # React-based Side Panel UI
│ ├── utils/ # Utility functions (Gemini API, Storage, Persona)
│ └── types/ # TypeScript type definitions
├── icons/ # Extension icons
├── manifest.json # Chrome Extension configuration
├── sidepanel.html # Side Panel HTML entry
└── vite.config.ts # Vite build configuration
- Your Gemini API key is stored locally and never transmitted externally
- API usage may incur charges to your Google account
- Always review generated replies before posting
MIT