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

@ligoz94/auto-docs

v1.1.4

Published

AI-powered multi-audience documentation generator supporting Mintlify, Docusaurus, and VitePress

Readme

Auto-Docs 📚

AI-powered multi-audience documentation generator for your codebase

npm version License: MIT

Auto-Docs automatically generates beautiful, multi-audience documentation from your code changes using AI. Supports Mintlify, Docusaurus, and VitePress.

✨ Features

  • 🤖 AI-Powered: Uses OpenRouter, OpenAI, or Anthropic to generate intelligent documentation
  • 🎯 Multi-Audience: Create separate docs for developers, stakeholders, and end-users
  • 🎨 Multiple Frameworks: Choose between Mintlify, Docusaurus, or VitePress
  • 🔄 Automatic: GitHub Actions integration for automatic doc updates
  • 💰 Free Options: Supports free AI models via OpenRouter
  • 🚀 Easy Setup: Interactive CLI wizard

📋 Table of Contents

🚀 Installation

npm install -D @ligoz94/auto-docs

Or use directly with npx:

npx @ligoz94/auto-docs init

⚡ Quick Start

1. Initialize in your project

npx auto-docs init

The interactive wizard will guide you through:

  • Framework selection (Docusaurus, VitePress, or Mintlify)
  • Audience configuration (Developer, Business, Customer)
  • AI provider setup
  • GitHub Actions configuration

2. Add your API key

Get a free API key from OpenRouter and add it to GitHub Secrets:

Repository → Settings → Secrets → Actions → New repository secret
Name: OPENROUTER_API_KEY
Value: your-api-key-here

3. Generate documentation

npx auto-docs generate

4. Preview documentation

npx auto-docs dev

That's it! 🎉

📊 Framework Comparison

| Feature | Mintlify | Docusaurus | VitePress | |---------|----------|------------|-----------| | Cost | Premium (paid) | ✅ Free | ✅ Free | | Hosting | Cloud included | Self-host | Self-host | | Setup Time | 2 min | 10 min | 5 min | | Customization | Limited | ✅ Full (React) | ✅ Full (Vue) | | Build Speed | N/A | Medium | ⚡ Very Fast | | Search | Built-in | Algolia | Built-in | | Multi-Audience | Tabs | Multi-instance | Multi-sidebar | | Deploy | Mintlify Cloud | GitHub Pages, Vercel, Netlify | GitHub Pages, Vercel, Netlify |

When to choose...

Mintlify - Quick setup, professional look, don't mind paying, want managed hosting Docusaurus - Need maximum customization, React experience, large community VitePress - Want blazing fast performance, Vue experience, minimal setup

📖 Usage

CLI Commands

# Initialize auto-docs
npx auto-docs init [options]

# Generate documentation
npx auto-docs generate [options]

# Start dev server
npx auto-docs dev [audience]

# Validate configuration
npx auto-docs config --validate

Options

init

npx auto-docs init \
  --framework docusaurus \
  --skip-install \
  --skip-git

generate

npx auto-docs generate \
  --audience developer \
  --force \
  --dry-run \
  --base-branch main
  • --audience <type> - Target audience (developer, stakeholder, customer, all)
  • --force - Regenerate all documentation
  • --dry-run - Preview without writing files
  • --base-branch <branch> - Base branch for comparison (default: main)

dev

npx auto-docs dev [audience] --port 3000

⚙️ Configuration

Auto-docs creates a .doc-agent-config.json file:

{
  "framework": "docusaurus",

  "multiAudience": {
    "enabled": true,
    "audiences": ["developer", "stakeholder", "customer"]
  },

  "ai": {
    "provider": "openrouter",
    "model": "openai/gpt-4o-mini",
    "temperature": 0.3,
    "maxTokens": 4000
  },

  "documentation": {
    "docsPath": "docs",
    "format": "mdx",
    "language": "en"
  },

  "triggers": {
    "filePatterns": ["**/*.ts", "**/*.js", "**/*.py"],
    "excludePatterns": ["node_modules/**", "dist/**", "docs/**"]
  }
}

Framework-Specific Configuration

Docusaurus: Edit docusaurus.config.js and sidebars.js VitePress: Edit .vitepress/config.js Mintlify: Edit mint.json

🔄 GitHub Actions

Auto-docs automatically creates GitHub Actions workflows. Enable them in your repository settings:

  1. Go to SettingsActionsGeneral
  2. Under Workflow permissions, select "Read and write permissions"
  3. Enable "Allow GitHub Actions to create and approve pull requests"
  4. Save

The workflow will:

  • Trigger on pull requests
  • Analyze code changes
  • Generate documentation with AI
  • Commit updates to the PR

🎯 Multi-Audience Documentation

Auto-docs generates tailored documentation for different audiences:

Developer

  • Technical details and API references
  • Code examples in multiple languages
  • Implementation guides
  • Performance and security notes

Stakeholder

  • Business value and impact
  • High-level features
  • Metrics and ROI
  • Risk assessment

Customer

  • User-friendly tutorials
  • Step-by-step guides
  • FAQ and troubleshooting
  • Common use cases

🌐 Deployment

GitHub Pages (Free)

# Docusaurus
npm run build
npx gh-pages -d build

# VitePress
npm run docs:build
npx gh-pages -d docs/.vitepress/dist

Vercel (Free)

vercel deploy

Netlify (Free)

netlify deploy --prod

Mintlify Cloud

Connect your repository at mintlify.com

📄 License

MIT © [Your Name]


Made with ❤️ by Your Name