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

innovation-doc-gen-cli

v1.2.1

Published

AI-powered documentation generator for JavaScript/TypeScript projects

Readme

innovation-doc-generator

AI-powered documentation generator for JavaScript/TypeScript projects. Automatically generates and updates API documentation and README files using AI.

Features

  • Auto-generate API docs - Extracts functions, classes, and React components from your codebase
  • README generation - Creates comprehensive project documentation
  • Incremental updates - Only processes changed files for faster updates
  • TypeScript support - Full support for TS/TSX and JS/JSX files
  • Multiple AI providers - Choose from Claude, OpenAI, or Ollama (free, local)

Installation

npm install -g innovation-doc-gen-cli

Or use with npx:

npx innovation-doc-gen-cli init

Quick Start

  1. Initialize in your project directory:
innovation-doc init

This creates a .aidocrc.json configuration file with default settings.

  1. Choose your AI provider (edit .aidocrc.json):

Option A: Ollama (Free, Local)

{
  "provider": "ollama",
  "model": "llama3.2"
}

Requires Ollama running locally. No API key needed.

Option B: OpenAI

{
  "provider": "openai",
  "model": "gpt-4o"
}
export OPENAI_API_KEY=your-api-key

Option C: Claude (Default)

{
  "provider": "claude",
  "model": "claude-sonnet-4-20250514"
}
export CLAUDE_API_KEY=your-api-key
  1. Generate documentation:
innovation-doc generate
  1. Update documentation after code changes:
innovation-doc update

Commands

| Command | Description | |---------|-------------| | innovation-doc init | Initialize configuration file | | innovation-doc generate | Generate full documentation | | innovation-doc update | Update docs for changed files only |

Configuration

The .aidocrc.json file supports these options:

{
  "include": ["src/**/*.{js,ts,jsx,tsx}"],
  "exclude": ["**/*.test.ts", "**/*.spec.ts", "node_modules/**"],
  "output": "./docs",
  "provider": "claude",
  "model": "claude-sonnet-4-20250514",
  "generateReadme": true,
  "generateApiDocs": true
}

| Option | Description | Default | |--------|-------------|---------| | include | Glob patterns for files to document | ["src/**/*.{js,ts,jsx,tsx}"] | | exclude | Glob patterns to exclude | ["**/*.test.ts", "node_modules/**"] | | output | Output directory for docs | "./docs" | | provider | AI provider: claude, openai, or ollama | "claude" | | model | Model name (varies by provider) | "claude-sonnet-4-20250514" | | apiKey | API key (not needed for ollama) | from env var | | baseUrl | Ollama server URL | "http://localhost:11434" | | generateReadme | Generate README.md | true | | generateApiDocs | Generate API.md | true |

Default Models by Provider

| Provider | Default Model | |----------|---------------| | claude | claude-sonnet-4-20250514 | | openai | gpt-4o | | ollama | llama3.2 |

Output

The tool generates documentation in the output directory:

  • API.md - Detailed API documentation for all exported functions, classes, and components

    API.md example

  • README.md - Project overview and usage guide

    README.md example

Programmatic Usage

You can also use the package programmatically:

import {
  loadConfig,
  analyzeProject,
  generate
} from 'innovation-doc-gen-cli';

const config = loadConfig();
const docs = await generate(config);

console.log('Generated:', docs.map(d => d.filePath));

Requirements

  • Node.js >= 18.0.0
  • One of the following:

License

MIT