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

ai-spector

v0.9.25

Published

Cursor-first documentation workflow: traceability graph, SRS/basic/detail design templates, and ai-spector CLI

Readme

AI Spector

Công cụ làm tài liệu trên Cursor hoặc Claude Code: sơ đồ liên kết, SRS, basic/detail design, prototype. Chỉ cần nói trong chat — agent chọn một trong 4 skills và gọi MCP. Thường không cần terminal.

Cần có: Node 20+, Git, Cursor và/hoặc Claude Code · Python 3.11+ tùy chọn (CocoIndex)

Học cách dùng: npx ai-spector course serve --open · Course · English


Bắt đầu nhanh

1. Cài một lần (thư mục gốc project):

npm install ai-spector --registry http://10.101.0.239:4873
npx ai-spector init

npm công khai: bỏ --registry ….

2. Hoàn tất trong chat:

setup ai-spector project

3. Bật skills (một lần): Settings → Agent Skills → bật cả 4 thư mục trong .cursor/skills/ (hoặc .claude/skills/). Reload MCP.

4. Thêm nguồn vào docs/data-source/, rồi:

analyze my data source

Bản đồ đầy đủ: .cursor/WORKFLOW.md hoặc CLAUDE.md sau khi init.


Nói gì trong chat

Bốn skills — nói mục tiêu; agent đọc runbook và gọi tool.

| Skill | Bạn muốn… | Ví dụ prompt | |-------|-----------|--------------| | ai-spector | Setup, upgrade, adopt, check, docops, work | setup ai-spector project · upgrade ai-spector · check my workspace · migrate existing docs to docops · resume my SRS | | ai-spector-generate | SRS, design, prototype, một feature/section | generate the SRS · generate basic design · generate prototype with Vue · I want to add login with Google | | ai-spector-graph | Index, validate, impact, search, drift | validate the graph · re-index the graph · what's the impact of my changes · find mentions of rate limiting | | ai-spector-contract | Review, comments, dịch | review documents · approve srs/01-overview · resolve comments · add language vi |

Approve dễ nhầm (duyệt tài liệu vs duyệt plan vs comment). Agent sẽ hỏi lại nếu chưa rõ.

Lần chạy đầu

analyze the data source
validate the graph
generate the SRS

Sinh tài liệu có gate: làm rõ → bảng plan → bạn đồng ý → viết theo wave → index.

Tiếp theo:

generate basic design
generate prototype
review documents

Hàng ngày

| Khi nào | Nói | |---------|-----| | Nguồn mới / sửa | analyze data source | | Vừa sửa docs | re-index the graph | | Một phần / feature | update the auth section · I want to add … | | Kẹt setup | check ai-spector setup · help | | Skills cũ sau upgrade | upgrade ai-spector | | Tìm kiếm semantic (tùy chọn) | enable CocoIndex for this project |


Khi chat chưa đủ

| Tình huống | Thử prompt trước | CLI dự phòng | |------------|------------------|--------------| | Kiểm tra setup | check ai-spector setup | npx ai-spector setup --check | | Chỉ contract Writer | docops status | npx ai-spector docops status --json | | Mở khóa học | open the ai-spector course | npx ai-spector course serve --open | | Xem graph trên browser | show the graph | npx ai-spector graph visualize --open |

Đầy đủ lệnh: npx ai-spector --help · cli-reference


Gặp lỗi

| Lỗi | Nói trong chat | |-----|----------------| | Thiếu MCP | Reload MCP; kiểm tra server ai-spector trong .cursor/mcp.json hoặc .mcp.json | | Setup chưa xong | check ai-spector setup | | Agent không route skill | Bật lại cả 4 thư mục skill | | Validate lỗi sau sửa | re-index the graph | | Lỗi CLI | Agent dùng cli-failures |


Thêm

| Chủ đề | Tài liệu | |--------|----------| | Cấu hình (.docops/ + .ai-spector/) | CONTRACT.md | | Migrate legacy | MIGRATION.md | | Node SDK | docs/plan/sdk.md | | Graph trên web | docs/ai-spector-graph-integration-guide.md | | CocoIndex | docs/setup-guide.md | | Đóng góp / publish | npm install && npm run build && npm test · npm run deploy (nội bộ) · npm run deploy:npm (public) |

MIT — LICENSE.