Find your next open-source project

Search by name, purpose, or keyword, or paste a GitHub URL. Start with / to search agent skills (e.g. /pdf)

cdredfox/magpie-hy-translate

ProductivityTranslation tools

Magpie plugin that calls Tencent Hunyuan translation anonymously, adding Hy translation models to a chat-completions provider.

105
10
JavaScript
MIT
6 days old
+13 stars in 24h

What it does

Magpie Hy Translate is a Magpie plugin that registers a chat-completions provider backed by Tencent Hunyuan (Hy) translation. It calls the same web translation endpoint used by the official Hy Chrome extension, handling anonymous device login itself, so users need no Tencent account, Cookie, API key, Docker, or separate API server. It is aimed at people who use Magpie as their translation client and want Hy translation models there.

The plugin exposes several models for different scenes: txhy-translate/hy for page translation, hy:selection for selected text, hy:word for concise word definitions, and hy:sidebar. A style suffix such as @academic, @business, @novel, or @legal can be appended to pick a translation style. It converts incoming chat requests into plain translation requests, splits multi-paragraph text by blank lines, translates each segment, and reassembles the result in the original order.

Quick start

Install the plugin in Magpie in one of two ways: enter github:cdredfox/magpie-hy-translate in the install box under Plugins → Discover, or run the CLI on the machine hosting Magpie:

magpie plugin add github:cdredfox/magpie-hy-translate
magpie plugin login txhy-translate

When prompted to log in, just press Enter; the plugin generates a device ID and obtains anonymous credentials, then performs one real translation to check connectivity. Credentials are stored in plugin-auth.json in Magpie's config directory with permissions 600. After updating the plugin, run magpie plugin update or update it from Magpie.

To verify the provider, run:

magpie provider test txhy-translate hy

Then select one of the txhy-translate/* models in your translation client.

Usage constraints

The endpoint is the Hy extension's web interface, not an official open API. The README states that authorization for this calling method has not been verified and that automated or bulk access, resale, or commercial use needs independent assessment against Tencent's terms. Anonymous login does not imply permission for automated access. Submitted text is sent to Tencent's translation service, so privacy, confidentiality, and copyright checks are the user's responsibility.

Functionally, only the last user text is translated; there is no conversation memory, image, tool, reasoning, or structured-output support. Streaming responses are emitted as SSE after the full translation succeeds, not token by token. Token usage is reported as 0. The default target language is Simplified Chinese, though explicit instructions in the system prompt or text (for example, "translate to English") take precedence. The plugin is currently installed from a local folder or a GitHub repository; it is not published to npm or a plugin marketplace.

HotRepo's take

The repository was created in late November 2026 and appeared on HotRepo's new-project list for JavaScript on 2026-12-03, with 105 stars and 4 stars gained in a roughly 1.5-hour window. That snapshot is too short to describe a trend; what stands out is that the project's value is tied to a third-party web endpoint rather than a stable public API. The README is unusually candid about this dependency and the compliance questions around it, which matters more here than the star count.

License

MIT.

Project source and documentation

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

You might also like

  1. muran169633/contextflow-translateChrome/Edge extension that renders bilingual translations of webpages through free, paid, or user-supplied AI translation providers.JavaScript112
  2. tanakh/plamo-translate-desktopOffline desktop translation app running PLaMo 3 Translate locally, with 53-language support and Chrome/Edge page translation.Rust103
  3. ssut/py-googletransA Python library that wraps Google Translate's web API for free translation, language detection and batch translation.Python4,292
  4. httpdone/magpie-aws-quickA magpie plugin that lets your own AWS Quick account serve models to coding agents.JavaScript106
  5. FluentRead/FluentReadAn open-source browser extension that translates webpages bilingually and adds AI reading, image, document and subtitle tools.TypeScript9,733