An open-source developer tool that automatically generates high-quality READMEs, CONTRIBUTING guides, and API documentation β so your code finally gets the docs it deserves.
About β’ Setup β’ Architecture β’ Structure β’ Tech Stack β’ Roadmap β’ Contributing β’ License
"Because great code deserves great documentation."
Every developer knows the feeling β you've just shipped an amazing project, but the documentation is either missing, outdated, or consists of three bullet points and a TODO comment. AutoDoc.ai was built to solve exactly this problem.
AutoDoc.ai is an intelligent, open-source documentation engine that deeply analyzes your repository structure and source code to generate comprehensive, structured, and production-ready documentation β automatically. It respects developer autonomy by keeping humans firmly in control through live previews and manual editing, while the AI handles the heavy lifting.
Whether you're preparing a project for an open-source hackathon, a job portfolio, or a collaborative team environment, AutoDoc.ai ensures your repository makes the best possible first impression.
| Feature | Description |
|---|---|
| π Deep Repo Analysis | Scans repository structure, configuration files, and code patterns for comprehensive understanding |
| β‘ Instant Generation | Creates README.md, CONTRIBUTING.md, and API docs in seconds, not hours |
| π API Documentation | Dedicated support for REST API endpoint documentation generation |
| ποΈ Live Preview | React-based real-time markdown preview with inline manual editing |
| π€ Export Ready | One-click export producing clean, production-ready documentation files |
| π€ AI-Powered Accuracy | Multi-provider AI support including OpenAI, Gemini, Anthropic, NVIDIA, and compatible providers |
| π§© Modular Architecture | Three-layer design enabling easy extension and customization |
| π 100% Open Source | MIT Licensed β free for personal, academic, and commercial use |
Important
Ensure you have Node.js v18 or later installed before getting started.
git clone https://github.com/abhro05/AutoDoc.ai.git
cd AutoDoc.ainpm installnpm run devThe application will be available at:
http://localhost:3000
npm run buildnpm run previewTip
If you encounter dependency-related issues, delete node_modules and package-lock.json, then run npm install again.
AutoDoc.ai follows a full-stack architecture consisting of a React + Vite frontend, a Node.js + Express backend, Supabase-based authentication, and a configurable multi-provider AI integration layer.
The frontend provides the user interface and documentation workflow, while the backend handles authentication, repository analysis, provider orchestration, and documentation generation.
βββββββββββββββββββββββ
β User Browser β
ββββββββββββ¬βββββββββββ
β
βΌ
βββββββββββββββββββββββ
β React + Vite Client β
ββββββββββββ¬βββββββββββ
β
βΌ
βββββββββββββββββββββββ
β Node.js + Express β
β Backend β
ββββββββββββ¬βββββββββββ
β
βββββββββββΌβββββββββββββββ
βΌ βΌ βΌ
Supabase GitHub API LLM Providers
βββββββββββββ
β OpenAI β
β Gemini β
β Anthropic β
β NVIDIA β
βββββββββββββ
graph LR
A[π Home Page] --> B[β‘ Generator]
B --> C[π Generated Output]
A --> D[π₯ Contributors]
style A fill:#0A192F,stroke:#38BDF8,color:#fff
style B fill:#064E3B,stroke:#34D399,color:#fff
style C fill:#1E1B4B,stroke:#818CF8,color:#fff
style D fill:#7C2D12,stroke:#FB923C,color:#fff
| Layer | Technology | Responsibility |
|---|---|---|
| Frontend | React 18 + Vite | User interface, routing, and rendering |
| Backend | Node.js + Express | API endpoints, authentication, and documentation generation |
| Authentication | Supabase | Email/password login, OAuth, session management |
| AI Provider Layer | OpenAI, Gemini, Anthropic, NVIDIA, Custom Providers | Documentation generation and LLM orchestration |
| External Services | GitHub API | Repository analysis and contributor information |
| State Management | React Context API | Authentication and theme state |
| Styling | CSS3 + Theme System | Responsive UI and dark/light themes |
| Build System | Vite | Development server and production builds |
Note
The architecture is designed to support multiple AI providers, scalable backend services, and future feature expansion while maintaining clear separation between frontend, backend, authentication, and provider integrations.
AutoDoc.ai/
β
βββ .github/
β βββ ISSUE_TEMPLATE/
β β βββ βοΈ-feature-request.md
β β βββ π-bug-report.md
β β βββ π¬-general---blank-issue.md
β β βββ π-documentation-update.md
β β
β βββ workflows/
β β βββ issue-greeter.yml
β β
β βββ pull_request_template.md
β
βββ .husky/ # Git hooks
β
βββ api/ # Express backend
β βββ models/
β β βββ User.js
β β
β βββ routes/
β β βββ auth.js
β β
β βββ utils/
β β βββ authValidation.js
β β βββ supabaseAdmin.js
β β
β βββ auth.test.js
β βββ generate-readme.js # Documentation generation logic
β βββ generate-readme.test.js
β
βββ src/ # React + Vite frontend
β β
β βββ components/
β β βββ Footer.jsx
β β βββ Footer.css
β β βββ Navbar.jsx
β β βββ Navbar.css
β β βββ ProtectedRoute.jsx
β β βββ ProtectedRoute.css
β β βββ Spinner.jsx
β β βββ Spinner.css
β β βββ ThemeToggle.jsx
β β βββ ThemeToggle.css
β β
β βββ context/
β β βββ AuthContext.jsx
β β βββ ThemeContext.jsx
β β
β βββ pages/
β β βββ Home.jsx
β β βββ Generator.jsx
β β βββ Contributors.jsx
β β βββ Login.jsx
β β βββ Signup.jsx
β β βββ ForgotPassword.jsx
β β βββ ResetPassword.jsx
β β βββ AuthSuccess.jsx
β β βββ NotFound.jsx
β β
β βββ styles/
β β βββ Home.css
β β βββ Generator.css
β β βββ Contributors.css
β β βββ Login.css
β β βββ Signup.css
β β βββ NotFound.css
β β βββ theme.css
β β
β βββ supabase/
β β βββ client.js
β β
β βββ utils/
β β βββ authErrors.js
β β βββ authErrors.test.js
β β βββ performanceOptimization.js
β β βββ routePreloader.js
β β
β βββ App.jsx
β βββ main.jsx
β
βββ .env.example # Environment template
βββ .gitignore
βββ autodoc.png
βββ CODE_OF_CONDUCT.md
βββ commitlint.config.js
βββ CONTRIBUTING.md
βββ index.html
βββ LICENSE
βββ package.json
βββ package-lock.json
βββ README.md
βββ THEME_SYSTEM.md
βββ vite.config.js
βββ server.js # Express server entry point
AutoDoc.ai is built with a modular, scalable architecture across three specialized layers.
React: A React-based web interface for repository input and real-time previews. Languages: Built using HTML, CSS, and JavaScript for a responsive experience. Markdown Preview: Supports real-time preview and manual editing of generated content.
Node.js & Express: A robust server that orchestrates all GitHub API interactions. GitHub REST API: Deeply integrates with GitHub to parse repository files and structures.
AutoDoc.ai supports multiple LLM providers through a configurable provider abstraction layer.
Supported providers include:
- OpenAI
- Gemini
- Anthropic
- NVIDIA
- Custom OpenAI-compatible providers
The active provider is selected through environment configuration using the LLM_PROVIDER setting.
AutoDoc.ai is continuously evolving to provide a better documentation experience for developers and open-source contributors.
graph TD
Root["π AutoDoc.ai Roadmap"]
Root --> P1["π¦ Foundation"]
P1 --> P1_1["β
Modern React + Vite Frontend"]
P1 --> P1_2["β
Documentation Generator Interface"]
P1 --> P1_3["β
Contributors Showcase"]
Root --> P2["β‘ Core Features"]
P2 --> P2_1["π Enhanced Documentation Generation"]
P2 --> P2_2["π Export Improvements"]
P2 --> P2_3["π¨ Improved User Experience"]
Root --> P3["π€ AI Integration"]
P3 --> P3_1["π‘ Intelligent Documentation Suggestions"]
P3 --> P3_2["π README Generation Assistance"]
P3 --> P3_3["π Repository Analysis Features"]
Root --> P4["π Open Source Growth"]
P4 --> P4_1["π Better Contributor Resources"]
P4 --> P4_2["π§ͺ Expanded Testing"]
P4 --> P4_3["π Deployment & Automation"]
Foundation ββββββββββββββββββββ Complete β
Core Features ββββββββββββββββββββ In Progress π§
AI Integration ββββββββββββββββββββ Planned π
Open Source Growth ββββββββββββββββββββ Future π‘
- Improve UI responsiveness across devices
- Enhance accessibility and usability
- Refine navigation and page layouts
- Improve generated documentation quality
- Add additional export options
- Expand customization capabilities
- Intelligent documentation assistance
- Repository structure analysis
- Context-aware content suggestions
- Increase test coverage
- Improve contributor onboarding
- Add automated workflows and CI/CD support
- Expand community-driven contributions
AutoDoc.ai thrives because of contributors like you. Whether you're fixing a typo, building a feature, or improving AI prompts β every contribution matters and is recognized.
| Program | Event | Timeline | Status |
|---|---|---|---|
| Social Summer of Code | Summer 2026 | π’ Active |
Note
AutoDoc.ai is an SSOC-selected project. Contributing during the program window earns you official SSOC points, certificates, and recognition on the leaderboard. All accepted PRs during the event will be labeled ssoc.
We're currently in the Open Source Readiness phase and actively welcoming contributors of all skill levels.
- Fix typos, grammar, or formatting in documentation
- Add missing code comments or docstrings
- Improve error messages for better developer experience
- Write or improve existing tests
- Implement documentation quality scoring
- Add support for additional AI providers (OpenAI, Cohere, etc.)
- Improve GitHub API rate-limit handling and caching
- Build new export formats (PDF, HTML, Notion)
- Design the GitHub App integration (Phase 3)
- Architect the plugin system (Phase 4)
- Implement PR-based documentation suggestion workflows
- Build the community prompt template marketplace
# 1. Fork the repository on GitHub
# 2. Clone your fork
git clone https://github.com/YOUR_USERNAME/AutoDoc.ai.git
cd AutoDoc.ai
# 3. Create a descriptive feature branch
git checkout -b feat/your-feature-name
# or: fix/bug-description | docs/update-section | test/add-coverage
# 4. Make your changes with clear, atomic commits
git commit -m "feat: add documentation quality scoring UI"
# 5. Push and open a Pull Request
git push origin feat/your-feature-nameBefore submitting your PR, ensure:
- Code follows the existing style conventions
- New features include appropriate tests
- Documentation is updated to reflect changes
- The PR description clearly explains what and why
- All existing tests pass locally
- No sensitive data (API keys, tokens) is committed
Tip
Read the full CONTRIBUTING.md for detailed environment setup, coding standards, commit message conventions, and pull request guidelines.
All contributors are featured on our Contributors page and in the project README. Significant contributors will be recognized with special badges and invited to join the maintainer team.
This project requires an LLM provider to generate repository documentation. Since API keys cannot be included in a public repository, contributors must configure their own provider before running the project locally.
The documentation generator depends on external AI models to analyze repositories and generate documentation. Without a valid LLM provider and API key, the application will not be able to process repositories correctly.
To make local development easier, contributors can use OpenRouter, which provides access to multiple reasoning models through a single API.
- Create a free account on OpenRouter.
- Generate an API key from the dashboard.
- Copy
.env.exampleto.env. - Configure the following environment variables:
LLM_PROVIDER=openai
OPENAI_API_KEY=your_openrouter_api_key
OPENAI_BASE_URL=https://openrouter.ai/api/v1
OPENAI_MODEL=openai/gpt-4o-miniYou may use any supported reasoning model available through OpenRouter for local development and testing.
| Issue | Solution |
|---|---|
Set LLM_PROVIDER to openai... |
Verify that LLM_PROVIDER is set correctly in the .env file. |
Unexpected end of JSON input |
Check your API key and ensure the provider is configured properly. |
| Documentation generation fails | Verify that the API key is valid and the development server has been restarted after updating .env. |
Before running the project, ensure that:
.envhas been created from.env.example- A valid OpenRouter API key has been added
LLM_PROVIDERis configured correctly- Dependencies have been installed
- The development server has been restarted after configuration changes
This project is licensed under the MIT License.
The MIT License ensures AutoDoc.ai remains forever free and open β use it in your academic projects, hackathons, startup products, or enterprise workflows without restriction. We only ask that you keep the license notice intact and consider contributing improvements back to the community.
Copyright (c) 2026 Abhro
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction...
βοΈ Abhro Full-Stack Developer Β· Data Science Specialization
Building tools that make developers' lives easier, one commit at a time.
Made with β€οΈ by the AutoDoc.ai community
"Because great code deserves great documentation."
Β© 2026 AutoDoc.ai Β· MIT Licensed Β· Open Source Forever