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-plugin-finance-data

v0.3.2

Published

Finance data toolkit for DeepSeek Harness agents: number/currency formatting (incl. Chinese wan/yi units), return & CAGR math, valuation and profitability ratios, PV/FV, DCA/compound projections, portfolio rebalancing, metric trend analysis, peer percenti

Readme

dsh-plugin-finance-data

面向 DeepSeek Harness agent 的金融数据工具包:数字格式化、收益计算、估值与盈利比率、时间价值、风险指标,全部确定性计算。模型负责解读,插件负责算术。

安装

dsh plugin --profile <profile> add dsh-plugin-finance-data

重启 DSH 后,finance_data 工具全局注册。

工具

| 动作 | 用途 | | --- | --- | | format | 数字/货币/百分比格式化,千分位,中文万/亿单位 | | return | 简单/对数/年化收益(CAGR 风格) | | ratio | PE、PB、ROE、ROA、毛利率、净利率、产权比率 | | value | 现值、终值、隐含收益率 | | risk | 收益率序列的均值、波动率、最大回撤、历史 VaR(95)、夏普比率 | | checklist | 数据质量检查清单(来源、时点、单位、口径) | | plan | 定投/复利模拟(终值时间表、通胀调整实际价值) | | portfolio | 组合权重、漂移与再平衡指令(买/卖金额)

配置

均为可选项,写在组合行的 config 里:

| 键 | 默认值 | 含义 | | --- | --- | --- | | personaSection | true | 是否注册金融提示词段 | | sectionOrder | 6 | 提示词段顺序(persona 为 0,升序) |

设计

纯逻辑(lib/finance.js)零 DSH/Cordis 依赖、可独立单测;lib/index.js 是薄 Cordis 壳。无文件系统访问,全部确定性、无副作用。

License

MIT