Skip to content
hijoebonPublic

About

Open-source macOS & iOS translation, OCR, and multi-engine aggregator with plugin support

Topics

Resources

Contributing

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Repository files navigation

Parrot

English · 简体中文 · 日本語 · Deutsch · Français

Open-source translation and OCR for macOS and iOS: translate selected text, capture text from screenshots, look up words, compare translation engines, and connect LLMs through plugins.

Translate with one preferred engine and an automatic backup by default. Captured and typed source text stays editable in the same workspace; compare more engines when you need another wording.

Download the latest release

Parrot Parrot

Editable Parrot translation workspace

Platforms

  • macOS 13+: menu bar app with global shortcuts and a floating translation panel. Download the Apple silicon DMG or ZIP from Releases, or build build/Parrot.app locally.
  • iOS 17+: social reading and writing assistant with Quick Lens OCR. Generate the Xcode project and run the ParrotiOS scheme. See the interactive prototype.

Features

Feature How to use it
Translate selected text ⌥D, menu, or PopClip
Dictionary lookup ⌥E, menu, or PopClip
Screenshot OCR and translation ⌥S or menu
Translate typed text ⌥A or menu; edit and retranslate in place
Compare multiple engines Result → More, or Settings → Translate
Terminology glossary Advanced features → Settings → Terminology; guide
History and favorites Menu → History; reopen, edit, and retranslate
Text-to-speech Result → More → Read aloud
JavaScript plugins Extend LLM and dictionary support; development guide
PopClip integration Install examples/Parrot.popclipext
URL integration parrot://translate?text= or parrot://lookup?text=

Choose the preferred engine and backup order in Settings → Translate. Enable advanced features in Settings → General for context, polishing, learning, and additional settings. Existing history and configuration are retained.

Menu rows and disclosure headings are clickable across their full width, and common icon controls have larger hit targets. The app icon uses a white tile and restrained blue parrot.

Engines and credentials

Built-in providers include Google Translation LLM, DeepL, OpenAI, OpenCode Go, Microsoft, Tencent, Baidu, Youdao, Caiyun, DeepSeek, Gemini, Groq, Ollama, Qwen, Doubao, Kimi, GLM, and SiliconFlow. See the engine and API key guide for the full list and credential formats.

Enter API keys in Settings → Keys. Local credentials are stored in ~/Library/Application Support/Parrot/secrets.json with file permissions 0600. Environment variables such as OPENAI_API_KEY and DEEPSEEK_API_KEY take precedence over local configuration.

Google Translation LLM uses the official Cloud Translation API and the general/translation-llm model; configure Project ID:API Key. Cloud services require your own credentials and bill according to the provider’s terms. Parrot connects directly to providers and supplies no translation proxy or free cloud quota. Plugin network access is restricted by the manifest host allowlist.

Build and test

Install full Xcode for the macOS GUI build and XcodeGen for iOS project generation. The macOS app uses Swift, SwiftUI, and AppKit; the iOS app uses SwiftUI.

export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
swift build
swift test
bash scripts/build-app.sh

# iOS
xcodegen generate
open Parrot.xcodeproj

The build script produces build/Parrot.app. Run swift build and swift test before submitting changes.

For local development, use PARROT_LOCAL_DEV_SIGN=1 bash scripts/build-app.sh and install subsequent builds at the same location. This keeps the signing identity and bundle ID stable after your initial macOS privacy grant. If your keychain has multiple signing identities, select one with PARROT_SIGN_IDENTITY using its name or fingerprint.

Architecture

Interaction (shortcuts, menus, PopClip, URLs) → application orchestration (AppState, TranslationCoordinator) → provider abstraction (TranslationProvider, registry) → platform services (Vision OCR, accessibility, credentials, speech).

  • ParrotCore: provider protocols, concurrent aggregation, language detection, history, and local credentials.
  • ParrotEngines: built-in translation providers and Vision OCR.
  • ParrotPlugins: JavaScriptCore plugin runtime with host allowlists and $http, $option, and $log APIs. Plugins live in ~/Library/Application Support/Parrot/Plugins.
  • ParrotApp: macOS menu bar app, shortcuts, floating panel, settings, and speech.
  • ParrotSocial / ParrotPlatformiOS: social assistant logic and iOS adapters.

See the design document. Example plugins: examples/echo.parrotplugin and examples/openai.parrotplugin.

Contributing and security

See CONTRIBUTING.md and SECURITY.md. Supporting documentation may be in Chinese.

License

AGPL-3.0

About

Open-source macOS & iOS translation, OCR, and multi-engine aggregator with plugin support

Topics

Resources

Contributing

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages