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

yifei-cli

v0.2.2

Published

易飞 ERP 只读数据分析 CLI (鼎捷 Digiwin) — read-only ERP data analysis for humans and AI agents

Readme

yifei-cli

易飞 ERP 只读数据分析 CLI(鼎捷 Digiwin)— 让人类与 AI Agent 在终端对易飞 ERP 数据库做只读查询、结构探索与字段翻译。

npm version

安装

npm install -g yifei-cli

安装时会自动从 GitHub Release 下载对应平台的预编译二进制(macOS / Windows / Linux × amd64 / arm64,纯 Go、零运行时依赖)。

也可直接到 Releases 下载单文件二进制。

快速开始

# 1. 配置数据库连接(写入 config.yaml,密码本地存储)
yifei config init --host localhost --port 1433 --user sa --password '***' --database YDSTEST

# 2. 探索表结构(离线,读内嵌 schema)
yifei schema search 客户
yifei schema table COPTC

# 3. 查字段含义(离线,读内嵌字典)
yifei dict table INVMB
yifei dict code 单别 COPTC

# 4. 执行只读查询(Agent 建议加 --format json)
yifei query "SELECT TOP 10 MB001, MB002 FROM INVMB" --format json
yifei query "SELECT * FROM COPTC WHERE TC003 BETWEEN '20220101' AND '20221231'" --translate

# 5. 预置业务分析
yifei analyze list
yifei analyze order-count-by-customer --year 2022

命令

| 命令 | 说明 | |------|------| | config init/show | 管理数据库连接配置 | | schema tables/search/table/modules | 离线探索表结构(内嵌 schema) | | dict table/field/code/relations | 离线字段含义翻译(内嵌字典) | | query | 执行只读 SQL(--format table\|json\|csv、--translate、--limit) | | analyze | 预置业务分析模板 | | version | 显示版本 |

只读安全

本工具仅允许单条 SELECT / WITH 查询,拦截一切 INSERT/UPDATE/DELETE/DROP/... 写操作与分号多语句;query 默认 --limit 1000 防止误拉大表。数据始终只读。

AI Agent

仓库内附带 skills/yifei 一套 Agent Skill(含易飞 + SQL Server 查询避坑指南),Claude / Codex 等 Agent 可据此直接驱动本 CLI 做数据分析。

License

MIT