Turn code into clarity. Generate accurate technical docs and AI-ready context in minutes—perfectly structured for human teams and intelligent agents.
Turn code into clarity. Generate accurate technical docs and AI-ready context in minutes—perfectly structured for human teams and intelligent agents.
High-performance AI-driven intelligent document generator (DeepWiki-like) built with Rust
Automatically generates high quality Repo-Wiki for any codebase
Litho is an AI-powered documentation generation engine that automatically analyzes your source code and generates comprehensive, professional architecture documentation in the C4 model format. No more manual documentation that falls behind code changes - Litho keeps your documentation perfectly in sync with your codebase.
Litho transforms raw code into beautifully structured documentation with context diagrams, container diagrams, component diagrams, and code-level documentation - all automatically generated from your source code.
Whether you're a developer, architect, or technical lead, Litho eliminates the burden of maintaining documentation and ensures your team always has accurate, up-to-date architectural information.
Transform your codebase into professional architecture documentation in minutes
Litho automatically transforms your messy codebase into beautiful, professional documentation
For:
❤️ Like Litho? Star it or Sponsor Me! ❤️
Thanks to the kind people
Litho solves the common problem of outdated and incomplete technical documentation by automatically generating up-to-date architecture documentation from your source code. No more manual documentation that falls behind code changes - Litho keeps your documentation in sync with your codebase.
Litho is part of a broader ecosystem of tools designed to enhance developer productivity and documentation quality. The Litho Eco ecosystem includes complementary tools that work seamlessly with Litho to provide a complete documentation workflow:
Litho Book is a high-performance markdown reader built with Rust and Axum, specifically designed to provide an elegant interface for browsing documentation generated by Litho.
Litho Book serves as the ideal companion application for consuming documentation generated by Litho. The typical workflow is:
Mermaid Fixer is a high-performance AI-driven tool that automatically detects and fixes syntax errors in Mermaid diagrams within Markdown files.
Mermaid Fixer enhances the quality of documentation generated by Litho by automatically fixing syntax errors in Mermaid diagrams. This ensures that all architectural diagrams in your documentation are valid and render correctly.
Learn more about Mermaid Fixer
Litho's architecture is designed around a four-stage processing pipeline that transforms raw code into comprehensive documentation:
…Litho begins by scanning your entire codebase to identify source files, extract metadata, and analyze project structure. This stage:
flowchart TD
A[Preprocessing Agent] --> B[Structure Extractor]
A --> C[Original Document Extractor]
A --> D[Code Analysis Agent]
A --> E[Relationship Analysis Agent]
B --> F[Project Structure]
C --> G[Original Document Materials]
D --> H[Core Code Insights]
E --> I[Code Dependencies]
F --> J[Store to Memory]
G --> J
H --> J
I --> JIn this AI-powered stage, Litho analyzes the code structure to understand the architectural intent:
flowchart TD
A[Research Orchestrator] --> B[SystemContext Researcher]
A --> C[Domain Module Detector]
A --> D[Architecture Researcher]
A --> E[Workflow Researcher]
A --> F[Key Module Insights]
B --> G[System Context Report]
C --> H[Domain Module Report]
D --> I[Architecture Analysis Report]
E --> J[Workflow Analysis Report]
F --> K[Module Deep Insights]
G --> Memory
H --> Memory
I --> Memory
J --> Memory
K --> MemoryLitho combines the analyzed information into a structured documentation format:
flowchart TD
A[Document Composer] --> B[Overview Editor]
A --> C[Architecture Editor]
A --> D[Module Insight Editor]
B --> E[Overview Document]
C --> F[Architecture Document]
D --> G[Module Documents]
E --> H[Document Tree]
F --> H
G --> H
H --> I[Disk Outlet]
I --> J[Output Directory]The final stage ensures documentation quality and completeness:
Litho features a sophisticated modular architecture designed for high performance, extensibility, and intelligent analysis. The system implements a multi-stage workflow with specialized AI agents and comprehensive caching mechanisms.
…Litho's architecture consists of several interconnected modules that work together to deliver seamless documentation generation:
The core processing flow follows a deterministic pipeline:
…cargo install deepwiki-rsgit clone https://github.com/sopaco/deepwiki-rs.gitcd deepwiki-rscargo build --releasetarget/release directory.Litho provides a simple command-line interface to generate documentation from your codebase. For more configuration parameters, refer to the CLI Options Detail.
deepwiki-rs -p ./my-project -o ./docs
# Generate documentation in the target language.
deepwiki-rs --target-language en -p ./my-project
deepwiki-rs --target-language ja -p ./my-projectThis command will:
./my-project./litho.docs directoryLitho supports several options for generating documentation:
# Generate documentation with default settings
deepwiki-rs skip cNo open issues yet, or sync has not completed.