# afc163/fanyi

A 🇨🇳 and 🇺🇸 translator in your command line

Repository: https://github.com/afc163/fanyi
Canonical: https://ross.abutalabs.com/products/fanyi
Homepage: https://npmjs.com/fanyi
Language: JavaScript
License: MIT
License Family: permissive
Topics: translation, command-line, command-line-tools, nodejs, chinese, groq, llama3, translator
Last push: 2026-08-24T04:53:25+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 87, longevity 100
- inputs: {"age_days": 4640, "days_push": 9, "days_rel": 88, "gap_med": 1, "n_releases_24m": 10}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1553, forks 147 (observed 2026-08-28T04:05:02.839330+00:00)

## What it is
Fanyi is a command-line Chinese-English translation tool that aggregates results from iciba, youdao, and an LLM (with a free built-in proxy, no API key required). It supports streaming LLM output with semantic coloring and can be invoked by AI agents via an Agent Skill.

## Use cases
- translate a word from english to chinese in the terminal
- look up chinese word definitions from the command line
- get dictionary and LLM translations side by side
- quick CLI translator without configuring API keys
- let an AI agent translate text using fanyi
- connect a custom OpenAI-compatible model for translation

## When to choose
- you need fast Chinese↔English word translation in a terminal
- you want dictionary-style results (definitions, examples, phonetics) plus LLM output
- you prefer a zero-config tool with a free built-in LLM proxy

## When to avoid
- you need translation between language pairs other than Chinese and English
- you need a GUI or web-based translation interface
- you need document or batch file translation

## Facets
- artifact type: cli-tool
- maturity: active
- function: nlp, cli, llm-inference
- domain: developer-tools
- platform: cli, cross-platform
- tags: translation, chinese-english, translator, youdao, iciba, llm-powered, agent-skill, natural-language-processing, command-line, nodejs

## Member repositories
- afc163/fanyi (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:02.839330+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:30:08.479757+00:00, confidence not recorded.
  - readme: https://github.com/afc163/fanyi (fetched 2026-08-28T04:05:02.839330+00:00, sha 4ec7cf531080)
  - registry_npm: https://registry.npmjs.org/fanyi (fetched 2026-08-29T11:30:48.229776+00:00, sha f24664498454)
- Data as of 2026-08-30T08:39:29.467469+00:00.
