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

@jojonadam/dsh-api-contract

v0.1.0

Published

API contract studio for DeepSeek Harness: contract-first authoring, breaking-change review, error contracts, versioning and docs. 接口契约 · 变更评审 · 六本手册。

Readme

dsh-api-contract · JOJO&Adam

装完之后,你和 agent 讨论接口时会先拿到一份能落地的契约;要改接口时,它会先告诉你这次会不会伤到现有客户端。

不是"让 AI 写个接口文档",是把接口这一层的判断变成可复核的流程:契约先行 → 可被机器校验 → 变更用同一把尺子评审。

安装

# Web 版
dsh plugin --profile web add @jojonadam/dsh-api-contract
# 桌面版
dsh plugin --profile desktop add @jojonadam/dsh-api-contract

装完能做什么

  • 开新接口:把必须早定的七件事(资源边界、命名、分页、错误、鉴权、幂等、版本)一次问清楚,而不是写到一半才发现分歧
  • 写/审 OpenAPI:资源导向的路径设计、components 复用、请求响应约定,以及那些会悄悄变成破坏性变更的反模式
  • 判破坏性变更:按变更类型给出客户端具体坏在哪,含"未知字段"这种常被忽略的兼容例外
  • 定错误契约:HTTP 状态码与业务错误码的分工,业务失败返 200 的反模式
  • 版本与弃用:什么时候才真需要新版本、版本放哪、四步弃用流程
  • 文档与示例:文档从契约生成,示例质量的四个层次

怎么触发

直接用自然语言,例如「帮我设计一个订单接口的契约」「这次把 status 改成枚举算不算破坏性变更」「错误码怎么设计」;也可以显式点名技能。

边界

  • 只管接口这一层(契约、演进、文档);不替代你们的框架选型与代码规范
  • 变更检测以你提供的契约文件为准;没有契约文件时,第一件事是补契约
  • 不生成可直接上线的服务端实现

许可

MIT