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-ft/dsh-fft-gallery

v0.1.5

Published

FT gallery: the right-sidebar 金融组件画廊 shelf for third-party web apps and plugin components registered through a repository manifest.

Readme

@dsh-ft/dsh-fft-gallery

右侧栏的「金融组件画廊」:以瀑布流浏览第三方为金融工作台做的网页应用与插件组件,收藏进「收藏」; 网页一键在侧栏打开;插件条目只给出安装命令,画廊本身不安装、也不审核任何代码。

界面

右侧栏 tab 标题为「画廊」,引导页入口为「金融组件画廊」。收藏页分两段:组件收藏用卡片,个人收藏合并网址与本机 HTML 页面。

收藏页:组件收藏卡片与个人收藏列表

组件详情:封面、截图与打开入口

安装

dsh plugin --profile desktop add @dsh-ft/dsh-fft-gallery

装完重启 DSH。右侧栏引导页会出现「金融组件画廊」入口(tab 标题显示为「画廊」),发现 是目录,收藏 分两段:组件收藏(卡片)与个人收藏(自行添加的网址与本机 HTML 页面,只存在本机,不经过目录)。

作者接入(两个东西,零 PR)

  1. 在仓库根放 dsh-ft-gallery.json:
{
  "entries": [
    {
      "id": "example.panel",
      "kind": "web",
      "title": { "zh": "示例面板", "en": "Example panel" },
      "summary": { "zh": "一句话说明", "en": "One line" },
      "cover": "./assets/cover.png",
      "screenshots": [{ "src": "./assets/shot.png", "alt": { "zh": "截图", "en": "Screenshot" } }],
      "url": "https://example.com/",
      "author": "example"
    }
  ]
}
  1. 给仓库打 topic dsh-ft-gallery。

字段:id / kind(web 或 plugin)/ title / summary 必填;details、cover、screenshots (≤4 张,png/jpeg/webp)、url(web 必填)、spec(plugin 必填,npm 或 git)、open (plugin 可选:{ "kind": "侧栏 tab kind" } 或 { "panel": "主栏面板 id" })、category (可选:market / research / chart / tool / panel)、homepage、author、engines.dsh 可选。

作者缺省取仓库 owner;截图只用作者自己的 HTTPS 地址,画廊不托管图片。

目录如何更新

  • 随包内建的 gallery/catalog.json 是离线基线;
  • .github/workflows/gallery-sync.yml 每三天扫一次 topic,把合并后的 catalog.json 推到 catalog 分支;
  • 客户端先读 jsDelivr 的 GitHub 端点,再回退 raw.githubusercontent.com,不需要等发版。

开发

pnpm --filter @dsh-ft/dsh-fft-gallery run build
pnpm --filter @dsh-ft/dsh-fft-gallery test
GITHUB_TOKEN=... node packages/dsh-fft-gallery/scripts/gallery-sync.mjs   # 扫 topic 并写 entries
node packages/dsh-fft-gallery/scripts/gallery-sync.mjs --check            # 只校验现有 entries

边界

  • 不安装、不升级、不卸载插件:只展示、给可复制的安装命令;
  • 不审核代码、不代理图片;条目内容是作者自声明,界面按纯文本渲染、图片只接受 png/jpeg/webp;
  • 收藏存在宿主侧 ~/.dsh/.dsh-fft-gallery/state.json。