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

dsh-wuxing-classify

v0.1.0

Published

干支五行完全分类(数据之镜):A股全市场个股→五行→天干→地支坐标映射库 + 月令旺相休囚死观测。依据《维度-天干地支分类》整合。

Readme

dsh-wuxing-classify(干支五行完全分类·数据之镜)

A 股全市场个股的干支五行坐标映射库与月令旺相休囚死观测插件(DSH cordis 插件骨架 v0.1.0)。

依据

  • 《维度-天干地支分类》《交易维度-二十四节气与地支藏干五行阴阳关系》(用户体系)
  • 《中国传统文化道基交易体系》法二 2E-2K(完全分类)、2I(旺相休囚死)、第七篇(三镜分立)

工具

| 工具 | 作用 | |---|---| | stock_wuxing_lookup(code/name) | 查个股干支五行坐标(先天命盘静态坐标:五行/天干/地支/申万行业) | | stock_wuxing_scan(wuxing/tiangan/dizhi) | 按坐标筛选股票列表 | | moon_order(date) | 月令旺相休囚死(当令者旺/我生者相/生我者休/克我者囚/我克者死) |

数据

  • lib/data/stock_wuxing_map.csv: 5210 只个股(申万 31 行业成分股,去重)→ 五行/天干/地支/行业
  • 五行分布: 木 14.0% / 火 21.1% / 土 13.8% / 金 37.2% / 水 13.9%
  • 由 回测\stock_classify.py + 回测\classify_engine.py 生成(可复现)

纪律(红线)

  • 本插件属数据之镜:只描述"是什么"(分类与观测),不做买卖判断;
  • 干支五行/月令经 2005-2026 回测确认为文化坐标(旺相休囚死无显著轮动关联,旺死差 -0.06%),不作轮动信号;
  • 决策须经观照之镜(dsh-mirror)复核 + 庙算四问 + 风控闸门(dsh-risk);
  • 个股映射为行业级近似;复合产业链个股(算力/医药/建筑)须按"物质流转五段"人工复核(体系 2H)。

安装(待构建/发布)

# 开发期本地测试
pnpm link --global   # 或发布到 registry 后:
dsh plugin --profile web add dsh-wuxing-classify
# 重启 profile 生效

验证状态(2026-08-30)

  • ✅ 独立测试 profile 安装成功(dsh plugin --profile test-wuxing add .,bundles 自动加入)
  • ✅ 补丁树组合成功(--dump-config EXIT=0, wuxing-classify 层加载)
  • ✅ 工具冒烟测试通过:lookup 贵州茅台→水/癸水/子;scan 水→722只;moon_order→金旺水相
  • ⚠️ 注意:pnpm 本地 link 安装含中文路径时 manifest 控制台显示乱码(实际字节正确);正式安装建议发布到 npm 后用包名安装

扩展待办

  • [ ] 精确节气月令(lunar-python 节气交节)
  • [ ] 个股级人工复核(复合链拆分)
  • [ ] 设置面板(数据路径/verbose)
  • [ ] 与 dsh-trad-calendar / dsh-emotion-cycle / dsh-policy-radar 联动(数据之镜四件套)