@lxgicstudios/ai-readme
v1.0.0
Published
Generate professional README.md files from codebase analysis. Scans package.json, detects frameworks, outputs badges, install instructions, API docs, and more.
Maintainers
Readme
@lxgicstudios/ai-readme
Generate professional README.md files from codebase analysis. Zero dependencies.
Features
- Scans
package.json, detects frameworks, and analyzes yoursrc/structure - Outputs badges, install instructions, usage, API docs, and contributing section
- Two styles:
minimalfor quick docs,detailedfor full documentation - Update mode preserves your custom sections (won't overwrite manual edits)
- JSON export for CI/CD pipelines
- Zero external dependencies - uses only Node.js builtins
- Colorful terminal output
Installation
Run directly with npx:
npx @lxgicstudios/ai-readmeOr install globally:
npm install -g @lxgicstudios/ai-readmeUsage
ai-readme [options]Options
| Option | Description | Default |
|--------|-------------|---------|
| --dir <path> | Target directory to analyze | Current directory |
| --style <mode> | Output style: minimal or detailed | detailed |
| --output <file> | Output file path | README.md |
| --update | Preserve custom sections in existing README | false |
| --json | Output analysis as JSON instead of markdown | false |
| --dry-run | Preview output without writing to disk | false |
| --help | Show help message | |
Examples
# Generate README in current directory
npx @lxgicstudios/ai-readme
# Minimal style with custom output path
npx @lxgicstudios/ai-readme --style minimal --output DOCS.md
# Update existing README, keep custom sections
npx @lxgicstudios/ai-readme --update
# Preview what it'd generate (no file written)
npx @lxgicstudios/ai-readme --dry-run
# Export analysis as JSON
npx @lxgicstudios/ai-readme --jsonCustom Sections
When using --update, ai-readme preserves any sections wrapped in custom markers:
<!-- custom: my-section -->
Your custom content here that won't be overwritten.
<!-- /custom -->What It Detects
- Frameworks: React, Next.js, Vue, Nuxt, Svelte, Angular, Express, Fastify, Hono, and more
- Languages: TypeScript, JavaScript, Python, Rust, Go, Ruby, Java, CSS, SCSS
- Project config: bin entries, scripts, engines, keywords, dependencies
- Structure: src/ file tree, entry points, CLI definitions
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/cool-feature) - Commit your changes (
git commit -m 'feat: add cool feature') - Push to the branch (
git push origin feature/cool-feature) - Open a Pull Request
License
MIT License. See LICENSE for details.
Built by LXGIC Studios
