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

@latent-space-labs/open-auto-doc

v0.5.11

Published

Auto-generate beautiful documentation websites from GitHub repositories using AI

Readme

open-auto-doc

One command. Beautiful docs. Auto-deployed.

Turn any GitHub repo into a fully hosted documentation site — powered by AI that actually reads your code.

npx @latent-space-labs/open-auto-doc

No config files. No manual writing. Just point it at your repos and get a production-ready docs site with architecture overviews, API references, component docs, and more.

Install

# Run directly with npx (no install needed)
npx @latent-space-labs/open-auto-doc

# Or install globally
npm install -g @latent-space-labs/open-auto-doc

Requirements

  • Node.js 18+
  • A GitHub account — works with public and private repos
  • An Anthropic API key — powers the AI analysis

Quick Start

# 1. Generate docs (interactive setup)
npx @latent-space-labs/open-auto-doc

# 2. Preview locally
cd docs-site && npm run dev

# 3. Deploy
open-auto-doc deploy

# 4. Auto-update on every push
open-auto-doc setup-ci

The CLI walks you through GitHub auth, repo selection, and API key setup interactively.

What Gets Generated

| Section | Contents | |---|---| | Architecture Overview | Tech stack, module breakdown, data flow diagrams, entry points, key patterns | | Getting Started | Prerequisites, install steps, quick start guide, config options | | API Reference | Endpoints with methods, params, request/response bodies, auth | | Components | UI components with props, usage examples, categories | | Data Models | Schemas with field types, constraints, relationships, ER diagrams | | Business Logic | Domain concepts, business rules, workflows | | Configuration | Config files, env vars, settings reference | | Error Handling | Error codes, common errors, debugging tips |

Multi-repo setups also get cross-repo analysis — shared dependencies, API contracts, and relationship diagrams.

All Commands

| Command | What it does | |---|---| | open-auto-doc | Full interactive setup: auth → pick repos → analyze → generate | | open-auto-doc init -o <dir> | Same, with custom output directory (default: docs-site) | | open-auto-doc generate | Re-analyze and regenerate using saved config | | open-auto-doc generate --incremental | Only re-analyze changed files | | open-auto-doc deploy | Create a GitHub repo for docs and push | | open-auto-doc setup-ci | Add GitHub Actions workflow for auto-updates | | open-auto-doc setup-mcp | Set up MCP server for Claude Code | | open-auto-doc login | Authenticate with GitHub | | open-auto-doc logout | Clear stored credentials |

MCP Server for AI Assistants

open-auto-doc includes an MCP (Model Context Protocol) server that lets AI assistants like Claude Code query your documentation directly. Instead of reading raw source files, the AI gets structured knowledge about your architecture, APIs, components, and data models.

How it works

When you run open-auto-doc init or generate, the AI analysis results are cached as JSON in <outputDir>/.autodoc-cache/. The MCP server (@latent-space-labs/open-auto-doc-mcp) is a separate lightweight package that reads this cache and serves it over the Model Context Protocol via stdio.

open-auto-doc init → .autodoc-cache/*.json → MCP Server (stdio) → Claude Code

The server has no dependency on the analyzer or generator — it only reads JSON files, so npx startup is fast.

Setup

# Set up after generating docs
open-auto-doc setup-mcp

This creates .mcp.json in your project root. Claude Code will automatically discover the tools:

  • get_project_overview — purpose, tech stack, summary stats
  • search_documentation — full-text search across all sections
  • get_api_endpoints — API endpoint details with params, auth, request/response
  • get_components — UI component documentation with props and usage
  • get_data_models — data model schemas with fields and relationships
  • get_architecture — modules, data flow, patterns, entry points
  • get_diagram — Mermaid diagrams (architecture, ER, flow)
  • get_business_rules — domain concepts, rules, and workflows

Resources are also available at docs://overview, docs://architecture, docs://getting-started, and docs://diagrams/{id}.

You can also configure .mcp.json manually:

{
  "mcpServers": {
    "project-docs": {
      "command": "npx",
      "args": ["-y", "@latent-space-labs/open-auto-doc-mcp", "--project-dir", "."]
    }
  }
}

Language Support

open-auto-doc is language-agnostic. It uses AI to understand code — not language-specific parsers. Works with TypeScript, JavaScript, Python, Go, Rust, Java, Kotlin, Ruby, PHP, C#, Swift, and more.

Privacy & Security

  • Your Anthropic API key is only sent to the Anthropic API
  • All code analysis runs locally on your machine (or in your own CI runner)
  • Credentials stored at ~/.open-auto-doc/credentials.json with 0600 permissions
  • Run open-auto-doc logout to clear everything

Links

License

MIT