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

@sidhxntt/readme-wizard

v1.0.3

Published

[![Node.js](https://img.shields.io/badge/node.js-%3E%3D16-brightgreen.svg)](https://nodejs.org/) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![CLI](https://img.shields.io/badge/type-CLI%20to

Readme

README Wizard

Node.js License: MIT CLI

AI-powered README generator that scans your codebase and creates comprehensive documentation using Claude AI.

Features

  • Intelligent Codebase Scanning - Automatically discovers and analyzes project structure
  • Priority File Detection - Focuses on key files like package.json, Dockerfile, config files
  • Smart Content Filtering - Excludes binary files, build artifacts, and secrets
  • Multiple Output Options - Generate files or preview with --dry-run
  • Configurable Limits - Control max files and lines to stay within token limits
  • Project Tree Generation - Visual directory structure in output
  • Gitignore Integration - Respects existing .gitignore patterns
  • CLI-First Design - Simple commands with helpful spinners and colored output

Prerequisites

  • Node.js 16 or higher
  • Anthropic API key (for Claude AI access)

Installation

Install globally via npm:

npm install -g readme-wizard

Or run directly with npx:

npx readme-wizard generate

Configuration

Set your Anthropic API key as an environment variable:

export ANTHROPIC_API_KEY=your-api-key-here

Usage

Generate README for current directory

readme-wizard generate

Generate for specific directory

readme-wizard gen /path/to/project

Preview without writing file

readme-wizard generate --dry-run

Custom output location

readme-wizard generate -o DOCUMENTATION.md

Scan only (see what would be sent to AI)

readme-wizard scan

CLI Reference

generate [dir] (alias: gen)

Generate a README by scanning the project and sending context to Claude AI.

Options:

  • -o, --output <file> - Output file path (default: README.md)
  • -m, --model <model> - Claude model to use (default: claude-sonnet-4-20250514)
  • --max-files <n> - Maximum files to include in context (default: 80)
  • --max-lines <n> - Maximum lines per file to read (default: 150)
  • --no-tree - Skip project tree generation
  • --dry-run - Print README to stdout instead of writing file
  • --overwrite - Overwrite existing README without prompting

scan [dir]

Scan project and show what would be sent to the LLM without generating README.

Options:

  • --max-files <n> - Maximum files to include (default: 80)
  • --max-lines <n> - Maximum lines per file (default: 150)

Project Structure

Readme_generator_llm/
├── docs/
│   └── index.html          # Project documentation page
├── src/
│   ├── index.js           # CLI entry point and command definitions
│   ├── scanner.js         # Codebase scanning and file analysis
│   └── generator.js       # Claude AI integration and README generation
└── package.json           # NPM package configuration

Key Files

  • src/index.js - Main CLI application using Commander.js with colorful output via Chalk and Ora
  • src/scanner.js - Core scanning logic that builds project trees, respects gitignore, and categorizes files by priority
  • src/generator.js - Handles Anthropic API integration and prompt construction for Claude AI
  • docs/index.html - Landing page with installation and usage instructions

How It Works

  1. Scan Phase - Recursively walks project directory, filtering files based on:

    • Gitignore patterns + built-in exclusions (node_modules, build artifacts, etc.)
    • File extension allowlist (source code, configs, documentation)
    • Priority patterns (package.json, Dockerfile, etc. get full content)
  2. Context Building - Creates structured prompt with:

    • Project name (from directory or package.json)
    • Complete file listing
    • Directory tree visualization
    • Key file contents (truncated if needed)
  3. AI Generation - Sends context to Claude AI with specific instructions to:

    • Detect project type and purpose
    • Generate appropriate sections (installation, usage, etc.)
    • Use real code examples from the scanned files
    • Output clean Markdown without placeholders

Contributing

  1. Clone the repository
  2. Install dependencies: npm install
  3. Run in development mode: npm run dev
  4. Make your changes and test with real projects
  5. Submit a pull request

The codebase uses ES modules and modern Node.js features. Key dependencies:

  • @anthropic-ai/sdk - Claude AI integration
  • commander - CLI framework
  • chalk & ora - Terminal styling and spinners
  • glob & ignore - File system operations