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

docforge-gen

v1.0.1

Published

Zero-config documentation for any repo. One command. Always fresh.

Readme

Most doc tools require you to write the docs yourself. Docforge scans your codebase and generates them for you — overview, architecture diagrams, API reference, and a health score that keeps your team honest.

npx docforge-gen

That's it.


Before → After

Before: your repo has no docs.

After: Docforge generates a complete docs-gen/ folder:

docs-gen/
 ├── overview.md       ← Project summary, quick start, tech stack
 ├── architecture.md   ← Mermaid diagrams, module breakdown, dependencies
 ├── api.md            ← Auto-detected endpoints with curl examples
 ├── structure.md      ← Annotated directory tree, file stats, comment coverage
 └── health.md         ← Documentation health score (0-100%)

Zero config. Zero manual writing.


Quick Start

CLI (fastest)

# Run instantly — no install needed
npx docforge-gen

# Or install globally
npm install -g docforge-gen

# Just the health check
docforge health

# Explain a specific folder
docforge explain src/services

# Custom output directory
docforge generate --output documentation

GitHub Action (set and forget)

Add to .github/workflows/docforge.yml:

name: Documentation

on:
  push:
    branches: [main]

permissions:
  contents: write

jobs:
  docs:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: martinanatale93/docforge@v1

Docs are generated and committed on every push. Done.


Health Score

The feature that makes teams adopt Docforge. Every run scores your documentation:

📊 Documentation Score: 72% 🟡

  ✅ README              — 15/15 pts
  ✅ README quality       — 10/10 pts
  ✅ Project description  — 5/5 pts
  ❌ Code comments        — 6/15 pts
  ✅ API documentation    — 10/10 pts
  ✅ Tests                — 10/10 pts
  ✅ CI/CD                — 5/5 pts
  ❌ License              — 0/5 pts
  ❌ Contributing guide   — 0/5 pts
  ❌ Changelog            — 0/5 pts
  ✅ Env template         — 5/5 pts
  ✅ Setup scripts        — 10/10 pts

  Missing:
  - License
  - Contributing guide
  - Changelog

Use it in CI to block merges when docs score drops below a threshold. Teams improve documentation organically because nobody wants to be the one who broke the score.


What It Detects

| Category | Technologies | |----------|-------------| | Languages | TypeScript, JavaScript, Python, C#, Java, Go, Ruby, Rust, Swift, Kotlin, PHP | | Frameworks | React, Next.js, Vue, Nuxt, Angular, Svelte, Express, Fastify, NestJS, Django, Flask, FastAPI | | Databases | PostgreSQL, MySQL, MongoDB, Redis, Prisma, TypeORM, Sequelize | | Infrastructure | Docker, Terraform, GitHub Actions, GitLab CI, Serverless, AWS CDK, Vercel, Netlify | | API Styles | REST (Express / Fastify / NestJS / .NET / Flask / FastAPI routes) |


Reference

| Input | Default | Description | |-------|---------|-------------| | output-dir | docs-gen | Where to write generated docs | | include-health-score | true | Include health score in output | | commit-changes | true | Auto-commit docs back to repo | | commit-message | docs: auto-update documentation [skip ci] | Commit message | | sections | overview,architecture,api,structure | Which sections to generate |

| Output | Description | |--------|-------------| | health-score | Documentation health score (0–100) | | docs-path | Path to generated docs directory | | files-generated | Number of files generated |

| Command | Description | |---------|-------------| | docforge generate | Generate all documentation (default) | | docforge health | Run health check only | | docforge explain <path> | Explain a specific folder |

| Option | Default | Description | |--------|---------|-------------| | -d, --dir <path> | . | Project root directory | | -o, --output <path> | docs-gen | Output directory | | --no-health | — | Skip health score | | -s, --sections <list> | overview,architecture,api,structure | Sections to generate |


Examples

See the examples/ directory for ready-to-use workflow templates:


Roadmap

  • [ ] OpenAPI/Swagger spec generation
  • [ ] Mermaid sequence diagrams from code
  • [ ] Multi-language README (i18n)
  • [ ] Custom templates / themes
  • [ ] Badge generation (embed health score in your README)
  • [ ] Search across generated docs
  • [ ] AI-powered explanations (optional)

License

MIT