AI-powered tool to generate useful documentation directly from your codebase.
Streamline your workflow and focus on shipping β not writing endless docs.
-
π Function-level documentation
Generate concise, readable explanations for your code functions and methods. -
π API endpoint docs
Parse your backend routes and generate developer-friendly API documentation. -
ποΈ Database schema docs
Understand and document your database models in plain English. -
π Project README generation (New)
Auto-generate a clean README with tech stack, setup steps, and project description. -
π Architecture diagrams (New)
Get visual insights into your code structure or API flow.
Writing docs is time-consuming and often gets skipped.
Code2Docs uses AI to generate clean, helpful documentation from your existing code β saving you hours while improving team collaboration and project maintainability.
Built for:
- Solo devs & indie hackers π§βπ»
- Teams with growing codebases π
- Anyone who hates writing README files π
π°οΈ What We Previously Built
Before pivoting to the CLI, Code2Docs was originally a web-based SaaS platform. It offered similar core features with a visual interface for generating and managing documentation.
π₯ Demo of the legacy web version:
Watch on YouTube
ποΈ Legacy repository (archived):
github.com/xKarinSan/Code2Docs-legacy
We learned a lot from the initial version β especially around dev workflows and where automation adds real value β which led to the current CLI pivot.
- π¬ Join our Discord Channel
- π View the CLI README and Setup Guide
- π Visit our Landing Page
- π Follow us on LinkedIn
We welcome contributions from developers of all levels! Whether itβs fixing a bug, adding a feature, or improving documentation β every bit helps.
π Report bugs or issues Found something broken? Please open an issue to let us know.
π‘ Suggest new features or improvements Got an idea to make Code2Docs better? We'd love to hear it β open a feature request!
π Submit code contributions From small tweaks to new capabilities, pull requests are always welcome.
π§Ό Refactor or clean up code Notice repeated logic, outdated patterns, or unnecessary complexity? Help us:
- Improve readability and maintainability
- Break large functions into smaller, testable pieces
- Organize code into clearer module structures
- Remove unused imports or dead code
π Improve existing documentation Good docs are everything! You can contribute by:
- Clarifying CLI usage examples
- Improving descriptions of features
- Fixing typos, formatting, or broken links
- Adding FAQs or setup troubleshooting tips
π§ͺ Write or enhance tests Help increase reliability and prevent regressions by:
- Adding tests for uncovered features
- Improving test coverage for edge cases
- Refactoring flaky or redundant tests
- Suggesting improvements to test structure or tooling
-
Fork the repository Click the Fork button on GitHub and clone your fork locally:
git clone https://github.com/your-username/Code2Docs.git
-
Install dependencies Follow the setup guide in the CLI README.
-
Create a new branch Use a descriptive name:
git checkout -b feature/add-api-doc-support
-
Make your changes and commit:
git commit -m "Commit message" -
Push and create a PR Push your branch and open a pull request on the main repo:
git push origin feature/add-api-doc-support
- Open an issue for any bug reports or feature requests β even before submitting a PR.
- Keep commits focused and descriptive.
- Follow existing code style and structure.
- Link related issues in your PR description if applicable.
- Be kind and respectful β weβre all here to learn and build together!
π οΈ NOTE: This repository is under construction!
