auto-readme-lite

โœจ Instantly generate and update beautiful, accurate README.md files for any Node.js project.
No AI, no cloud, 100% offline โ€” just pure static analysis and Markdown magic.

๐Ÿš€ Features

Static Analysis

Parses JS/TS files to detect exported functions, classes, interfaces, and CLI commands.

CLI Command Extraction

Finds commands from commander and yargs for instant CLI docs.

Script Detection

Lists all package.json scripts for easy reference.

Content Safe

Only updates auto-generated sections, preserving your custom README content.

Instant & Offline

No AI, no cloud, no waiting. Works 100% offline and is blazing fast.

Markdown Perfection

Generates clean, professional Markdown with code blocks, headers, and formatting.

โšก Quick Start

Quick Install & Run

Run directly with npx (no installation needed)

npx auto-readme-lite

Global Installation

Or install globally for repeated use

npm install -g auto-readme-lite
auto-readme-lite

๐Ÿ“‹ Usage

Command Options

Available command line options

Usage: auto-readme-lite [options]

Options:
  --dry-run     Preview README output without writing
  --watch       Watch mode (auto-update on changes)
  --sections    Comma-separated sections to include (api,cli,scripts,git)
  --dir         Target project directory
  --help        Show help

Example Usage

Basic usage examples

# Generate README for current directory
npx auto-readme-lite

# Preview without writing
npx auto-readme-lite --dry-run

# Watch mode for auto-updates
npx auto-readme-lite --watch

# Specific sections only
npx auto-readme-lite --sections api,cli,scripts --dir ./my-project

๐Ÿ“ Example Output

API Reference

startDripSystem

Type: Function

File: drip-booster.js


CLI Commands

  • add <a> <b> - Add two numbers

Available Scripts

  • start - node index.js
  • test - jest
  • build - tsc

๐Ÿงช Try It Live

Test auto-readme-lite with sample code below. Choose a template or write your own!

๐Ÿ“ Input Code

๐Ÿ“„ Generated README

Generated README sections will appear here...

๐Ÿ” How It Works

๐Ÿ”

Scans

Your project for .js and .ts files (excluding node_modules, dist, etc.)

โš™๏ธ

Parses

Exports, CLI commands, and scripts using ts-morph and Babel

๐Ÿ“

Updates

Only the auto-generated sections in your README.md

๐Ÿ’พ

Preserves

All your custom content

๐Ÿ”’

Works Offline

Never sends code to the cloud