Skip to content

ujwal373/readmegenie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

20 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ§žβ€β™‚οΈ ReadMeGenie β€” AI-Powered README Generator

ReadMeGenie is an AI documentation companion for developers who want elegant, complete, and visually engaging README.md files without the hassle.
Just enter your project details β€” or paste a GitHub repo link β€” and let the Genie craft a perfect README with badges, visuals, and even direct GitHub publishing.


✨ Features

  • 🧠 AI-Generated READMEs β€” Uses OpenAI GPT models to create professional, Markdown-formatted documentation.
  • πŸ”— GitHub Auto-Analyzer β€” Fetches repo details, files, and languages directly from GitHub.
  • 🏷️ Badge & Chart Generator β€” Adds GitHub stars, forks, issues, and language charts using Shields.io and Matplotlib.
  • ✍️ Smart Editor Mode β€” Allows selective AI rewriting of README sections (improve tone, shorten, add emojis, etc.).
  • πŸ“€ GitHub Commit Agent β€” Pushes the generated README to your repository with a new branch and commit.
  • 🧩 Modular Multi-Agent Design β€” Each feature (generation, analysis, badges, editing, commit) runs as an independent agent.
  • 🌈 Beautiful Streamlit UI β€” Intuitive sidebar controls, live preview, and markdown download.

πŸ—οΈ Architecture Overview

User Input / GitHub URL
        ↓
🧠 GitHub Analyzer Agent
        ↓
🏷️ Badge & Chart Agent
        ↓
✨ Generator Agent (OpenAI)
        ↓
✍️ Editor Agent (optional)
        ↓
πŸ“€ Commit Agent (GitHub API)
        ↓
README.md

πŸš€ Getting Started

1️⃣ Clone the repository

git clone https://github.com/ujwalmojidra/readmegenie.git
cd readmegenie

2️⃣ Install dependencies

pip install -r requirements.txt

3️⃣ Set up environment variables

Create a .env file in the project root:

OPENAI_API_KEY=your_openai_api_key_here

πŸ’‘ When deploying on Streamlit Cloud, add your key to Secrets instead of a .env file.

4️⃣ Run the app

streamlit run app.py

5️⃣ (Optional) Deploy on Streamlit Cloud

  • Push this repo to GitHub.
  • Create a new app on Streamlit Cloud.
  • Set secrets and environment variables under Settings β†’ Secrets.

βš™οΈ Folder Structure

ReadMeGenie/
β”œβ”€β”€ app.py                        # Main Streamlit app (orchestrator)
β”œβ”€β”€ agents/
β”‚   β”œβ”€β”€ generator.py              # README generation logic (OpenAI)
β”‚   β”œβ”€β”€ github_analyzer.py        # GitHub API analyzer
β”‚   β”œβ”€β”€ badge_agent.py            # Badge and chart generator
β”‚   β”œβ”€β”€ commit_agent.py           # GitHub commit handler
β”‚   └── utils.py                  # Stack detection helpers
β”œβ”€β”€ assets/
β”‚   β”œβ”€β”€ logo.png                  # App logo
β”‚   └── style.css                 # Custom UI styles
β”œβ”€β”€ prompts/
β”‚   └── styles.yaml               # Predefined tone/style templates
β”œβ”€β”€ requirements.txt
└── .env (local)

🧩 Agents Overview

Agent Description
🧠 Generator Agent Creates full README from title, description, and run instructions using OpenAI.
πŸ” GitHub Analyzer Extracts repo info, languages, and content for better context.
🏷️ Badge Agent Generates live Shields.io badges and Matplotlib language pie charts.
✍️ Editor Agent Rewrites specific sections of the README on demand.
πŸ“€ Commit Agent Pushes the generated README.md to GitHub via API.

πŸͺͺ Example Output

# MyApp πŸš€

A Python-based FastAPI application that analyzes DeFi wallet risk on Solana.
...

![GitHub stars](https://img.shields.io/github/stars/ujwalmojidra/myapp?style=social)
![GitHub forks](https://img.shields.io/github/forks/ujwalmojidra/myapp?style=social)
![GitHub last commit](https://img.shields.io/github/last-commit/ujwalmojidra/myapp)

πŸ’‘ Tech Stack

  • Frontend: Streamlit
  • Backend: OpenAI GPT-4o-mini
  • Data Visualization: Matplotlib
  • Version Control: GitHub REST API v3
  • Environment: Python 3.10+

🧰 Requirements

streamlit
openai
requests
python-dotenv
matplotlib
PyYAML

πŸ“€ Commit to GitHub (optional)

Paste your Personal Access Token with repo permissions in the app sidebar and click Commit to GitHub β€”
ReadMeGenie will create a new branch (readmegenie-update) and push your freshly generated README.


❀️ Credits

Built by Ujwal Mojidra
Supercharged with OpenAI GPT + Streamlit


🧭 License

This project is licensed under the MIT License β€” feel free to use, modify, and share.

About

ReadMeGenie πŸ§žβ€β™‚οΈ is an AI-powered documentation assistant built with Streamlit and OpenAI APIs. It helps developers generate beautiful, professional README.md files by simply providing their project details or a GitHub link.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors