readme-md-ai
v3.0.3
Published
CLI tool to auto-generate professional README.md files from your project metadata
Maintainers
Readme
readme-md-ai
Instantly generate stunning, professional-grade README.md files from your project metadata — powered by OpenAI, OpenRouter, and zero setup.
Why use readme-md-ai?
- Instantly create clean, professional
README.mdfiles - Powered by OpenAI or OpenRouter models (supports GPT-3.5, GPT-4, Mixtral, LLaMA-3, and more)
- Auto-analyzes your
package.jsonmetadata - 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
- 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-aiOr 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:
- Scan your project’s
package.json - Ask you to pick a template
- 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-turboif 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.mdwill 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
- Sign in or create an account: https://platform.openai.com/
- Go to API Keys
- Click + Create new secret key
- Copy and paste the key into the CLI when prompted
OpenRouter
- Visit OpenRouter.ai
- Sign in and go to API Keys
- 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-instructFallback 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
commanderinquirerchalkaxiosdotenvopenai
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:
💡 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!
