ReadmeGenAI is an automated documentation engine that transforms GitHub repository data into professional, high-quality README.md files. By analyzing your project's codebase, dependencies, and metadata via the GitHub API, it uses Large Language Models (LLMs) to draft comprehensive documentation in seconds.
- About the Project
- Key Features
- Tech Stack
- Getting Started
- Architecture Flow
- Roadmap
- Contributing
- License
Writing documentation is often the most neglected part of the development cycle. ReadmeGenAI bridges the gap between "code complete" and "documentation complete."
Unlike generic AI prompts, this tool specifically scrapes your package.json, language distribution, and repository description to provide the AI with context-aware data, ensuring the generated README is accurate and relevant to your actual tech stack.
- Repo-to-Readme: Just paste a URL; the engine handles the rest.
- Contextual Intelligence: Automatically detects frameworks, libraries, and project intent.
- Live Preview: Real-time Markdown rendering using
react-markdown. - One-Click Copy: Seamlessly move your new documentation into your local editor.
- Developer-Centric: Built with Type Safety and Serverless architecture.
| Layer | Technology |
|---|---|
| Frontend | Next.js 15, TypeScript |
| Styling | Tailwind CSS |
| Backend | Next.js API Routes (Node.js) |
| AI Intelligence | OpenAI GPT-3.5 / GPT-4 |
| Data Source | GitHub REST API |
| Deployment | Vercel |
- A GitHub Personal Access Token (for higher rate limits).
- An OpenAI API Key.
-
Clone the Repo
git clone [https://github.com/your-username/readmegenai.git](https://github.com/your-username/readmegenai.git) cd readmegenai -
Install Dependencies
npm install
-
Environment Variables Create a
.env.localfile in the root directory:GITHUB_TOKEN=your_github_token OPENAI_API_KEY=your_openai_key
-
Run Development Server
npm run dev
The application follows a streamlined data pipeline to ensure accuracy:
- Ingestion: User submits a GitHub URL.
- Parsing:
parseRepoUrl.tsextracts the owner and repository name. - Data Fetching:
/api/fetchRepoqueries GitHub for metadata andpackage.jsoncontent. - AI Processing:
/api/generateReadmefeeds a structured prompt into the AI engine. - Rendering: The frontend receives the Markdown string and renders it via
MarkdownPreview.tsx.
- Phase 1: MVP with URL input and Markdown copy.
- Phase 2: GitHub OAuth integration for one-click "Commit to Repo."
- Phase 3: Multiple visual templates (Minimalist, Corporate, Creative).
- Phase 4: Support for local LLMs (GPT4All / Ollama) for privacy-conscious users.
Contributions are what make the open-source community such an amazing place to learn, inspire, and create.
- Fork the Project.
- Create your Feature Branch (
git checkout -b feature/AmazingFeature). - Commit your Changes (
git commit -m 'Add some AmazingFeature'). - Push to the Branch (
git push origin feature/AmazingFeature). - Open a Pull Request.
Distributed under the MIT License. See LICENSE for more information.
Built with ❤️ by the ReadmeGenAI Team