Ultra-lightweight (~300KB) AI Gateway — Vanilla JS for immersive reading, YouTube bilingual subs. Zero bloat, privacy-first.
If you are simply looking for a completely free, zero-setup AI translation tool, your current browser likely already provides excellent built-in options:
- Chrome Users: The Gemini side panel offers powerful, out-of-the-box webpage reading and content analysis capabilities.
- Edge Users: The built-in Copilot can easily analyze webpage content and generate video subtitle summaries.
So why develop Mira?
I couldn't find an open-source translation tool that was truly handy, respected my privacy, and didn't leave me wondering whether my browsing data was being collected in the background. So I decided to build one myself in my spare time.
Mira is designed around my own needs and preferences. It's not a commercial product, and I maintain it at my own pace. If this little tool happens to meet your needs too, you're welcome to use it! But please understand that due to limited time, I can't guarantee compatibility with every website or provide immediate bug fixes.
Mira Translate is a browser extension designed for translation tasks using user-provided API keys. It functions as an interface between the browser and translation services, allowing users to manage their own API configurations seamlessly.
This tool was created to fill the need for a functional, open-source bilingual translation utility that prioritizes simplicity and efficiency. It features a streamlined interface designed around specific workflows without the bloat of corporate software.
- Performance: The extension is built using native JavaScript with a core size of approximately 300KB, aimed at minimizing browser resource usage.
- Visual Configuration: A panel is provided to adjust translation styles, colors, and layout, which are applied to the webpage.
- YouTube Integration: Includes dual-language subtitle rendering, player adjustments, and a feature to download subtitles.
- Privacy: API keys are stored locally in the browser. The extension does not use intermediary servers for translation processing.
- Multi-Engine Support: Compatible with ChatGPT/OpenAI (and any OpenAI-compatible APIs), Claude, Gemini, DeepL, SiliconFlow, local models (like Ollama), and more. Users can also configure custom API endpoints.
- AI Context-Aware Translation: Uses surrounding context to produce more accurate and natural translations, rather than translating isolated words or sentences.
- Element Selection: Rather than translating the entire page by default, Mira focuses on main content areas out of the box — menus and other UI chrome are skipped to avoid layout breakage and visual clutter. Users can select additional areas to translate, or exclude specific ones, as needed.
- Data Synchronization: Supports syncing configurations and saved vocabulary via Google Drive or WebDAV.
- Vocabulary Learning: Enables users to save words or phrases directly from translated text into a local list, allowing for future review, editing, and cross-device synchronization.
- Mobile Support: Compatible with mobile browsers (such as Microsoft Edge and Firefox on Android), allowing for seamless translation on the go.
Mira aims to provide the essential features needed for a practical translation workflow without overwhelming users with configuration options. Most of the functionality is already built in, while many technical details are handled automatically in the background to keep things simple.
You're still in control of the essentials: AI tones/personas, global or site-specific default toggles, translation scopes, styling, and hotkeys.
For AI translation, Mira batches multiple pieces of text into a single request whenever possible, helping reduce unnecessary API calls and improve translation efficiency.
Ensure you have Node.js and pnpm installed.
API keys are kept in a private file. Create your local config from the template:
cp private_config.example.js private_config.jsEdit private_config.js and fill in your CLIENT_ID, MANIFEST_KEY.
| Command | Target Browser |
|---|---|
pnpm dev |
Chrome |
pnpm dev:edge |
Edge |
pnpm dev:firefox |
Firefox |
© 2026 David Bai. Licensed under the AGPL-3.0 License.






