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

create-cogmap

v0.1.3

Published

CogMap 脚手架 — 一行命令初始化 CogMap 项目 (npx create-cogmap my-project, 兼容 Claude Code v2.1.49+ 原生 worktree, 支持 Cursor/Codex/Aider 跨工具同步)

Readme

create-cogmap

CogMap 脚手架 — 一行命令初始化 CogMap 项目。

用法

# 初始化新项目
npx create-cogmap my-project
cd my-project

# 或在已有项目里加 CogMap
cd existing-project
npx create-cogmap .

初始化产物

my-project/
├── .claude/
│   ├── settings.json              # SessionStart / Stop hooks
│   ├── hooks/
│   │   ├── session-start.sh       # 拉 INTEL → 注入 CLAUDE.md
│   │   └── session-end.sh         # 跑 audit + dev-quality
│   └── skills/                    # 项目 SKILL.md 目录
│       └── .gitkeep
├── scripts/
│   ├── audit-map-coverage.mjs    # 用 cogmap-core/audit
│   ├── validate-intel.mjs         # 用 cogmap-core/validate
│   ├── match-recipe.mjs           # 用 cogmap-core/match-recipe
│   ├── check-bug-history.mjs      # 用 cogmap-core/check-bug-history
│   └── sync-intel-to-claude-md.mjs
├── INTEL.json                     # 初始 INTEL 数据
├── .cogmap.json                   # 项目 CogMap 配置(api_base 等)
├── CLAUDE.md                      # 项目 AI 指令文件 (auto-generated)
├── .gitignore                     # 含 CLAUDE.md 等 cogmap 内部文件
├── cogmap-explainer.html          # 对外说明文档
└── package.json                   # 含 cogmap-core 依赖

命令

cogmap init [dir]      # 初始化 (默认当前目录)
cogmap doctor          # 诊断: 检查 INTEL 端点连通性 / scripts 完整性 / hook 注册
cogmap upgrade         # 升级 templates (谨慎, 会覆盖)
cogmap version         # 显示版本

配置

项目根 .cogmap.json:

{
  "api_base": "https://your-domain.com",
  "api_key_env": "COGMAP_API_KEY",
  "project_name": "my-project"
}

后续步骤

  1. 起一个 INTEL 后端 (或用现有的)
  2. 设置 COGMAP_API_KEY 环境变量
  3. 在 Claude Code / Cursor / 其他 AI 工具里打开项目
  4. SessionStart hook 自动拉 INTEL 注入 CLAUDE.md
  5. 写需求 → AI 自动按 SKILL.md 五步走

License

MIT