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

clawdocs

v1.0.0

Published

Generate AI-agent-optimized documentation for your codebase. Based on Diataxis framework + Anthropic's agent-development best practices.

Readme

ClawDocs

Generate AI-agent-optimized documentation for any codebase using Claude Code.

ClawDocs creates a comprehensive prompt that Claude Code executes to analyze your project and generate documentation following the Diataxis framework combined with Anthropic's agent-development best practices.

Prerequisites

Installation

npm install -g clawdocs

Or use directly with npx:

npx clawdocs generate

Usage

Generate Documentation Prompt

# Navigate to your project
cd your-project

# Generate the Claude Code prompt
clawdocs generate

# Run the generated prompt with Claude Code
claude ".clawdocs/generate-docs.md"

Options

clawdocs generate [options]

Options:
  -d, --depth <level>   Documentation depth: minimal, standard, comprehensive (default: "standard")
  -o, --output <path>   Output path for prompt file (default: ".clawdocs/generate-docs.md")
  --run                 Immediately run the prompt with Claude Code after generation

Depth Levels

minimal - Essential files only:

  • CLAUDE.md
  • docs/README.md
  • docs/03-reference/agent-reference/codebase-map.md

standard (default) - Balanced documentation:

  • All configuration files (CLAUDE.md, AGENTS.md, CLAUDE.LOCAL.md)
  • Core docs/ structure
  • Codebase map and architecture
  • Basic how-to guides
  • Agent workflows

comprehensive - Complete documentation:

  • Everything in standard
  • Detailed tutorials
  • Full API reference
  • Architecture Decision Records (ADRs)
  • Troubleshooting guides
  • Security and performance docs

What Gets Generated

When you run the prompt with Claude Code, it analyzes your codebase and generates:

Root Files

  • CLAUDE.md - Project configuration for Claude Code (commit this)
  • CLAUDE.LOCAL.md - Personal working memory (git-ignored)
  • AGENTS.md - Agent skills framework with capabilities

docs/ Structure

docs/
├── README.md                    # Master index
├── META-AGENT-PROTOCOLS.md      # Documentation maintenance rules
├── 00-getting-started/          # Installation and setup
├── 01-tutorials/                # Step-by-step learning
├── 02-how-to-guides/            # Task-oriented recipes
├── 03-reference/                # Technical specifications
│   └── agent-reference/
│       └── codebase-map.md      # Complete codebase map
├── 04-explanation/              # Architecture and concepts
├── 05-agent-workflows/          # Executable YAML workflows
├── 06-agent-guardrails/         # Restrictions and standards
├── 07-development/              # Dev environment setup
├── 08-deployment/               # Deployment procedures
├── 09-adrs/                     # Architecture decisions
├── 10-conventions/              # Coding standards
└── 11-troubleshooting/          # Problem-solving guides

Supported Tech Stacks

ClawDocs auto-detects your stack to provide context to Claude:

Backend:

  • Go (Gin, Echo, Fiber)
  • Node.js (Express, Fastify, NestJS, Hono)
  • Python (FastAPI, Django, Flask)
  • Rust (Actix, Axum)

Frontend:

  • React, React Native (Expo)
  • Next.js, Vue, Svelte

Infrastructure:

  • Docker, Docker Compose
  • PostgreSQL, MySQL, MongoDB

Monorepos:

  • npm/yarn workspaces
  • Lerna, pnpm workspaces

Documentation Philosophy

ClawDocs follows these principles:

  1. Token Efficiency - Informative but concise. No emojis or decorative elements.
  2. Agent-Optimized - Structured for AI agent consumption with clear navigation.
  3. Living Documentation - Meta-protocols for keeping docs in sync with code.
  4. Just-in-Time Context - Progressive disclosure: indexes first, details on demand.
  5. Diataxis Framework - Separates tutorials, how-tos, reference, and explanation.

Example

# Generate and immediately run
clawdocs generate --depth comprehensive --run

# Or step by step
clawdocs generate --depth standard
claude ".clawdocs/generate-docs.md"

Contributing

Contributions welcome. Please open an issue or PR on GitHub.

License

MIT