Skip to content

kedar49/lazydocs

Repository files navigation

LazyDocs

Stop writing docs. Let AI do it.

npm CI License

LazyDocs uses Groq's lightning-fast AI to generate professional documentation from your codebase. READMEs, PR descriptions, changelogs—all in seconds.

Why LazyDocs?

  • Fast - Powered by Groq's LLM inference (seriously fast)
  • Smart - Analyzes your actual code structure
  • Easy - Interactive CLI that just works
  • Free - Groq API is free to use

Install

npm install -g @tfkedar/lazydocs

Setup

Get a free API key from console.groq.com, then:

lazydocs config set GROQ_API_KEY=your_key_here

Use

Interactive Mode (Recommended)

lazydocs generate --interactive

Walks you through everything. Pick what to generate, choose your model, done.

Quick Commands

# Generate README
lazydocs generate --type readme

# Generate PR description
lazydocs generate --type pr

# Generate changelog from git history
lazydocs generate --type changelog

Advanced

lazydocs generate \
  --type readme \
  --input ./src \
  --model llama-3.1-8b-instant \
  --temperature 0.7 \
  --verbose

What It Does

LazyDocs scans your code (JS, TS, JSX, TSX) and generates:

  • READMEs - Project overview, installation, usage, API docs
  • PR Descriptions - Summary of changes from git diff
  • Changelogs - Categorized release notes from commits

Models

Choose your speed vs quality:

  • llama-3.1-70b-versatile - Best quality (default)
  • llama-3.1-8b-instant - Fastest
  • mixtral-8x7b-32768 - Huge context window
  • gemma2-9b-it - Good balance
lazydocs models  # See all available

Examples

Generate README for your project

cd my-awesome-project
lazydocs generate --type readme

Creates README.md with:

  • Project overview
  • Installation steps
  • Usage examples
  • API documentation

Create PR description

git add .
lazydocs generate --type pr --output PR.md

Analyzes your changes and writes a clear PR description.

Auto-generate changelog

lazydocs generate --type changelog

Reads your git history and creates a formatted changelog.

Configuration

Config lives in ~/.lazydocs:

# Set API key
lazydocs config set GROQ_API_KEY=your_key

# View all config
lazydocs config list

# Get specific value
lazydocs config get GROQ_API_KEY

Options

lazydocs generate [options]

Options:
  -i, --input <dir>       Code directory (default: "./src")
  -o, --output <file>     Output file (auto-detected)
  -t, --type <type>       readme | pr | changelog (default: "readme")
  -m, --model <model>     AI model to use
  --temperature <n>       Creativity 0-1 (default: 0.7)
  --max-tokens <n>        Max response length (default: 2048)
  --interactive           Interactive mode
  --verbose               Show details
  -h, --help              Show help

Tips

  • Use --interactive for the easiest experience
  • Try different models—faster isn't always worse
  • Use --verbose to see what's happening
  • Works best with well-structured code

Requirements

  • Node.js 18 or higher
  • Free Groq API key

Contributing

Found a bug? Want a feature? Open an issue or submit a PR.

See CONTRIBUTING.md for guidelines.

License

MIT © Kedar Sathe

Links


Built with Groq • Made by @kedar49

About

AI-powered documentation generator for your codebase

Resources

License

Contributing

Stars

Watchers

Forks

Sponsor this project

Packages

 
 
 

Contributors