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-md-ai

v3.0.3

Published

CLI tool to auto-generate professional README.md files from your project metadata

Readme

All Contributors

readme-md-ai

Instantly generate stunning, professional-grade README.md files from your project metadata — powered by OpenAI, OpenRouter, and zero setup.

npm version npm downloads license issues Contributions welcome


Why use readme-md-ai?

  • Instantly create clean, professional README.md files
  • Powered by OpenAI or OpenRouter models (supports GPT-3.5, GPT-4, Mixtral, LLaMA-3, and more)
  • Auto-analyzes your package.json metadata
  • Interactive CLI prompts (powered by inquirer)
  • Offers multiple README templates:
    • Minimal
    • Professional
    • AI-enhanced (Modern AI-style)
  • No boilerplate, no setup — just install and run

📦 Beginner-Friendly Installation & Run

  1. Open your project folder in terminal:
cd path/to/your/project

⚙️ Usage For Beginner

To generate a README.md for your project. Run the following command to generate your README:

npx readme-md-ai --dir .
  • npx automatically runs the tool even if it’s installed locally.
  • The CLI will guide you step by step to pick a template and (if needed) enter your API key.

📦 Installation for other user

Install globally via npm:

npm install -g readme-md-ai

Or install locally:

npm install readme-md-ai --save-dev

⚙️ Usage

To generate a README.md for your project. Run the following command to generate your README:

readme-md-ai --dir .

The CLI will:

  1. Scan your project’s package.json
  2. Ask you to pick a template
  3. For AI-style templates, it will:
    • Prompt for your API key (OpenAI or OpenRouter)
    • Use your selected model (default: mistralai/mixtral-8x7b-instruct)
    • Fallback to gpt-3.5-turbo if the selected model fails (with warning)

How AI Templates Work?

If you choose the Modern AI-style template:

  • You'll be prompted to enter your OpenAI or OpenRouter API key
  • The tool attempts to use the model specified with --model
  • If that model is unavailable or fails, it automatically falls back to gpt-3.5-turbo
  • The generated README.md will include a personalized project intro, version info, author, license, and more

💡 Your API key is never saved or shared. It is used only once to generate your README content during the session.


Supported Models (Free + Paid)

| Provider | Model Name | Model ID | Free | |-------------|----------------------------------|-------------------------------------------|------| | OpenAI | GPT-3.5 Turbo | gpt-3.5-turbo | ❌ | | OpenAI | GPT-4 | gpt-4 | ❌ | | OpenRouter | Mixtral 8x7B Instruct | mistralai/mixtral-8x7b-instruct | ✅ | | OpenRouter | Hermes 2 Mixtral 8x7B DPO | nousresearch/nous-hermes-2-mixtral-8x7b-dpo | ❌ | | OpenRouter | Noromaid Mixtral 8x7B Instruct | neversleep/noromaid-mixtral-8x7b-instruct | ✅ | | OpenRouter | LLaMA-3 70B Instruct | meta-llama/llama-3-70b-instruct | ✅ |

Use the --model flag to select your preferred model.


Where to Get an API Key??

OpenAI

  1. Sign in or create an account: https://platform.openai.com/
  2. Go to API Keys
  3. Click + Create new secret key
  4. Copy and paste the key into the CLI when prompted

OpenRouter

  1. Visit OpenRouter.ai
  2. Sign in and go to API Keys
  3. Copy your universal API key

CLI Options

| Option | Description | Default | |----------------|--------------------------------------------------|-------------------------------------| | --dir, -d | Directory to scan for package.json | . | | --model, -m | Model ID to use (e.g., mistralai/...) | mistralai/mixtral-8x7b-instruct | | --apiKey, -k | Your API key (OpenAI or OpenRouter) | null (prompted if not provided) | | --template, -t | Template type (Minimal, Professional, AI-style) | Prompted |

Example:

readme-md-ai --dir ./my-project --model mistralai/mixtral-8x7b-instruct

Fallback Handling

If the selected model fails (e.g., invalid ID, quota exceeded):

  • Automatically fallback to gpt-3.5-turbo
  • Inform you with a clear warning message
  • Still generate a complete AI-enhanced README

If both fail, a descriptive error will guide you to check your API key or plan.


Contributing

We welcome contributions!
Please see CONTRIBUTING.md and our CODE_OF_CONDUCT.md for details.

See how to add yourself to the contributor list here: 🧠 Contributor Guide (Wiki)


Built With

  • commander
  • inquirer
  • chalk
  • axios
  • dotenv
  • openai

Reporting Issues

We value your feedback!
If you encounter any issues, have feature suggestions, or just want to ask a question — feel free to open a GitHub issue:

👉 Open an Issue

💡 Your input helps improve this project for everyone. Don't hesitate!


Author

Manish Kumar Patel
GitHub: @its-maneeshk
npm: readme-md-ai


Show Some Love

If you found this useful, please consider starring the repo
-> Star on GitHub


License

Licensed under the MIT License.

Contributors

Thanks goes to these wonderful people (emoji key):

This project follows the all-contributors specification. Contributions of any kind welcome!