A Chrome extension that helps you generate thoughtful and engaging replies to X (Twitter) posts using Google's Gemini AI. Quickly craft personalized, context-aware responses with just one click.
- One-Click AI Replies - Generate thoughtful responses with a single click
- Personalized Tone - Choose from multiple tone options to match your style:
- 😊 Casual - Informal and conversational
- 💼 Professional - Polished and business-appropriate
- 🤝 Friendly - Warm and approachable (default)
- 🎉 Enthusiastic - Energetic and positive
- 😄 Witty - Clever with a touch of humor
- 🎩 Formal - Very proper and respectful
- Secure - Your API key is stored locally in Chrome's sync storage
- Lightweight - Minimal impact on browser performance
- Dark Mode Ready - Automatically adapts to your system theme
- Privacy-Focused - No data collection, works entirely in your browser
- A modern web browser (Chrome, Edge, Brave, etc.)
- A Google AI API key (get one at Google AI Studio)
- Get a free API key from Google AI Studio
- Copy your API key (starts with
AIzaSy...)
git clone https://github.com/Harsha2318/FlashReply_X.git- Open
chrome://extensions/ - Enable "Developer mode" (top-right)
- Click "Load unpacked" and select the extension folder
- Click the extension icon
- Select "Settings" (⚙️)
- Paste your API key
- Choose your preferred tone
- Click "Save"
- Find a Tweet - Browse Twitter as usual
- Click 🤖 AI Reply - Next to any tweet's reply button
- Review & Post - The response is automatically inserted for you to review
- Edit if needed - Make any adjustments before posting
- Change your tone anytime in settings
- The extension works in both light and dark mode
- Your preferences sync across devices when signed into Chrome
We take your privacy seriously:
- Local Processing - All AI processing happens in Google's secure servers
- No Data Collection - We don't store or track any of your data
- Secure Storage - Your API key is encrypted in Chrome's sync storage
- Minimal Permissions - Only accesses Twitter/X domains and Google's API
-
Clone the repository
-
Make your changes
-
Load the extension in Chrome:
git clone https://github.com/yourusername/x-ai-reply-extension.git cd x-ai-reply-extension -
Make your changes to the code
-
Load the extension in Chrome
- Go to
chrome://extensions/ - Enable "Developer mode"
- Click "Load unpacked" and select the extension directory
- Go to
- Make sure the extension is loaded in Chrome
- Navigate to Twitter and test the functionality
- Check the browser console for any errors (right-click -> Inspect -> Console)
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with ❤️ using vanilla JavaScript
- Powered by Google's Gemini AI for high-quality responses
- Lightweight and fast performance
- Secure and private - your data stays on your device
- Inspired by the need for more meaningful social media interactions

