AI-powered Smart Reply, Enhance & Translate Assistant: Instantly generate smart, context-aware replies, enhance your own text, or translate content for your workflow: messages, emails, chats, and more directly from your browser or web app!
Smart Reply, Enhance & Translate is a comprehensive AI tool suite consisting of a browser extension (Chrome/Firefox), a React-based web application, and a shared backend service. It uses LLMs (via OpenRouter) to suggest replies intelligently based on the context of your communication, improve and refine your own text, or translate text with customizable styles.
It helps boost productivity for anyone who writes repetitive messages, needs quick text improvements, or requires translations as freelancers, support agents, or busy professionals. The browser extension provides on-the-go access directly in your browser, while the web app offers a full-featured interface for deeper interactions.
- 💬 Four AI Reply Suggestions per Message – Get up to 4 context-aware replies instantly for any message in Smart Reply mode (available in both extension and web).
- ✍️ Four AI Text Enhancements – Improve your own text with 4 variations focusing on grammar, clarity, conciseness, structure, and effectiveness in Smart Enhance mode (like Grammarly; available in both extension and web).
- 🌐 Four AI Text Translations – Translate text to multiple languages (e.g., English, Spanish, French, German, Chinese, Arabic, Bengali) with 4 variations in customizable styles in Smart Translate mode (available in both extension and web).
- 🎨 Customizable Style – Choose from Professional, Friendly, Humorous, or Concise styles with tooltips for descriptions (applies to Reply, Enhance, and Translate modes).
- 🔄 Mode Switching – Easily toggle between Smart Reply, Smart Enhance, and Smart Translate in the extension popup or web interface.
- ⚙️ LLM Agnostic – Works with any OpenRouter-supported model (free or paid).
- 🔐 Custom API Keys – Bring your own API key for privacy & flexibility.
- 🐳 Docker Support – Run the backend instantly using Docker.
- Extension-Specific: Insert suggestions/translations directly into text fields (e.g., emails, chats); auto-detect selected text; keyboard shortcut (Ctrl+Shift+T) and context menu for quick in-page translation using default languages; cross-browser support for Chrome and Firefox.
- Web-Specific: Auto-resizing textarea, animated UI with Framer Motion, developer info panel, keyboard shortcuts (Ctrl/Cmd + Enter), responsive design, and accessibility features.
- Frontend (Extension): Browser Manifest V3, JavaScript, HTML, CSS
- Frontend (Web): React, Zustand for state management, Framer Motion for animations, Lucide React for icons, Tailwind CSS for styling
- Backend: Node.js + Express
- AI Integration: OpenRouter API
git clone https://github.com/mahmud-r-farhan/smart-reply.git
cd smart-reply-
Create a
.envfile in the/backenddirectory:OPENROUTER_API_KEY=your_openrouter_api_key PORT=5006
-
Install dependencies and start the server:
cd backend npm install npm start -
The backend runs at:
http://localhost:5006
-
Build and run the Docker container:
docker build -t smart-reply-backend ./backend docker run -d -p 5006:5006 --env OPENROUTER_API_KEY=your_openrouter_api_key smart-reply-backend
-
Verify the backend:
http://localhost:5006
-
Open Chrome and go to:
chrome://extensions -
Enable Developer Mode (top-right corner).
-
Click Load unpacked and select:
smart-reply/extension -
The extension will appear in your toolbar.
-
Open Firefox and go to:
about:debugging#/runtime/this-firefox -
Click Load Temporary Add-on... and select the
manifest.jsonfile in:smart-reply/extension -
The extension will be loaded temporarily (reload on browser restart).
-
Install dependencies:
cd frontend npm install -
Set up environment: Add
VITE_API_ENDPOINTin.envfor the backend API base URL (e.g.,VITE_API_ENDPOINT=http://localhost:5006/api). -
Run locally:
npm run dev
- For Extension: Click on the extension icon → Settings. Paste your backend base URL (e.g.,
http://localhost:5006/api). Set default source/target languages for quick translations. Save. - For Web: The
.envhandles the connection automatically.
Note: The tools automatically append
/suggest-reply,/enhance-text, or/translate-textbased on the selected mode.
-
POST /api/suggest-reply – Generate multiple reply suggestions (Smart Reply mode)
{ "message": "Can we reschedule the meeting?", "style": "professional" }Response:
{ "suggestions": [ "Absolutely, let’s find a new time that works for both of us.", "Sure, please let me know your availability.", "No problem, I can adjust my schedule accordingly.", "Of course, happy to reschedule. When would you like to meet?" ] } -
POST /api/enhance-text – Generate multiple enhanced versions of text (Smart Enhance mode)
{ "text": "We need to reschedul the meeting because of conflict.", "style": "professional" }Response:
{ "enhancements": [ "We need to reschedule the meeting due to a scheduling conflict.", "Due to a conflict, let's reschedule the meeting at your earliest convenience.", "I apologize, but a conflict has arisen—could we reschedule the meeting?", "There's a scheduling conflict; please suggest alternative times for the meeting." ] } -
POST /api/translate-text – Generate multiple translated versions of text (Smart Translate mode)
{ "text": "Hello, how are you?", "style": "friendly", "language": "bengali" }Response:
{ "translations": [ "হ্যালো, আপনি কেমন আছেন?", "হাই, তুমি কেমন আছো?", "হেলো, তোমার খবর কী?", "হ্যালো, আপনার অবস্থা কেমন?" ] } -
GET /health – Health check endpoint returning
{ "status": "ok" }.
You can deploy using Render, VPS, Fly.io, or Railway.app.
Set OPENROUTER_API_KEY in environment variables, then share the endpoint with your browser extension or web app.
Contributions are welcome!
- Fork the repo
- Create a feature branch
- Submit a pull request
Keep PRs clean with descriptive commits and tested changes.
Built by Mahmud Rahman Powered by OpenRouter
“Automate your responses. Amplify your productivity.”