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

@fuxi-ailabs/dsh-score

v1.2.0

Published

DSH scoring host: export/import the current Session into Insight, then read, recompute or semantically review its scorecard

Readme

@fuxi-ailabs/dsh-score

DSH 打分 Host 插件,负责「导入 + 打分」。

  • /score:默认先刷新导出并导入当前会话,再读取、重算或语义评审评分卡。
  • /score --no-import:只读取 Insight 中已有评分卡,跳过导入。
  • 状态接口:GET /api/dsh-score/status?sessionId=<sid>。
  • 运行时接口:GET /api/dsh-score/runtime-status。
  • 导入并打分接口:POST /api/dsh-score/session。
  • 评分卡只读数据口:GET /api/dsh-score/scorecard?taskId=<sid>。

浏览器 UI 在独立的 @fuxi-ailabs/dsh-score-ux 中;本包不包含客户端资源,也不注册 观测命令。

安装

pnpm --filter @fuxi-ailabs/dsh-score pack
pnpm --filter @fuxi-ailabs/dsh-score-ux pack

/score

/score                                     刷新导入后读卡
/score --sid <sid>                         指定会话
/score --no-import                         跳过导入,只读已有卡
/score --recalc                            强制重算确定性层
/score --semantic                          语义评审(唯一 LLM 入口)
/score --probe-provider                    探测语义评审 provider
/score --confirm D2.destructive=fine       人工确认疑似项
/score --bench <0-100>                     填 CANN-Bench 总分
/score --open                              打开 Insight 评分页
/score --json                              保存整卡 JSON
/score --no-cover                          跳过覆盖度对账
/score --base <url>                        指定 Insight 基址
/score --status                            只探活

确定性读卡与重算不调用 LLM;只有显式使用 --semantic 才会请求 Insight 的语义评审接口。

配置

- id: dsh-score
  name: '@fuxi-ailabs/dsh-score'
  config:
    insightBase: "http://127.0.0.1:21025"
    portFile: null
    framework: dsh
    includeDescendants: true
    coverToleranceMs: 2000
    probeTimeoutMs: 1500
    requestTimeoutMs: 60000
    semanticTimeoutMs: 300000

    # 评分卡 JSON 落点(--json)
    outputRoot: "~/.dsh-insight/dsh-score"
    openBrowser: false
    openTarget: scoring

    provider: null
    borrowDshProvider: true
    dshProvider:
      apiKeyRef: DEEPSEEK_API_KEY
      baseUrl: "https://api.deepseek.com"
      model: "deepseek-flash"

    # 导入当前会话(与评分输出目录分开)
    sessionImport:
      outputRoot: "~/.dsh-insight/dsh-export"
      insightBin: context-insight
      autoInstall: true
      autoStart: true
      runtime:
        packageName: context-insight
        version: 0.2.41
        installRoot: "~/.dsh-insight/runtime"
        npmBin: npm
        registry: "https://registry.npmjs.org/"
        installTimeoutMs: 1200000
        startTimeoutMs: 180000
      includeDescendants: true
      source: dsh-native
      importTimeoutMs: 120000

Web 接口

GET  /api/dsh-score/status?sessionId=<sid>
GET  /api/dsh-score/runtime-status
POST /api/dsh-score/session   {"sessionId":"<sid>","semantic":false}
GET  /api/dsh-score/scorecard?taskId=<sid>&cover=1

POST /api/dsh-score/session 会先导入当前会话,再返回紧凑评分卡和评分页 URL; semantic: true 时在同一链路中执行语义评审。