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-label-workbench

v0.1.0

Published

Iterative annotation workflows for DSH: rule versions, stale worker isolation, human review and traceable exports

Readme

DSH 可迭代数据标注工作台

标注标准改变后,让已有工作可靠地继续。 首版 0.1.0 支持本地文本单标签分类:固定规则版本,隔离旧任务回调,保留人工审核,筛出待复核记录,检查后导出可追溯的数据集。

非官方社区项目,仍处于首版验证阶段。它不自动保证 AI 标签正确,也不完整替代 Label Studio/Argilla。安装与范围;社区广场投稿状态。

使用流程

  1. 导入 id/text 数据,创建明确的标签表和规则 v1。
  2. DSH 通过工具领取任务,用模型给出建议,或执行完整的 decision_list 规则;结果绑定规则和记录修订。
  3. 修改规则先预览影响,再以预期版本激活 v2;旧 job 被隔离。
  4. 新机器结果不能覆盖人工决定。审核者在本地页面或 Label Studio 中复核。
  5. 所有记录符合当前标准、后台任务已完成/取消后,导出带规则、历史、哈希和审计信息的 ZIP。

自然语言标准变化默认全量复核。精确减少复核只适用于完整可执行的顺序关键词规则;不把关键词筛选包装成语义理解。原始文本在项目内不可变。

安装

需要 Python 3.11+、Node 24.9+、DSH 0.2.2-alpha.3 系列。已在 Windows / Python 3.12 的本机 DSH 构建上验证。

普通用户可按发布包安装说明安装预构建 DSH 包和 Python wheel,无需编译。以下是源码开发安装方式:

git clone https://github.com/shinerain1/dsh-label-workbench.git
cd dsh-label-workbench
py -3.12 -m venv .venv
.\.venv\Scripts\python.exe -m pip install .
npm.cmd ci --ignore-scripts
npm.cmd run build

将插件插入 DSH 配置(绝对路径按本机调整),后端环境必须先安装:

- insert:
    - id: label-workbench
      name: E:/dsh插件/dsh-label-workbench/lib/index.js
      config:
        pythonExecutable: E:/dsh插件/dsh-label-workbench/.venv/Scripts/python.exe
        root: E:/dsh插件/dsh-label-workbench/.label-workbench
        requestTimeoutMs: 120000

通过 DSH 支持的 profile/插件安装入口加载这段配置;不要把它当成独立 Node 程序运行。cordis.patch.yml 是包安装后的入口,需配置实际 Python 路径。

本地样例与人工复核

.\.venv\Scripts\python.exe -m dsh_label_workbench --root .label-workbench import --name 客服标注 --data examples/support-records.json --rule examples/rules-v1.json --key demo-create

保留返回的 project_id,让 DSH 创建 job、执行规则、预览 examples/rules-v2.json 再激活。人工审核由用户启动:

.\.venv\Scripts\python.exe -m dsh_label_workbench --root .label-workbench serve-review --project <project_id>

打开终端返回的本机 URL,显示当前规则、历史标签和记录修订;确认时再检查版本。页面不是多人身份认证系统。Agent 不应代人填写审核结果。

也可用 label_review_bundle 生成 Label Studio JSON/XML;导出审核结果后,由审核者导入:

.\.venv\Scripts\python.exe -m dsh_label_workbench --root .label-workbench review-import --project <project_id> --input reviewed.json --reviewer 你的名字 --confirm-human-review
.\.venv\Scripts\python.exe -m dsh_label_workbench verify <export.zip>

证据与边界

有保护的脚本也能解决这些一致性问题。插件的贡献是把事务、版本、租约、人审保护和导出约束固化成 DSH 可复用工具,不是发明标注算法。已验证公开真实数据的分类迁移回放;未验证企业生产部署、语义影响筛选、多人权限和大规模长期运行。

复现实验

.\.venv\Scripts\python.exe -m unittest discover -s tests -v
npm.cmd run check
.\.venv\Scripts\python.exe scripts/benchmark.py
$env:DSH_CHECKOUT = 'E:/dsharness'
node scripts/dsh-check.mjs

真实模型实验需要本机 DSH 已登录;scripts/agent_pilot.py prepare 后依次运行两个 arm 的两轮,再 audit。原始会话日志、凭据、用户数据不提交 GitHub。CLI deterministic worker 仅执行明确关键词规则,claim/submit 可接其他标注后端。

MIT;Label Studio/Argilla 仅作设计参考/格式互通,不打包其服务或源码。