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

doc-writer

v1.1.0

Published

Install doc-writer AI skill into your project

Readme

doc-writer

An AI-powered technical documentation generator skill for your IDE (Cursor / Claude). It analyzes your repository using a graph-first pipeline: GitNexus and Graphify are indexed into a frozen snapshot under docs/.../_work/graph/, analysis views are written with graph evidence, then SRS and Basic Design documents are generated following the machine-defined DAG in .source-investigator/document-dependencies.yaml. Parallel sub-agents are used where the DAG and phase files allow.

Prerequisites (target repo)

| Tool | Role | |------|------| | Git | source_path must live inside a git work tree (for commit SHA + git rev-parse --show-toplevel). | | GitNexus | npx gitnexus analyze at repo root (optional if you use --graph-backend graphify only). MCP is optional; a mirror under _work/graph/gitnexus/ supports offline phases. | | Graphify | Python CLI per Graphify (optional if you use --graph-backend gitnexus only). |

Installation

You can install the package globally using npm:

npm install -g doc-writer

(Alternatively, you can run it directly without installing via npx doc-writer init)

Setup and quick start

Step 1: Initialize the skill

Navigate to your project directory in your terminal and run the installer:

cd /path/to/your/project
npx doc-writer init

This copies .cursor, .claude, and .source-investigator (skills, phases, schemas, and document-dependencies.yaml) into your project.

Step 2: Open your AI IDE

Open the project directory in Cursor or Claude.

Step 3: Generate documentation

In chat, use one primary command (path = folder to analyze):

/gen-doc ./src

(Replace ./src with the path you want documented. If you omit the path, the skill will ask for it.)


Advanced commands

/gen-doc <source_path>                     # Full pipeline: Phase 0–3 (default)
/gen-doc all <source_path>                 # Same, explicit
/gen-doc analyze <source_path>             # Phase 0 + Phase 1 only
/gen-doc srs <source_path>                 # Phase 2 only (requires completed analysis)
/gen-doc design <source_path>              # Phase 3 only (requires completed SRS)

Options

  • --output <path> — Output root (default: ./docs/<folder-name>).
  • --force — Re-run the requested phase; analyze + --force resets Phase 0 and Phase 1.
  • --skip-graph-refresh — Skip npx gitnexus analyze and Graphify rebuild; requires an existing _work/graph/manifest.json under the output tree.
  • --graph-backend both|gitnexus|graphify — Default both. Skipped backends are stubbed in the manifest and noted under Gaps & Assumptions.
  • --type <auto|modern|legacy> — Still honored by the router when you add it; architecture detection defaults to auto via /gen-doc.

Phases (high level)

  1. Graph index — GitNexus analyze, Graphify export, manifest.json (graph identity for the run).
  2. Source analysis — Architecture, screens, APIs, entities, workers, module dependencies, features, deep dives (graph-evidenced where possible).
  3. SRS — Requirements aligned to analysis + graph traceability.
  4. Basic design — Screen/API/DB design from SRS + analysis.

Progress is stored in <output>/_work/progress.md. You can resume after interruption.

Contracts for contributors

License

ISC