macOS
brew install fanyilocal Homebrew formula metadata
brew
Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de fanyi pour les workflows d'agents IA.
installation
brew install fanyilocal Homebrew formula metadata
aperçu
Chinese and English translate tool in your command-line
historique
Fanyi is a Chinese-English command-line translation tool. The README describes it as powered by iciba, Youdao, and LLM translation, with the `fanyi` command and shorter `fy` alias.
The repository was created in December 2013, making Fanyi one of the longer-running small CLI tools in this batch. Its core workflow remains intentionally simple: install globally with npm or bun, then run `fanyi word` or `fy word` for dictionary and translation output.
In 2026, the v11.0.0 release announcement in the README highlighted a shift toward out-of-the-box LLM translation through a built-in free proxy, restored Youdao support, streaming semantic coloring, custom OpenAI-compatible LLM configuration, and an agent skill.
Official project surfaces include npm distribution, Homebrew packaging in the input facts, GitHub releases, and README badges for npm version and monthly downloads. The repository metadata also shows substantial GitHub interest for a small translation CLI.
The normal user flow is `fanyi <word-or-sentence>` or `fy <word-or-sentence>`, with support for Chinese and English words, phrases, and sentences. `fanyi list` shows lookup history.
Configuration lives at `~/.config/fanyi/.fanyirc` and can be managed with `fanyi config set`. Users can disable individual sources, turn color off, or set `LLM_API_KEY`, `LLM_API_BASE_URL`, and `LLM_MODEL_ID` for custom OpenAI-compatible models.
Fanyi is package-manager-friendly because it turns a web dictionary and translation workflow into a tiny global CLI. Its 2026 LLM and agent-skill additions also show how older Node command-line packages are being refreshed for AI-agent and model-backed workflows.
posture de sécurité
narrow executable package without higher-risk signals.
risque vert · confiance faible · appliance
Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
~/.config/fanyi/.fanyircCredential-bearing paths to review before unattended agent runs.
~/.config/fanyi/.fanyircexécutables
| Commande | Type | Exposition | Note |
|---|---|---|---|
fanyi | cli | exécutable global | |
fy | cli | exécutable global |
fraîcheur
Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.
https://github.com/afc163/fanyi
métadonnées d'installation
| Clé du paquet | brew:fanyi |
|---|---|
| Version | 11.0.0 |
| Gestionnaire de paquets | Homebrew |
| Page du gestionnaire de paquets | https://formulae.brew.sh/formula/fanyi |
| Page d'accueil | https://github.com/afc163/fanyi |
| Dépôt | https://github.com/afc163/fanyi |
| Docs amont | https://github.com/afc163/fanyi#readme |
| Licence | MIT |
| Archive source | https://registry.npmjs.org/fanyi/-/fanyi-11.0.0.tgz |
| Dernière mise à jour | 2026-06-08T21:46:19+02:00 |
| Pulse | updated |
| Dépendances | node |
| Bouteille | disponible (sur all) |
| post-install Homebrew | non défini |
| Service | aucun déclaré |
faits du registre
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | fanyi |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
piste source
Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.