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

dzz-openspec-shared-standards

v2.2.2

Published

满帮 OpenSpec 公共约束库,为 AI 编码助手提供统一的规范和约束

Readme

dzz-openspec-shared-standards

满帮 OpenSpec 公共约束库,为 AI 编码助手提供公司统一的编码规范。


设计理念

规范内容只维护一份(rules/),安装时根据选择的 AI 工具分发到对应的原生规则目录:

| 工具 | 规则目录 | |------|---------| | Claude Code | .claude/rules/ | | Trae | .trae/rules/ |


文档导航

| 文档 | 说明 | |------|------| | 快速开始 | 安装与初始化指南 | | NPM 发布指南 | 版本发布流程(维护者) |


快速开始

cd your-project
npx dzz-openspec-shared-standards@latest init

前置条件:Node.js 12.0.0+

详细说明请参考 快速开始


安装后的项目结构

以选择 Claude Code 为例:

your-project/
├── .claude/rules/              # 编码规范(由本包管理)
│   ├── architecture.md
│   ├── api.md
│   ├── code-style.md
│   ├── database.md
│   └── ...
└── openspec/                   # 工作流定义
    ├── config.yaml
    └── schemas/java-backend/

本项目源码结构

dzz-openspec-shared-standards/
├── package.json
├── rules/                          # 编码规范(单一数据源)
│   ├── architecture.md
│   ├── api.md
│   ├── code-style.md
│   └── ...
├── openspec/                       # OpenSpec 工作流
│   ├── config.yaml
│   └── schemas/java-backend/
│       ├── schema.yaml
│       └── templates/
├── lib/                           # CLI 和安装脚本
│   ├── cli.js                     # CLI 入口
│   ├── init.js                    # 安装主流程
│   ├── claude-code.js             # Claude Code 适配器
│   └── trae.js                    # Trae 适配器
└── docs/
    ├── getting-started.md
    └── npm-publish-guide.md

包含的规范

| 规范 | 说明 | |------|------| | _priority | 规范优先级原则(最高优先级) | | architecture | 分层架构、模块组织、工程拆分 | | api | REST/RPC 接口设计 | | code-style | 代码风格、命名、注释 | | database | 数据库设计、SQL 编写 | | error-handling | 异常处理 | | java-fundamentals | Java 基础编码规范 | | security | 安全规范 | | performance | 性能优化 | | concurrency | 并发与线程安全 | | distributed | 分布式与幂等 | | middleware | 中间件选型 | | model | 领域模型 | | logging | 日志规范 | | testing | 测试规范 | | lion | 配置中心 | | elasticsearch | ES 使用规范 | | git | 版本控制 | | job | 定时任务 |