LiveDocGen: Live-Reloading C++ Documentation Server
A bespoke C++ documentation generator and local HTTP server utilizing Boost.Beast. It parses Doxygen-style header comments, features a live-reloading web interface via timestamp hashing, and automatically exports to both HTML and Markdown.
Performance & metrics
- Near-instantaneous parsing of large codebases by skipping non-signed files explicitly at the I/O boundary
- Minimal heap fragmentation and memory footprint achieved through localized string streaming and
std::stringstreambuffer reuse - Single-threaded asynchronous I/O ensures absolute zero blocking during HTTP payload transmissions
Why I built it
While Doxygen and Sphinx are very powerful, they are often bloated and slow for rapid, localized API documentation during active development. I engineered this lightweight, hyper-focused tool to drop into any C++ project and instantly visualize API contracts. By enforcing a specific file signature, the parser intelligently ignores large third-party dependency trees. The built-in live-reloading HTTP server allows me to write code, hit save, and instantly see the formatted documentation on a secondary monitor without manually triggering any build scripts.
Architecture & decisions
Written entirely in modern C++, the tool utilizes std::filesystem for recursive directory traversal and the Boost.Beast/Boost.Asio networking stack to stand up a lightweight local server. The parsing engine uses a stateful text tokenizer to extract specific tags (\brief, \param, \warning) and programmatically infer the corresponding C++ signatures (functions, macros, typedefs, variables) directly from the abstract syntax tree. The server operates on a single-threaded asynchronous context (net::io_context{1}). A long-polling /version endpoint calculates file-modification hashes to trigger automated client-side UI refreshes via dynamically injected JavaScript.
Key features
- Zero-configuration local HTTP server utilizing Boost.Beast and Boost.Asio
- Targeted header parsing using a custom file signature to aggressively bypass third-party library inclusion
- Automated live-reloading web interface via JS polling and OS-level timestamp hashing
- Simultaneous static artifact generation directly to the filesystem (
index.htmlandindex.md) - In-line C++ signature extraction for functions, macros, and typedefs without requiring heavy compiler frontends
Technical review
This tool bridges the gap between raw source code and readable documentation during rapid development cycles. Instead of wrestling with complex XML or Doxyfiles, I can simply tag a header, write standard block comments, and let the Boost-powered server render a cleanly styled, live-updating HTML view. It is a direct testament to my philosophy of writing highly specialized, low-dependency internal tooling to aggressively accelerate my own C++ systems engineering workflow.
Related projects
Open Me Daily (Telemetry Trap)
A background telemetry application that monitors its own execution frequency and penalizes user inactivity by artificially bloating disk space.
- C++
- SQLite
Networking & Protocols
Major project
Cyberia & Wired Protocol
A secure, decentralized operating system and network layer built on Wired — a custom, high-performance communication protocol. Instead of HTTP, it uses a mutually encrypted TCP handshake and AES-encrypted WebSocket payloads for strong data confidentiality.
- Rust
- C++
- Tauri
- +6
OCR PNG to Text Converter
An automated optical character recognition tool that bulk-extracts text from PNG images and converts them into editable documents, bypassing manual data entry.
- Python
- Tkinter
- Tesseract OCR
- +2
Need something similar?
I can build a system like this for you, too.
Describe your project in a few sentences, and we'll work out the right approach and an estimated scope together.