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

readme-generator-ai

v1.0.0

Published

AI-powered README generator for any local repository

Readme

readmegen

npm version license node

readmegen is an AI-powered CLI tool that generates comprehensive README.md files for any local repository. It analyzes your project structure, dependencies, and source code to produce documentation in seconds.

npm install -g readme-generator-ai

Features

  • 🤖 Multi-provider AI — OpenAI, Anthropic, Google Gemini, GitHub Copilot. Auto-detects your API key.
  • 📦 Offline mode--no-ai generates a full template from config files and source scanning.
  • 📁 Universal parser — package.json, requirements.txt, Cargo.toml, pyproject.toml, Gemfile.
  • 🔍 Source scanner — Extracts exports from JS/TS, Python, Rust files.
  • 🌳 File tree — Auto-generated ASCII tree of your project structure.
  • 🎨 Beautiful TUI — Colored terminal output with progress spinners and summary box.
  • 🔄 Cross-platform — Windows, macOS, Linux.

Usage

readmegen [path] [options]

| Argument | Description | |----------|-------------| | path | Project directory (default: .) |

| Option | Description | |--------|-------------| | --no-ai | Skip AI, use templates only | | -o, --output <file> | Output file (default: ./README.md) | | --overwrite | Overwrite existing file | | --provider <name> | AI provider: openai, anthropic, google, github-copilot | | --model <name> | Model name (provider-specific default) | | -h, --help | Show help |

Examples

# Generate with auto-detected AI provider
readmegen

# Generate for a specific project
readmegen ../my-project

# Template-only mode (no API key needed)
readmegen --no-ai

# Write to a custom location
readmegen -o docs/README.md --overwrite

# Use a specific provider and model
readmegen --provider google --model gemini-2.5-flash

API Keys

Set one of these environment variables — readmegen auto-detects which is available:

| Provider | Variable | |----------|----------| | Google Gemini | GOOGLE_API_KEY | | OpenAI | OPENAI_API_KEY | | Anthropic | ANTHROPIC_API_KEY | | GitHub Copilot | GITHUB_TOKEN |

What It Generates

┌────────────────────────────────────────────┐
│  readmegen complete                        │
│                                            │
│    ✔ Parse config files                    │
│    ✔ Scan source files                     │
│    ✔ Generate file tree                    │
│    ✔ AI description (Gemini 2.5 Flash)     │
│    ✔ Write README file                     │
│                                            │
│  📄 ./README.md                            │
│  ⚡ 2.3s                                    │
│  🤖 google                                 │
└────────────────────────────────────────────┘

The output includes: project description, installation, usage, API reference (auto-detected exports), scripts table, file tree, dependencies, troubleshooting, contributing, license.

Offline Mode

With --no-ai, readmegen works entirely offline by parsing your project's config files and scanning source code for exports. No API key required.

readmegen --no-ai

Supported Languages

| Language | Config Parsing | Source Scanning | |----------|---------------|-----------------| | JavaScript / TypeScript | package.json | ✅ Exports | | Python | requirements.txt, pyproject.toml | ✅ Functions/classes | | Rust | Cargo.toml | ✅ pub fn, pub struct | | Ruby | Gemfile | — |

Web Demo

Try it online at readmegen-web-demo.vercel.app — paste any GitHub URL to generate a README via the GitHub API.

License

MIT


README generated by readmegen