JSPM

readme-ai-genie

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q26706F
  • License MIT

An AI-powered CLI that scans your project and automatically generates a stunning, professional README.md using Google Gemini.

Package Exports

  • readme-ai-genie
  • readme-ai-genie/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (readme-ai-genie) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

๐Ÿงžโ€โ™‚๏ธ readme-ai-genie ๐Ÿ”ฎโœจ

npm version License: MIT

Your projectโ€™s personal AI stylist for killer documentation. > ๐Ÿช„ From skeleton code to storybook-readyโ€”let our AI genie craft and style your README like a pro, powered by Google Gemini.


๐Ÿ“š Table of Contents

  1. What is This?
  2. How It Works
  3. Features
  4. Installation & Setup
  5. Usage & Commands
  6. Tech Stack
  7. Contributing
  8. License

๐Ÿค” What is This?

readme-ai-genie is a smart CLI tool that acts as your co-creator for documentation. It scans your project's codebase, understands its structure and dependencies, and then uses a powerful two-step AI pipeline with Google Gemini to generate a beautiful, professional, and personality-driven README.md file, which you can then approve or edit section-by-section.


๐Ÿ’ก How It Works

This genie runs a twoโ€‘step AI symphony to ensure your README is both accurate and stylish:

  1. The Architect ๐Ÿ—๏ธ It first scans your project files (smartly ignoring junk), then summons Gemini to draft a factually precise, wellโ€‘structured README.
  2. The Stylist ๐Ÿ’… It then takes that blueprint back to Gemini with a โ€œglowโ€‘upโ€ promptโ€”injecting tone, emojis, and flairโ€”so your README goes from bland to brand.
Click to peek under the hood ๐Ÿ”
graph TD
    A[Scan Files] --> B[Generate Factual Draft w/ Gemini]
    B --> C[Enhance with Style w/ Gemini]
    C --> D[Interactive User Review]
    D --> E[Write README.md]

โœจ Features

  • ๐Ÿค– Dual AI Pipeline: Uses Google Gemini for both a structured first draft and a creative final polish.
  • ๐ŸŽจ Selectable Personalities: Give your README a unique voice! Choose from a curated list of AI personalities to match your project's vibe.
  • ๐Ÿ•ต๏ธ Smart File Scanning: Intelligently scans your project, respecting your .gitignore for a clean and relevant context.
  • โœ๏ธ Interactive Review: You're the director. Approve, edit, or discard each AI-generated section on the fly for ultimate control.
  • ๐Ÿ” Effortless First-Time Setup: The "Royal Concierge" flow helps new users get and save their API key automatically.
  • ๐Ÿš€ Pro CLI UX: Comes with standard flags like --help, --version, and --output for a seamless developer experience.

๐Ÿš€ Installation & Setup

  1. Install the Tool: The recommended way is to use npx, which runs the package without a permanent install. No setup is needed beyond having Node.js (v18+) installed.

  2. API Key Configuration: The very first time you run readme-ai-genie, it will detect that you don't have a Google Gemini API key.

    • It will automatically open your browser to the Google AI Studio page.
    • It will then prompt you to paste the key directly into your terminal.
    • It will create a .env file in your project root and securely save the key for all future uses.

    First-Time User Setup


๐Ÿ’ป Usage & Commands

All commands are run via npx from the root of your project.

The Main Spell

This is the core command to generate a README with the default personality.

npx readme-ai-genie --auto

Main Command Execution


Command Variations

Get Help

Displays the list of all available commands and options.

npx readme-ai-genie --help

Check Version

Shows the currently installed version of the tool.

npx readme-ai-genie --version

List Available Styles

Displays the "fashion mood board" of all available AI personalities you can use.

npx readme-ai-genie --styles

Styles Showcase

Generate with a Specific Vibe

Use the --style flag to command the genie to write with a different personality.

npx readme-ai-genie --auto --style radiant

CI/CD & Automation (Auto-Approve)

Use the --yes flag to skip the entire interactive review process. The AI's first draft will be saved directly. Perfect for automated workflows.

npx readme-ai-genie --auto --yes

Custom Output Path

Use the -o or --output flag to save the final README.md to a specific file or folder.

npx readme-ai-genie --auto -o docs/PROJECT_README.md

๐Ÿ› ๏ธ Tech Stack

  • Runtime: Node.js (v18+)
  • AI: @google/generative-ai (Google Gemini)
  • CLI Prompts: inquirer
  • Styling: chalk
  • File Globbing: fast-glob + ignore
  • Env Management: dotenv
  • Browser Opener: open

๐Ÿค Contributing

Your ideas make this genie even more magical! โœจ Contributions are welcome. Fork the repo, create a branch, and open a PR. Please review our (soon-to-be-written) CONTRIBUTING.md and CODE_OF_CONDUCT.md.


๐Ÿ“œ License

MIT License ยฉ 2025 Shivadeepak


๐Ÿง  Dev Quote

โ€œFirst, solve the problem. Then, write the code. Finally, let the genie write the README.โ€