{"id":27816948,"url":"https://github.com/supratimrk/ai-rewrite","last_synced_at":"2026-05-01T19:32:54.199Z","repository":{"id":290447187,"uuid":"974481464","full_name":"SupratimRK/Ai-rewrite","owner":"SupratimRK","description":"Chrome extension ✨ Right-click selected text in input fields to rewrite it (Polite, Professional, Cheeky, etc.) or compose new text using Google Gemini AI 🤖. Because sometimes words are hard. 🤷‍♀️","archived":false,"fork":false,"pushed_at":"2025-04-28T21:14:29.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-28T22:38:58.950Z","etag":null,"topics":["ai","ai-api","api","chrome-extension","chrome-extensions","content-creation","context-menu","gemini","gemini-api","gemini-api-js","javascript","natural-language-processing","nlp","productivity","productivity-tools","text-rewriter"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SupratimRK.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2025-04-28T21:05:07.000Z","updated_at":"2025-04-28T21:18:44.000Z","dependencies_parsed_at":"2025-04-28T22:40:52.730Z","dependency_job_id":"aa719311-c5fd-424f-8c61-44e0718e1771","html_url":"https://github.com/SupratimRK/Ai-rewrite","commit_stats":null,"previous_names":["supratimrk/ai-rewrite"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SupratimRK%2FAi-rewrite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SupratimRK%2FAi-rewrite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SupratimRK%2FAi-rewrite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SupratimRK%2FAi-rewrite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SupratimRK","download_url":"https://codeload.github.com/SupratimRK/Ai-rewrite/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251888899,"owners_count":21660249,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["ai","ai-api","api","chrome-extension","chrome-extensions","content-creation","context-menu","gemini","gemini-api","gemini-api-js","javascript","natural-language-processing","nlp","productivity","productivity-tools","text-rewriter"],"created_at":"2025-05-01T14:25:57.255Z","updated_at":"2026-05-01T19:32:54.187Z","avatar_url":"https://github.com/SupratimRK.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/user-attachments/assets/b63c31c2-718c-42db-8cfd-393ba1dcadfc\" alt=\"Screenshot\"\u003e\n\u003c/p\u003e\n\n# ✨ AI Text Rewriter Pro - Advanced Chrome Extension for AI-Powered Writing ✨\n\n**(Transform your writing with OpenAI and OpenAI-compatible APIs! 🚀)**\n\n[![Version](https://img.shields.io/badge/Version-2.5.1-blue)](https://github.com/SupratimRK/Ai-rewrite/releases) [![License](https://img.shields.io/badge/License-MIT-green)](LICENSE) [![Chrome Extension](https://img.shields.io/badge/Chrome-Extension-yellow)](https://chrome.google.com/webstore) [![AI Powered](https://img.shields.io/badge/AI-OpenAI-red)](https://platform.openai.com/) [![JavaScript](https://img.shields.io/badge/Language-JavaScript-blue)](https://developer.mozilla.org/en-US/docs/Web/JavaScript) [![GitHub Stars](https://img.shields.io/github/stars/SupratimRK/Ai-rewrite?style=social)](https://github.com/SupratimRK/Ai-rewrite/stargazers) [![GitHub Forks](https://img.shields.io/github/forks/SupratimRK/Ai-rewrite?style=social)](https://github.com/SupratimRK/Ai-rewrite/network/members) [![GitHub Issues](https://img.shields.io/github/issues/SupratimRK/Ai-rewrite)](https://github.com/SupratimRK/Ai-rewrite/issues) [![Validation](https://github.com/SupratimRK/Ai-rewrite/actions/workflows/validate.yml/badge.svg)](https://github.com/SupratimRK/Ai-rewrite/actions/workflows/validate.yml)\n\n**AI Text Rewriter Pro** is a powerful Chrome extension that revolutionizes your writing using OpenAI and OpenAI-compatible APIs. Perfect for content creators, professionals, students, and anyone who wants to enhance their writing with AI assistance. Features **21+ built-in rewriting modes**, **custom prompts**, **grammar checking**, **undo functionality**, and seamless integration across all websites.\n\n## 🎯 Quick Start Guide\n\n1. **Install**: [Download from Chrome Web Store](https://chrome.google.com/webstore) (coming soon) or load unpacked\n2. **Setup**: Add your OpenAI API key in extension settings (or use OpenAI-compatible API endpoint)\n3. **Use**: Select text on any website → Right-click → Choose AI rewriting mode\n4. **Enjoy**: Watch your writing transform with professional AI assistance!\n\n## 🔍 Keywords \u0026 Search Terms\n\n**Chrome Extension AI Writing Tools** | **OpenAI Text Rewriter** | **AI Grammar Checker** | **Professional Writing Assistant** | **Content Creation Tools** | **Text Improvement Software** | **AI-Powered Editor** | **Writing Enhancement Extension** | **Productivity Tools for Writers** | **Automated Content Editing**\n\n---\n\nEver stared at a sentence you wrote and thought, \"Wow, I sound like a bored robot trying to order pizza\"? 🤖🍕 This extension is your secret weapon! It uses **OpenAI** (GPT-4o, GPT-4o-mini, or any OpenAI-compatible API like LM Studio, Ollama, etc.) to magically rewrite your text directly in input fields and text areas across the web.\n\nSelect some text, right-click, pick a vibe, and BAM! 💥 New words. Hopefully better words. Sometimes... *interesting* words. It's AI, folks, it's a wild ride! 🎢\n\n---\n\n## 🚀 What's New in Version 2.5.1! 🚀\n\n- � **Fixed Preview Mode** - Text injection now works reliably when clicking \"Insert\"\n- ✨ **Improved Highlighting** - Input/textarea fields now get a golden outline highlight\n- �🔄 **OpenAI Integration** - Uses OpenAI instead of Google Gemini (since v2.5.0)\n- 🌐 **Custom API Endpoints** - Support for OpenAI-compatible APIs (LM Studio, Ollama, etc.)\n- 🎭 **21 Professional Writing Modes** - From humanize to technical precision\n- 🎨 **Custom Mode Creator** - Build your own rewriting styles\n- ↶ **Undo Functionality** - Instantly revert any rewrite\n- ⌨️ **Keyboard Shortcuts** - Lightning-fast rewriting with hotkeys\n- 📊 **Usage Analytics** - Track your writing improvements\n- 🌙 **Dark Mode** - Easy on the eyes, beautiful interface\n- 🔄 **Multiple AI Models** - Choose from GPT-4o, GPT-4o-mini, or GPT-3.5-turbo\n- 📤 **Settings Export/Import** - Backup and share your configurations\n- 🛡️ **Enhanced Error Handling** - Robust retry logic and user-friendly messages\n- 🎯 **Smart Text Validation** - Length limits and content filtering\n\n---\n\n## 🚀 Features (The Shiny Bits!) 🚀\n\n*   **🪄 Magic Wand Right-Click Action:** Select text in almost any editable field, right-click, and BOOM - rewrite options appear!\n*   **🎭 21 Professional Writing Modes:** From humanize to technical precision, empathetic to persuasive - we've got every tone covered!\n*   **🎨 Custom Mode Creator:** Build your own rewriting styles with personalized prompts\n*   **↶ Undo Functionality:** Instantly revert any rewrite with a single click\n*   **⌨️ Keyboard Shortcuts:** Lightning-fast rewriting with customizable hotkeys\n*   **🧠 Powered by OpenAI:** Use GPT-4o, GPT-4o-mini, GPT-3.5-turbo, or any OpenAI-compatible API\n*   **🌐 Flexible API Support:** Works with OpenAI, LM Studio, Ollama, and other compatible endpoints\n*   **🔑 Secure API Key Storage:** Uses `chrome.storage.sync` to save your API key (syncs across your Chrome browsers!)\n*   **🎨 Modern Options Interface:** Dark mode support and intuitive settings management\n*   **📊 Usage Analytics:** Track your writing improvements and most-used modes\n*   **📢 Smart Notifications:** Helpful popups that tell you what's happening (and fade away gracefully)\n*   **🛡️ **Enhanced Error Handling:** Robust retry logic and user-friendly error messages\n\n---\n\n## 🎭 17 Built-in Writing Modes\n\n| Mode | Purpose | Perfect For |\n|------|---------|-------------|\n| 📝 **Humanize** | Make text sound natural and conversational | Robot-like content, stiff writing |\n| ✅ **Grammar Fix** | Correct spelling and grammar only | Quick proofreading, error correction |\n| 👔 **Professional** | Business-appropriate formal tone | Emails, reports, official documents |\n| 🙏 **Polite** | Courteous and respectful language | Customer service, delicate situations |\n| 😊 **Casual** | Friendly, informal conversation | Social media, casual emails |\n| 💪 **Confident** | Assertive and decisive language | Presentations, negotiations |\n| ❤️ **Empathetic** | Understanding and caring tone | Support messages, sensitive topics |\n| 🎯 **Persuasive** | Compelling and convincing | Sales copy, proposals, arguments |\n| ⚡ **Concise** | Clear and to-the-point | Headlines, summaries, tweets |\n| 📚 **Detailed** | Comprehensive and thorough | Explanations, tutorials, guides |\n| 🎨 **Creative** | Engaging and imaginative | Marketing copy, storytelling |\n| 🔬 **Technical** | Precise and specification-focused | Documentation, instructions |\n| 😏 **Cheeky** | Playful and slightly sarcastic | Social media, casual content |\n| 🎓 **Beginner-Friendly** | Simple and accessible language | Educational content, how-tos |\n| ✍️ **Composer** | Generate content from instructions | Create new text from prompts |\n| 🌍 **Translate** | Convert to English or improve clarity | International content, clarity |\n| 📄 **Summarize** | Extract key points concisely | Long documents, research |\n\n---\n\n## 🛠️ Installation \u0026 Quick Start Guide 🛠️\n\n### 📦 Installation (Let's Get This Party Started!)\n\nAlright, since this isn't (yet?) on the Chrome Web Store (because who has time for reviews? 🙄), you gotta load it manually like a true tech wizard (or someone who can follow instructions).\n\n1.  **Grab the Goods 🛍️:** Download the extension files. Either clone the repository or download the ZIP and unzip it somewhere you won't accidentally delete it later. Let's call this magical place the `ai-rewriter-extension` folder.\n2.  **Open Chrome's Secret Lair 🚪:** Open Google Chrome, type `chrome://extensions` in your address bar, and hit Enter. Spooooky!\n3.  **Flip the Super Secret Developer Switch 🕵️‍♀️:** Look for a toggle labeled \"Developer mode\" (usually in the top right corner). Click it. If it's on, you're basically a hacker now. Congrats.\n4.  **Shove the Folder at Chrome 욱:** Click the \"Load unpacked\" button that magically appeared. A file browser window will pop up.\n5.  **Point and Shoot 👉:** Navigate to and select that `ai-rewriter-extension` folder (the one *containing* the `manifest.json` file, not the zip file!). Click \"Select Folder\" or \"Open\".\n6.  **Bask in the Glory (or fix errors) 🙏:** If all went well, you should see the \"AI Text Rewriter Pro\" extension card appear on the page! If you see angry red errors, you probably messed up step 5. Go back and try again, champ. 💪\n7.  **Pin for Easy Access:** Click the puzzle piece icon in Chrome's toolbar and pin the AI Text Rewriter Pro extension for quick access.\n\n🎉 **Ta-da!** The extension icon should appear in your Chrome toolbar!\n\n### 🚀 Quick Start Guide\n\n#### 1. Initial Setup\n1. Click the extension icon or right-click → \"Settings\"\n2. Get your API key from [OpenAI Platform](https://platform.openai.com/api-keys)\n3. (Optional) Add custom base URL for OpenAI-compatible APIs\n4. Paste your API key and test the connection\n5. Customize your settings (models, modes, shortcuts)\n6. Save and start rewriting!\n\n#### 2. Using the Extension\n**Right-Click Method:**\n1. Select text in any editable field\n2. Right-click on the selected text\n3. Choose \"✨ Rewrite with AI\" → pick your desired mode\n4. Watch the magic happen!\n\n**Keyboard Shortcuts:**\n- `Ctrl+Shift+H` - Humanize selected text\n- `Ctrl+Shift+P` - Professional tone\n- `Ctrl+Shift+Z` - Undo last rewrite\n\n---\n\n## ⚙️ Configuration: The Golden Ticket 🔑\n\nOkay, here's the *slightly* annoying part. This extension needs **YOUR** OpenAI API Key to actually talk to the AI. Think of it like needing a password to get into the cool AI club.\n\n**Why?** Because accessing powerful AI models costs money (or at least has usage limits), and OpenAI needs to know who's asking! This extension makes requests directly from *your* browser using *your* key.\n\n**Where to Snag This Magical Key? 🤔**\n\n1.  Go to the **[OpenAI Platform](https://platform.openai.com/api-keys)**. You'll need an OpenAI account.\n2.  Click \"Create new secret key\" or \"+Create new secret key\".\n3.  Give your key a name (like \"AI Rewriter Extension\").\n4.  **COPY THIS KEY!** 📋 It starts with `sk-` and is a long string of random characters. Treat it like a password. Don't share it publicly!\n5.  **Important:** You won't be able to see this key again, so save it somewhere safe!\n\n**Alternative: OpenAI-Compatible APIs**\n\nYou can also use other compatible APIs:\n- **Vercel AI Gateway**: Unified access to multiple AI providers - set base URL to `https://ai-gateway.vercel.sh/v1`\n  - Get your API key from [Vercel Dashboard](https://vercel.com/dashboard)\n  - Use models in `provider/model` format (e.g., `meta/llama-3.1-8b`, `anthropic/claude-sonnet-4.5`)\n  - Access OpenAI, Anthropic, Meta, Google, Amazon, and more through one endpoint!\n- **LM Studio**: Run models locally - set base URL to `http://localhost:1234/v1`\n- **Ollama**: Local models - typically `http://localhost:11434/v1`\n- **Any OpenAI-compatible endpoint**: Just set the custom base URL in settings\n\n**Plugging in the Power Cord 🔌**\n\n1.  Click the **AI Text Rewriter Pro extension icon** 🧩 in your Chrome toolbar. This should open the modern Options page.\n    *   *Alternatively:* Go back to `chrome://extensions`, find the AI Text Rewriter Pro card, click \"Details\", then \"Extension options\". So many clicks!\n2.  You'll see a field labeled \"**OpenAI API Key**\". It's a password field, so you won't see the key as you paste (oooooh, security! ✨).\n3.  **PASTE** your copied API key into this box.\n4.  (Optional) If using a compatible API, enter the base URL in the \"Custom Base URL\" field.\n5.  Click \"**Test API Key**\" to verify your connection works. 🧪\n6.  Click the glorious \"**Save Settings**\" button. 💾\n7.  You *should* see a happy green message saying \"Settings saved successfully!\". ✅ If you see an angry red message, well... Houston, we have a problem. 🚀 (Did you paste the *whole* key?).\n\n**❗ IMPORTANT NOTE ABOUT YOUR KEY ❗**\n\n*   **Keep it Secret, Keep it Safe!** 🔒 Don't commit it to public code, don't paste it in random chat rooms. It's linked to *your* OpenAI account.\n*   **Usage Costs $$$!** OpenAI charges for API usage based on tokens. Check their [pricing page](https://openai.com/api/pricing/)! You are responsible for the usage associated with your key. Start with GPT-4o-mini for cost-effective rewrites. Don't blame us if you rewrite War and Peace and get a bill. 💸\n*   **Free Alternative:** Use local models with LM Studio or Ollama for completely free, private AI rewriting!\n\n---\n\n## ✨ How to Use (The Fun Part!) ✨\n\nOkay, installed? ✅ API key saved? ✅ Ready to rock? ✅ Let's rewrite!\n\n1.  **Find a Victim... I Mean, a Text Box 🎯:** Go to any website with a text input field (`\u003ctextarea\u003e`, some `\u003cinput\u003e` fields). Think email drafts, comment boxes, social media posts, online notepads... you get the idea.\n    *   **Heads Up:** This probably *won't* work on super fancy custom editors like Google Docs or Notion directly, as they do weird things. It *definitely* won't work on `chrome://` pages (like the extensions page itself) for security reasons! Stick to normal web pages (http/https).\n2.  **Type Your Soon-to-be-Glorious Words ⌨️:** Write something. Anything! Pour your heart out, or just type \"the quick brown fox jumps over the lazy dog\".\n3.  **Highlight the Chosen Ones ✨:** Select the text you want to transform using your mouse or keyboard.\n4.  **Invoke the Menu! Right-Click Pow! 🖱️💥:** Right-click directly *on the selected text*.\n5.  **Behold! The Menu! 🤩:** Hover over the \"**✨ Rewrite with AI**\" option in the context menu that pops up.\n6.  **Pick Your Mode 🎭:** Choose one of the 17 available modes from the sub-menu (Humanize, Professional, Creative, Technical, etc.).\n7.  **Patience, Grasshopper... 🌱:** A sleek notification will appear showing the progress. The extension sends your text and chosen mode to the selected Gemini AI model. Response time depends on text complexity and your selected AI model. 🐹\n8.  **Witness the Transformation! 🪄:** If the AI gods smile upon you, the selected text will be **replaced** with the rewritten version! 🎉\n\n---\n\n## ⚙️ Advanced Features\n\n### 🎨 Custom Modes\nCreate your own rewriting styles:\n1. Go to Settings → Custom tab\n2. Enter a name and detailed prompt\n3. Save and use it like any built-in mode\n4. Export/import custom modes between devices\n\n### 📊 Usage Analytics\nTrack your writing improvements:\n- Total rewrites performed\n- Characters processed\n- Most-used modes\n- Usage timeline\n\n### 🛡️ Smart Protection\n- **Rate Limiting**: Prevents API overuse\n- **Text Length Limits**: Configurable maximum text size\n- **Error Recovery**: Automatic retries with exponential backoff\n- **Safety Filters**: Content moderation built-in\n\n### 🔧 Advanced Settings\n- **Multiple AI Models**: Choose between Gemini 1.5 Flash, Pro, or 2.0\n- **Dark Mode**: Beautiful dark interface\n- **Keyboard Shortcuts**: Customizable hotkeys\n- **Undo History**: Keep track of recent changes\n- **Settings Backup**: Export/import all configurations\n\n---\n\n## 🚨 Enhanced Error Handling \u0026 User Notifications\n\nVersion 2.1.1 introduces comprehensive error handling to keep you informed every step of the way:\n\n### 🔧 Automatic Error Detection\n- **API Key Validation**: Instant feedback on missing or invalid API keys\n- **Network Error Handling**: Clear messages for connection issues\n- **Rate Limit Detection**: Helpful notifications when API limits are reached\n- **Content Safety Filters**: Informative messages about blocked content\n\n### 📢 Smart Notification System\n- **Clickable Error Messages**: Click on API key errors to open settings directly\n- **System Notifications**: Native Chrome notifications for setup reminders\n- **Progressive Error Messages**: Context-aware help based on error type\n- **Auto-Recovery**: Intelligent retry logic for temporary issues\n\n### 🎯 Common Error Solutions\n\n| Error Type | What It Means | How to Fix |\n|------------|---------------|------------|\n| 🔑 **\"No API key configured\"** | Missing OpenAI API key | Click notification to open settings |\n| 🚫 **\"Invalid API key format\"** | Incorrect key format | Check your key starts with \"sk-\" or \"sess-\" |\n| ⚡ **\"Rate limit reached\"** | Too many requests | Wait a few minutes or upgrade your OpenAI plan |\n| 🌐 **\"Network error\"** | Connection issues | Check your internet connection or base URL |\n| 🛡️ **\"Content blocked\"** | Safety filters triggered | Try rephrasing your text |\n| ⏰ **\"Request timeout\"** | Server response delay | Try again with shorter text |\n\n---\n\n## 🎯 Perfect For\n\n- **Content Creators** - Adapt tone for different audiences\n- **Business Professionals** - Polish emails and documents\n- **Students** - Improve academic writing\n- **Customer Service** - Craft appropriate responses\n- **Social Media Managers** - Match brand voice\n- **Non-native Speakers** - Enhance English fluency\n- **Marketers** - Create compelling copy\n- **Technical Writers** - Clarify complex concepts\n\n---\n\n## 🎭 Detailed Mode Guide (Choose Your Weapon Wisely) 🎭\n\n### Core Writing Modes\n\n*   **📝 `Humanize`:** Make text sound natural and conversational 🤖➡️🧑‍🎨\n    *   *Perfect for:* Robot-like content, stiff writing, overly formal text that needs a conversational flow.\n\n*   **✅ `Grammar Fix`:** Your personal proofreader 🧐\n    *   *Perfect for:* Quick error correction without changing tone or meaning. Focuses purely on spelling and grammar.\n\n*   **👔 `Professional`:** Business-appropriate formal tone �\n    *   *Perfect for:* Work emails, reports, official documents, presentations, and corporate communication.\n\n*   **🙏 `Polite`:** Courteous and respectful language \n    *   *Perfect for:* Customer service, delicate situations, requests, and when you need to sound diplomatic.\n\n### Personality \u0026 Tone Modes\n\n*   **😊 `Casual`:** Friendly, informal conversation \n    *   *Perfect for:* Social media posts, casual emails, friendly messages, and relaxed communication.\n\n*   **💪 `Confident`:** Assertive and decisive language \n    *   *Perfect for:* Presentations, negotiations, leadership communication, and when you need to sound authoritative.\n\n*   **❤️ `Empathetic`:** Understanding and caring tone \n    *   *Perfect for:* Support messages, sensitive topics, consoling someone, and emotional communication.\n\n*   **😏 `Cheeky`:** Playful and slightly sarcastic \n    *   *Perfect for:* Social media content, casual writing, humor, and when you want to add personality.\n\n### Content Optimization Modes\n\n*   **🎯 `Persuasive`:** Compelling and convincing language \n    *   *Perfect for:* Sales copy, proposals, arguments, marketing content, and calls-to-action.\n\n*   **⚡ `Concise`:** Clear and to-the-point \n    *   *Perfect for:* Headlines, summaries, tweets, bullet points, and when brevity matters.\n\n*   **📚 `Detailed`:** Comprehensive and thorough \n    *   *Perfect for:* Explanations, tutorials, guides, documentation, and in-depth content.\n\n*   **🎨 `Creative`:** Engaging and imaginative \n    *   *Perfect for:* Marketing copy, storytelling, creative writing, and content that needs flair.\n\n### Specialized Modes\n\n*   **🔬 `Technical`:** Precise and specification-focused \n    *   *Perfect for:* Documentation, instructions, technical writing, and professional specifications.\n\n*   **🎓 `Beginner-Friendly`:** Simple and accessible language \n    *   *Perfect for:* Educational content, how-to guides, explaining complex topics simply.\n\n*   **✍️ `Composer`:** Generate content from instructions 🧞\n    *   *Perfect for:* Creating new text from prompts. Type your instruction (e.g., \"write email asking for project update\"), select it, and choose Composer to generate fresh content.\n\n*   **🌍 `Translate`:** Convert to English or improve clarity \n    *   *Perfect for:* International content, non-native English text, and improving readability.\n\n*   **📄 `Summarize`:** Extract key points concisely \n    *   *Perfect for:* Long documents, research papers, articles, and when you need the main points.\n\n---\n\n## 🤔 Troubleshooting (When Things Go Sideways) 🤔\n\nYeah, sometimes technology just says \"NOPE\". 🙅‍♂️ Here's a comprehensive guide:\n\n### Common Issues\n\n**😭 It's Not Working AT ALL!**\n*   **API Key:** Did you *actually* save your API key correctly in the options? Is it the *right* key? Double-check!\n*   **Reload Extension:** Go to `chrome://extensions` and click the little refresh icon 🔄 on the AI Text Rewriter Pro card. Sometimes extensions get sleepy.\n*   **Reload Page:** Try refreshing the webpage (F5) you're trying to use it on.\n*   **Check Console (Background):** Go to `chrome://extensions`, find the AI Text Rewriter Pro card, and click the \"**Service worker**\" link. Look for **RED ERROR MESSAGES** in the console window that pops up *after* you try to use the extension. Copy/paste these if you need help!\n*   **Check Console (Page):** On the webpage where it's failing, right-click anywhere, select \"Inspect\", and go to the \"Console\" tab. Try using the extension again. Any **RED ERRORS** there?\n\n**\"API Key not working\"**\n- Verify key is correctly copied from the AI provider\n- Check if your account has API access enabled\n- Test connection in Settings → General → Test API Key\n\n**🚫 Error: `Cannot access chrome:// URL`**\n*   You're trying to use the extension on a Chrome settings page (like `chrome://extensions`). For security reasons, Chrome blocks extensions from messing with these pages. Use it on a regular `http://` or `https://` website.\n\n**\"Cannot rewrite on this page\"**\n- Extension only works on regular websites (http/https)\n- Won't work on Chrome internal pages (chrome://)\n- Ensure you're in an editable text field\n\n**\"Text not replacing\"**\n- Click in the text field before selecting text\n- Try refreshing the page and attempting again\n- Check browser console for detailed error messages\n\n**✨ Weird Output (Options, Asterisks `*`, Emails when you didn't ask?)**\n*   The AI can be a bit... creative. We've tried to tell it *very sternly* in the prompts to JUST give the rewritten text and nothing else (no markdown like `*emphasis*`, no \"Option 1:\", etc.).\n*   If you still get weird formatting or unexpected content (like a full email for \"Professional Tone\"), the AI might be ignoring instructions. We added some cleanup code, but it's not perfect. Prompt engineering is hard! 🤷‍♂️\n\n**🚦 Error: `Content blocked by API...`**\n*   The AI's safety filters might have flagged your original text or the requested rewrite (especially possible with \"Cheeky\"). Try rephrasing your original text or using a different mode.\n\n**\"Too many requests\"**\n- Built-in rate limiting prevents API overuse\n- Wait 60 seconds and try again\n- Consider upgrading your plan for higher limits\n\n**📉 API Errors (4xx/5xx Status)**\n*   `400 Bad Request`: Often means the model name is wrong or the request format is broken. Try switching AI models in settings.\n*   `401 Unauthorized` / `403 Forbidden`: Almost always an **API Key problem**. Is it correct? Is it enabled? Does your project have the API enabled?\n*   `404 Not Found`: The API endpoint URL might be wrong.\n*   `429 Too Many Requests`: You might be hitting rate limits. Slow down!\n*   `500 Internal Server Error`: The servers are having a hiccup. Try again later. ☕\n\n### Getting Help\n1. Check the browser console (F12) for detailed error messages\n2. Test your API connection in the settings\n3. Try different AI models if one isn't working\n4. Report issues with specific error messages\n\n---\n\n## 🔐 Privacy \u0026 Security\n\n- **Your API Key**: Stored locally in your browser, never shared\n- **Your Text**: Sent directly to the AI provider's servers, not stored by us\n- **Usage Data**: Optional analytics stored locally only\n- **No External Tracking**: No third-party analytics or tracking\n- **Open Source**: Inspect the code to verify privacy practices\n\n---\n\n## 📈 Performance Tips\n\n1. **Choose the Right Model**:\n   - Gemini 1.5 Flash: Fastest, most cost-effective\n   - Gemini 1.5 Pro: More capable, better for complex tasks\n   - Gemini 2.0 Flash: Latest features, experimental\n\n2. **Optimize Text Length**:\n   - Keep selections under 2000 characters for best speed\n   - Break long documents into smaller sections\n   - Use concise mode for lengthy content\n\n3. **Use Custom Modes**:\n   - Create specific prompts for recurring tasks\n   - More targeted results than generic modes\n   - Save time with personalized workflows\n\n---\n\n## 🔮 Future Roadmap\n\n- 🌐 **Multi-language Support** - Rewrite in different languages\n- 🔊 **Voice Input** - Dictate text for rewriting\n- 📱 **Mobile Support** - Browser extension for mobile\n- 🤖 **AI Model Comparison** - Side-by-side results\n- 📝 **Template Library** - Pre-made prompts for common tasks\n- 🔗 **Integration APIs** - Connect with other writing tools\n- 📊 **Advanced Analytics** - Writing improvement insights\n\n---\n\n## 💡 Contributing (Got Ideas? Found Bugs?) 💡🐛\n\nHey, if you have ideas to make this less buggy or more awesome, or if you found a hilarious bug (like it rewriting everything into pirate speak 🏴‍☠️ - which would be kinda cool, actually), feel free to:\n\n*   Open an issue on the GitHub repository (if this *is* on GitHub... otherwise, uh... tell the developer?).\n*   Fork it, fix it, and submit a pull request (again, GitHub stuff).\n\nWe appreciate the help making this thing slightly less likely to explode. 🔥\n\n---\n\n## 📜 License (The Legal Mumbo Jumbo) 📜\n\nThis extension is licensed under the **MIT License**.\n\nBasically, this means you can do almost whatever you want with this code (use it, copy it, modify it, sell it - though good luck with that!), as long as you include the original copyright and license notice.\n\n**BUT, there's NO WARRANTY.** If this extension accidentally deletes your masterpiece novel, formats your hard drive, or makes your coffee cold... tough luck. Use at your own risk! 😉\n\n---\n\n## 📝 Acknowledgments \u0026 Credits\n\n- **Google Gemini AI** - Powering the intelligence behind every rewrite\n- **Chrome Extension APIs** - Making seamless integration possible\n- **Open Source Community** - Inspiration and best practices\n- **Beta Testers** - Feedback that shaped this extension\n- Special thanks to the Gemini, OpenAI and Anthropic team for their amazing AI technology!\n- Thanks to the Chrome extension development community for all the resources and inspiration! 🙌\n- And a big shoutout to you, the user! Thanks for trying out this extension and making the internet a slightly more interesting place! 🌍✨\n\n---\n\n## 💝 Support the Project\n\nEnjoying AI Text Rewriter Pro? Here's how you can help:\n\n1. ⭐ **Star the repository** (if open source)\n2. 💬 **Share with friends** who write content\n3. 🐛 **Report bugs** to help improve the extension\n4. 💡 **Suggest features** for future versions\n5. ☕ **Buy me a chai** (because coffee is overrated!)\n\n--- \nIf you like this extension, consider buying me a coffee! ☕ (Just kidding, I don't drink coffee. But I appreciate the thought!)\n\n**Transform your writing today with AI Text Rewriter Pro!** ✨\n\n*Made with 💙 and lots of ☕ (actually 🫖 chai) by Supratim*\n\n**Happy Rewriting! May your words be ever in your favor!** ✨\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupratimrk%2Fai-rewrite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsupratimrk%2Fai-rewrite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupratimrk%2Fai-rewrite/lists"}