npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

fanyi-yuyin

v1.0.1

Published

A translator in your command line

Downloads

22

Readme

Fānyì Yǔyīn (翻译-语音版) 🚀

DeepSeek 强力驱动的命令行翻译与发音训练工具

NPM version npm download License

English | 简体中文


fanyi-yuyin 是一个基于原有 fanyi 工具深度定制的增强版本。它不仅保留了极速查词的特性,还引入了现代 AI 的翻译能力和强大的语音发音功能,旨在成为你终端里最顺手的语言学习助手。

✨ 特性

  • 🤖 DeepSeek AI 驱动:集成 DeepSeek-V3/R1 大模型,提供地道的句子翻译、短语解析和语法提示。
  • 🔊 内置语音朗读:支持中英文自动识别并朗读,按下数字键即可重听特定句子,变身发音教练。
  • 🌈 炫彩输出:采用渐变色彩设计,让原本枯燥的命令行输出变得生动灵快。
  • 📚 查词结合:完美融合传统的 iciba 词库,确保单词解释的权威性。
  • 🕒 历史追踪:自动记录搜索历史,方便随时回顾复习。
  • 🚀 极速响应:代码重构优化,秒级返回翻译结果。

📦 安装

确保你的系统已安装 Node.js (>= 16.0.0)。

npm install fanyi-yuyin -g

🚀 快速上手

1. 基础查询

直接输入单词或句子:

fy hello
# 或者
fy "人工智能改变世界"

2. 语音模式 (发音教练)

翻译完成后,程序会进入交互模式

  • [Enter]:重新朗读主查询词/句。
  • [1-9] 数字键:直接朗读 DeepSeek 提供的示例句子。
  • [q]:退出交互。

3. 查看历史

fy list

⚙️ 配置

第一次使用 DeepSeek 翻译前,请先设置你的 API Key:

fy config set LLM_API_KEY your_deepseek_api_key

其他常用配置:

fy config set iciba true     # 开启/关闭 iciba
fy config set color true     # 开启/关闭彩色输出
fy config list               # 查看当前所有配置

🛠️ 关于魔改版

本版本在前作基础上进行了以下改进:

  • 移除了已失效或响应缓慢的翻译源。
  • 解决了 Linux/Windows 下的发音兼容性问题。
  • 新增了对大语言模型流式输出的支持。
  • 精简了代码逻辑,提升了运行效率。

License

MIT © afc163 & suyao1992