The hard part
Producing a consistent technical document usually means someone doing the layout by hand each time. That is where quality drifts, and why the tenth document rarely looks like the first. Automating it properly means handling the parts people quietly do by hand: hierarchy, navigation, cross-references and output that stands on its own.
Markdown goes in, and a finished, self-contained HTML or PDF document comes out. The heading hierarchy and breadcrumb navigation are generated automatically, which is what keeps long technical material easy to find your way around. Because each document is self-contained, it can be shared as a single file with nothing else to host.
445,422 lines of source; used heavily enough that its own generated output reached 29.6 GB.
What the measurements mean
Only what is unusual for this project. Every sentence names the field it came from; nothing here is asserted that cannot be checked against the data.
- At 445,632 authored lines it is one of the larger things here, roughly 53x the median project in this estate. authored_linesfrom authored_lines
- The 1,162 commits below come from MD_to_PDF_HTML_DOC/, not from this folder; the repository sits one directory down.see the evidencefrom git.found_in, git.commits
- It declares ports 7860, 8000, 8002, 8489, so it runs as a service rather than a script.from assets.routes, assets.ports
- The code defines 4,222 functions, 1,730 methods and 445 classes.see the evidencefrom pythonAst.counts, pythonAst.coverage
How it works
Producing a consistent technical document normally means someone redoing the layout by hand each time, and that is exactly where quality drifts. D-Docs automates the parts people quietly do manually. Heading hierarchy becomes navigable structure, cross-references resolve, and diagrams become zoomable. The output is a single self-contained file that can be handed to someone without assets going missing. Four content flows (linear, chapter, card and progressive) let one source render either as a reference document or as a walkthrough. It is used heavily across this estate: its own generated output reached 29.6 GB, which is why the scanner that inventories the estate carries explicit rules to keep that output from being counted as source.
What it is built from
Each bar is one of this project's own modules, sized by how many times the rest of the project imports it. The counts are measured, not estimated, and the module at the top is the one the rest of the project leans on most.
What kind of engineering this is
Six signals counted from the source: files that run models locally, that act without being asked each time, that check their own output, that survive failure, that touch parsers and protocols, and that were measured then improved. Every axis carries its file count.
What it is written in
Share of code bytes. Vendored bundles and generated output are set aside before this is computed, which is why it differs from a simple file count.
What stands out
- One command takes Markdown to a shareable HTML site or PDF
- Heading hierarchy, breadcrumbs, anchors and zoomable SVG diagrams are generated automatically
- Four content flows can be rendered from a single source document
- The output is self-contained, with no external assets to lose in transit
Grade
Every check names the field it measured. Checks that cannot apply are excluded, never counted as failures.
- provenance71.4%
- documentation87.5%
- runnability100.0%
- maintenance100.0%
- integrity80.0%
Not met
- committed 7 uncommitted file(s), untouched 98 days; last commit 18 days ago
cd the project folder && git status - agent_doc none
atlas agentdocs --apply - unresolved_flags 4 open flag(s)
atlas triage
Architecture
Directories carrying real modules, largest first.
MD_to_PDF_HTML_DOC90 modules
Data model
Typed structures and tables found in the source.
- ProgressiveFlowConfig
- CardFlowConfig
- ChapterFlowConfig
- LinearFlowConfig
- ContentFlow
- ExportPackage
- FormattingOptions
- RenderingLevelConfig
- LayoutStyle
- HeroConfig
- TocConfig
- ContentConfig
Vulnerable dependencies
16 declared dependencies match a published advisory. Checked offline against the OSV database; only pinned versions can be checked, so anything unpinned here is unknown rather than clean.
- Act now.
anyio4.13.0→ 4.14.2GHSA-5p39-cfhj-2xmp, GHSA-82r6-8w77-94w6, PYSEC-2026-4024 - Act now.
filelock3.29.0→ 4.2.1GHSA-567q-5qvw-pf92, GHSA-69hj-f68j-2879, GHSA-8mx5-7m5m-r77g - Act now.
fsspec2026.4.0→ 2026.6.0GHSA-27vj-qcqg-25rc, PYSEC-2026-4217 - Act now.
lxml6.0.2→ 6.1.0GHSA-vfmq-68hx-4jfw, PYSEC-2026-87 - Act now.
pillow12.3.0→ 13.0.0GHSA-22hg-r758-rrw9, GHSA-24rc-8hj2-v98c, GHSA-254f-3936-288h - Act now.
pypdf6.21.2→ 6.21.3GHSA-42gh-23hr-vphw, GHSA-4vqv-7265-gm2w, GHSA-5849-834g-hvw5 - Act now.
setuptools63.2.0→ 78.1.1GHSA-5rjg-fvgr-3xxf, GHSA-cx63-2mw6-8hw5, GHSA-h35f-9h28-mq5c - Act now.
torch2.5.1+cu121→ 2.6.0GHSA-3749-ghw9-m3mg, GHSA-53q9-r3pm-6pq6, GHSA-63cw-57p8-fm3p - Act now.
torch2.5.1+cu121→ 2.6.0GHSA-3749-ghw9-m3mg, GHSA-53q9-r3pm-6pq6, GHSA-63cw-57p8-fm3p - Act now.
urllib32.6.3→ 2.8.0GHSA-8988-9cw3-xx77, GHSA-gh4c-6fx4-qh6g, GHSA-mf9v-mfxr-j63j - Should fix.
accelerate1.14.0no fix publishedGHSA-4j2p-28q2-5m79, PYSEC-2026-3804 - Should fix.
accelerate1.14.0no fix publishedGHSA-4j2p-28q2-5m79, PYSEC-2026-3804 - Should fix.
idna3.13→ 3.15GHSA-65pc-fj4g-8rjx, PYSEC-2026-215 - Should fix.
pip26.1.2→ 26.2.0GHSA-qwm4-qh6w-59xr, PYSEC-2026-3721 - Decide.
pygments2.19.2→ 2.20.0GHSA-5239-wwwm-4pmq, PYSEC-2026-2987 - Should fix.
pypdf23.0.1no fix publishedGHSA-4vvm-4w3v-6mr8, PYSEC-2026-1835
Vocabulary
Parsed 408 of 408 Python file(s). Counts are exact; the names below are a sample.
Classes
HistoryEntryMD_to_PDF_HTML_DOC/main.py:87to_dict, from_dictTokenBudgetMD_to_PDF_HTML_DOC/main.py:272available_for_chunkChunkMD_to_PDF_HTML_DOC/main.py:290HeadingStateMD_to_PDF_HTML_DOC/main.py:302__post_init__, to_dict, from_dictVisualPatternStateMD_to_PDF_HTML_DOC/main.py:329__post_init__, add_chart_type, add_code_language, add_callout_type, to_dict, from_dictOverlapContextMD_to_PDF_HTML_DOC/main.py:378__post_init__, to_markdown, to_dict, from_dictCarryForwardStateMD_to_PDF_HTML_DOC/main.py:411__post_init__, to_prompt_text, update_from_response, _extract_heading_state, _extract_visuChunkingSessionMD_to_PDF_HTML_DOC/main.py:715save, loadChunkedDocumentProcessorMD_to_PDF_HTML_DOC/main.py:750__init__, plan_chunks, _generate_document_outline, _create_chunk_plan, _get_heading_level,ClipboardChunkGeneratorMD_to_PDF_HTML_DOC/main.py:1128__init__, get_chunk_count, get_total_tokens, get_chunk_prompt, get_assembly_guide, get_chuChunkedCopyDialogMD_to_PDF_HTML_DOC/main.py:1241__init__, setup_ui, _get_context_tokens, _on_context_changed, _analyze_document, _on_chunkStreamingLMWorkerMD_to_PDF_HTML_DOC/main.py:1593__init__, cancel, run, _fallback_non_streamingChunkWorkerMD_to_PDF_HTML_DOC/main.py:1731__init__, cancel, run, _send_request, _assemble_documentSeamIssueMD_to_PDF_HTML_DOC/main.py:1955ChunkAssemblerMD_to_PDF_HTML_DOC/main.py:1963__init__, assemble, _remove_seam_duplicates_smart, _remove_duplicate_paragraph_start, _remHeadingAnalyzerMD_to_PDF_HTML_DOC/main.py:2269__init__, run, _analyze_docx, _analyze_markdownPasteMarkdownDialogMD_to_PDF_HTML_DOC/main.py:2484__init__, get_content, get_doc_nameFullPreviewWindowMD_to_PDF_HTML_DOC/main.py:2635__init__, _setup_ui, _setup_shortcuts, toggle_fullscreen, _handle_escape, refresh_content,MainWindowMD_to_PDF_HTML_DOC/main.py:2825__init__, setup_ui, _create_header_bar, _create_status_bar, _jump_to_validation, _show_staHandlerMD_to_PDF_HTML_DOC/start.py:15091log_message, do_GET, do_POST, do_PUT, do_DELETE, _serve_index, _serve_json, _serve_text_ServerMD_to_PDF_HTML_DOC/start.py:16361handle_errorFlowTypeMD_to_PDF_HTML_DOC/content_flow.py:13ExpandIconMD_to_PDF_HTML_DOC/content_flow.py:21CardStyleMD_to_PDF_HTML_DOC/content_flow.py:29
Functions
_emitMD_to_PDF_HTML_DOC/dd.py:37cmd_bootstrapMD_to_PDF_HTML_DOC/dd.py:57cmd_project_addMD_to_PDF_HTML_DOC/dd.py:64cmd_project_listMD_to_PDF_HTML_DOC/dd.py:91cmd_project_showMD_to_PDF_HTML_DOC/dd.py:99cmd_project_removeMD_to_PDF_HTML_DOC/dd.py:110cmd_project_rescanMD_to_PDF_HTML_DOC/dd.py:124cmd_migrate_registerMD_to_PDF_HTML_DOC/dd.py:135cmd_migrate_moveMD_to_PDF_HTML_DOC/dd.py:158cmd_migrate_rollbackMD_to_PDF_HTML_DOC/dd.py:179cmd_migrate_listMD_to_PDF_HTML_DOC/dd.py:191cmd_commitMD_to_PDF_HTML_DOC/dd.py:199cmd_statusMD_to_PDF_HTML_DOC/dd.py:219cmd_historyMD_to_PDF_HTML_DOC/dd.py:243cmd_diffMD_to_PDF_HTML_DOC/dd.py:268cmd_restoreMD_to_PDF_HTML_DOC/dd.py:302cmd_discardMD_to_PDF_HTML_DOC/dd.py:319cmd_gcMD_to_PDF_HTML_DOC/dd.py:333cmd_bundle_createMD_to_PDF_HTML_DOC/dd.py:340_splitMD_to_PDF_HTML_DOC/dd.py:353cmd_bundle_listMD_to_PDF_HTML_DOC/dd.py:394cmd_bundle_showMD_to_PDF_HTML_DOC/dd.py:410cmd_bundle_buildMD_to_PDF_HTML_DOC/dd.py:420cmd_bundle_deleteMD_to_PDF_HTML_DOC/dd.py:445
Command line
- list
- export
- -o
- --export-dir
- --preset
- --template
- --look
- --md-qc
- --mermaid-animate
- --single-file
- --minimal-output
- --legacy-full-variants
Depth
Signals counted from the code, not asserted.
1160 commits across 86 separate working days over 9.6 months, 252 of them revising existing behaviour
Built from scratch
- Concurrency primitives
- Parser / lexer
- Audio / DSP
Closes its own loop
- Memory / accumulated state
- Evaluation / scoring
- Planning / decomposition
Proves itself
- Golden / baseline files
- Reconciliation / audits
- Backtesting / evaluation
- Benchmarks
Survives failure
- Logging / observability
- Fallback paths
- Timeouts
- Recovery / restore
- Retry / backoff
- Rate limiting
Local inference
- LM Studio
- Local TTS
- TabbyAPI / ExLlama
Systems
Environment engineering
- Virtual environments
- Bootstrap scripts
- Runtime detection
- Dependency isolation
Working within limits
- Timeout budgets
- Context-window budgeting
Distributed systems
- Provisioning / bootstrap
- Worker orchestration
- Health / heartbeat
GPU & memory management
- VRAM budgeting
- Device placement
- Quantisation
Model operations
- Model formats
- Hugging Face
Languages
- Python269,632
- JavaScript1,369
- SQL453
- Batchfile504
- PowerShell92
- Shell102
Built with
- PyQt
- NumPy
- ONNX Runtime
- Pillow
- Playwright
- pip
Recurring themes in the commit history
- slides
- roadmap
- narration
- deck
- review
- tier
- measured
- images
- vram
- image
Evidence
Taken from the code itself: a module docstring or the opening of the README.
md-to-html CLI — convert a markdown file to HTML (interactive + static). Headless entry point intended for agents and scripts — no Qt/UI dependency. Typical usage: python cli.py INPUT.md # writes to ./output/<name>/ python cli.py INPUT.md -o /tmp/exports # custom base dir python cli.py INPUT.md --single-file # self-contained HTML python cli.py INPUT.md --minimal-output # emit only .md+_share+_late
At a glance
- Status
- active
- Primary language
- Python
- First commit
- 2026-01-07
- Last activity
- 2026-10-26
- Domain
- AI & machine learning