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-live-data

v0.1.1

Published

实时数据聚合:10 个工具,从 8 个免密钥公开接口拉取模型自身没有的实时数据——汇率(open.er-api.com)、天气(Open-Meteo)、npm 包版本、GitHub 仓库信息、PyPI 包版本(清华镜像)、B站视频信息、A股行情/大盘指数(新浪财经)、金价(上金所元/克 + 国际美元/盎司)、公网 IP 归属地。输出按中文习惯:中文货币名、「100 外币 = X 人民币」报价、风力「级」、涨跌额+涨跌幅、金额「万/亿」单位。设置面板可配置各工具默认参数。All-in-one live-da

Readme

实时数据 dsh-live-data

npm version license

一个插件,10 个工具,8 个免密钥公开接口——把模型自身拿不到的实时数据接进 DeepSeek Harness。装一次,汇率、天气、包版本、仓库信息、视频数据、A股行情、金价、IP 归属地全部可用。

为什么需要它

大模型的训练数据有截止时间,也没有联网能力。凡是「此刻的真实数值」——今天汇率多少、现在几点几度、这个包最新版是几、这只股票现价多少——模型只能靠猜。这个插件把这些数据变成可以直接调用的工具,返回值都是当场从公开接口取回的真实数据。

输出按中文用户习惯呈现:中文货币名、「100 外币 = X 人民币」报价、风力按「级」、涨跌额+涨跌幅、金额用「万/亿」、时间用「X 天前」、金价直接给「元/克」。

工具一览

| 工具 | 作用 | 数据源 | |------|------|--------| | fx_live | 实时汇率查询与换算 | open.er-api.com | | weather_live | 按城市查实时天气 | Open-Meteo | | npm_live | npm 包最新版本 | registry.npmjs.org | | github_live | GitHub 仓库信息(star/fork/issue) | api.github.com | | pypi_live | PyPI 包最新版本 | 清华 PyPI 镜像 | | bilibili_live | B站视频信息(播放/点赞/投币) | api.bilibili.com | | stock_live | A股实时行情 | 新浪财经 | | index_live | 大盘指数行情 | 新浪财经 | | gold_live | 金价(国内元/克 + 国际美元/盎司) | 新浪财经 | | ip_live | IP 归属地查询 | api.ip.sb |

安装

# npm(推荐)
npm install dsh-live-data

# 或从 GitHub 直装
dsh plugin add github:uckkk/dsh-live-data

装完重启 DSH 页面,之后在会话里直接让模型调用这些工具即可。

设置面板

设置 → 实时数据 里可配置各工具的默认参数,改完立即生效(不传参数时自动使用):

| 配置项 | 作用 | |--------|------| | 默认城市 | weather_live 不传城市时使用 | | 默认股票代码 | stock_live 不传代码时使用 | | 默认货币对(基准 → 目标) | fx_live 不传币种时使用 | | 汇率默认换算金额 | fx_live 不传金额时使用 | | 默认指数 | index_live 不传指数时使用(上证/深证/创业板/沪深300/科创50) | | 金价重点单位 | gold_live 突出显示「元/克」或「美元/盎司」 | | 默认查询 IP | ip_live 不传 IP 时使用 | | 默认 GitHub 仓库 | github_live 不传仓库时使用 |

面板底部有「恢复默认」一键还原。配置持久化在 ~/.dsh/storages/live-data/config.json。

用法示例

查一下今天美元兑人民币的汇率
上海现在天气怎么样
vue 最新版本是多少
看看 deepseek-ai/deepseek-harness 有多少 star
贵州茅台现在多少钱
今天上证指数多少点
金价现在多少
8.8.8.8 这个 IP 是哪里的

配好默认值后,直接说「今天天气怎么样」「金价多少」「大盘怎么样」就能取到默认城市/股票/指数的数据。

返回示例

汇率(fx_live):

{
  "币种": "美元(USD) → 人民币(CNY)",
  "汇率": "1 USD = 6.728034 CNY",
  "换算": "100 USD = 672.8 CNY",
  "百元报价": "100 USD = 672.8 CNY",
  "反向汇率": "1 CNY = 0.1486 USD"
}

金价(gold_live)——国内原料价与国际价对照:

{
  "重点单位": "元/克",
  "金价": {
    "上金所 Au99.99(国内原料金价)": {
      "最新价": "947.60 元/克",
      "涨跌": "+8.06 元/克(+0.86%)"
    },
    "国际伦敦金(现货黄金)": {
      "最新价": "4362.63 美元/盎司",
      "按汇率折算": "943.69 元/克(1 美元 = 6.728034 元)",
      "与上金所价差": "+3.91 元/克(国内溢价)"
    }
  },
  "换算公式": "国内价(元/克)= 国际价(美元/盎司)× 美元兑人民币汇率 ÷ 31.1035"
}

A股行情(stock_live):

{
  "股票": "贵州茅台(sh600519)",
  "现价": "1275.16 元",
  "涨跌": "-9.97 元(-0.78%)",
  "成交额": "44.31亿元"
}

说明

  • 全部接口免密钥,不需要任何 API key,装上即用。
  • 每个工具有独立的参数与返回结构,失败时返回可读的错误信息(网络不可达 / 代码不存在等),不会抛异常中断会话。
  • 行情、汇率类数据仅供个人参考,不构成投资建议;实际成交以官方牌价为准。金店零售价含加工费与品牌溢价,会高于上金所原料价。
  • 所有请求都带 8–12 秒超时,不会长时间挂起。

License

MIT