Open source — star us on GitHub

Documentation hell,
solved.

Docgen auto-generates markdown documentation for your entire project. Write a Docfile. Run one command. Done.

View on GitHub Get early access to DocHub →
$ curl -fsSL https://raw.githubusercontent.com/alonsovm44/docgen/master/installer.sh | bash
How it works

Three steps. Zero config.

No YAML hell. No build plugins. Just a Docfile and a CLI command.

01

Create a Docfile

Tell Docgen which files to track. Directories, individual files, or glob patterns.

Track:
  src/
  lib/utils.cpp

Ignore:
  src/vendor/

Style:
  -be concise
  -no emojis
02

Run docgen update

Docgen analyzes your code, resolves dependencies, and generates markdown docs with AI.

$ docgen update
[1/4] Hashing files...
[2/4] Resolving deps...
[3/4] Generating docs...
[4/4] Writing output...
Done. 12 files documented
03

Ship your docs

Clean markdown files alongside your code. Commit them, host them, share them.

docs/
  src/
    main.cpp.md
    parser.cpp.md
    utils.cpp.md
  SUMMARY.md
# Checked into git
See it in action

Your Docfile controls everything

Track entire directories or specific files. Set style rules. Docgen handles the rest.

Docfile
1Track: 2 main.cpp 3 src/ 4 lib/parser.cpp 5 6Ignore: 7 src/generated/ 8 src/vendor/ 9 10Style: 11 -be professional 12 -be concise 13 -dont use emojis
Terminal
$ docgen status Modified: main.cpp (hash changed) Modified: src/parser.cpp Unchanged: 4 files $ docgen update main.cpp docs/main.cpp.md src/parser.cpp docs/src/parser.cpp.md Skipped 4 unchanged files Done. 2 docs updated, 0.003 API credits used
Features

Built for real projects

Not a toy demo. Docgen handles production codebases with thousands of files.

Incremental builds

Content hashing means only changed files get re-documented. Saves API credits and time.

🔌

Dependency-aware (RAG)

Automatically analyzes #include and import graphs so AI has full context for each file.

🔧

Flexible backends

Ollama for local, OpenAI for cloud, or any compatible API. Your keys, your models.

📦

Zero dependencies

Single static binary. No Node, no Python, no runtime. Just download and run.

🛠

CI/CD ready

docgen validate exits non-zero if docs are stale. Perfect for pre-commit hooks.

📊

Project summaries

docgen summary generates a high-level SUMMARY.md and dependency graphs.

DocHub is next

A hosted platform for publishing, sharing, and discovering documentation repos. Like GitHub, but for docs.