Skip to main content

AI-powered README generator for any project

Project description

🤖 readmeai

AI-powered README generator for any project.

PyPI version GitHub stars License: MIT

readmeai analyzes your project directory and generates a professional README.md using AI. No more staring at a blank page – just run readmeai and get a complete, well-structured README in seconds.


✨ Features

  • 🔍 Scans project structure and key configuration files
  • 🧠 Uses AI to write a comprehensive README tailored to your project
  • 📦 Supports Python, Node.js, Rust, Go, and more
  • 🎨 Includes badges, install instructions, usage examples, and contributing guide
  • ✍️ Interactive mode: preview before saving
  • 🔌 Pluggable AI providers: OpenCode, OpenAI, Ollama
  • 🐍 Zero heavy dependencies – only requests

🚀 Quickstart

1. Install

pip install readmeai-py

2. Configure your AI provider (default: OpenCode)

export OPENCODE_API_URL="http://localhost:8080/v1/chat/completions"
export OPENCODE_API_KEY="your-key-here"

For OpenAI:

export OPENAI_API_KEY="sk-..."

For Ollama:

export OLLAMA_API_URL="http://localhost:11434/api/generate"

3. Generate a README

cd your-project
readmeai

Or specify a directory and use interactive mode:

readmeai /path/to/project --interactive

📦 Usage

readmeai [directory] [options]
Option Description
directory Project directory (default: current)
-o, --output Output file path (default: README.md in project root)
-i, --interactive Preview and confirm before writing
--provider AI provider: opencode (default), openai, ollama
--model Model name
--api-url Override API base URL
--api-key Override API key
--version Show version

🔧 Supported AI Providers

Provider Default Model Env Vars
OpenCode opencode OPENCODE_API_URL, OPENCODE_API_KEY
OpenAI gpt-4o-mini OPENAI_API_KEY
Ollama llama3 OLLAMA_API_URL

🤖 How It Works

  1. Recursively scans the project directory (ignoring common junk folders)
  2. Collects the file tree and reads important files (e.g., pyproject.toml, package.json)
  3. Constructs a summary and sends it to the AI with a specialized prompt
  4. The AI returns the full README content, which is written to disk
  5. Optionally shows a preview for approval

🛠 Development

Clone and install in editable mode:

git clone https://github.com/erico964-blip/readmeai
cd readmeai
pip install -e .

📜 License

MIT © erico964-blip

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

readmeai_py-0.1.0.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

readmeai_py-0.1.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file readmeai_py-0.1.0.tar.gz.

File metadata

  • Download URL: readmeai_py-0.1.0.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for readmeai_py-0.1.0.tar.gz
Algorithm Hash digest
SHA256 627fb9c71fcce74b83dcf9fcd742b3c74e55c9a21088e019409a95a50cd4c8a6
MD5 ded1bfc2f7131e8bd27344c6e8d33c56
BLAKE2b-256 aa8a478e63efc1ad7fe828f1ad27e3c6fcb4cb8cb46982266a92d285296ecc2b

See more details on using hashes here.

File details

Details for the file readmeai_py-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: readmeai_py-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for readmeai_py-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e81baa1cf57bc852b802a46ff0fe8f7b1a9b000675d6893b5af4528aa9dec2ac
MD5 717586dc598a8535085af5ec612797fe
BLAKE2b-256 0fe71c518d5cc173a3e708ad05a2c3fb87a1928ddfa4aa617826a5420808d0bc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page