nulldepdoc#
Zero-dependency static documentation site generator
Powered solely by Node.js standard APIs and Web Components — no npm install and no constant dependency maintenance required.
Why Zero Dependencies?#
nulldepdoc ships with dependencies: 0 and devDependencies: 0. You can clone the repository and build, preview, and test immediately without running npm install, keeping maintenance overhead and supply-chain exposure to a minimum over the lifetime of your documentation site.
Key Features#
| Feature | Implementation | External npm Deps |
|---|---|---|
| Markdown → HTML | Built-in CommonMark core + GFM + Admonitions parser | 0 |
| Component Embedding | Standard Web Components (<nd-tabs>, <nd-card-grid>, <nd-steps>, <nd-file-tree>, etc.) + custom elements | 0 |
| Syntax Highlighting | Build-time tokenizer with line highlights, line numbers, and diff rendering (0 client JS) | 0 |
| Multi-language (i18n) | Per-locale builds, language switcher UI, hreflang links, and isolated search indexes | 0 |
| Local Search & Tags | Build-time JSON index, native <dialog>, CJK 2-gram fallback, tag: search, and static /tags/ pages | 0 |
| Reading & Ops UX | Auto sidebar, breadcrumbs, ToC scroll spy, edit links, last updated dates, and versioning | 0 |
| SEO & AI Outputs | Automatic sitemap.xml, canonical / OGP meta tags, llms.txt, and llms-full.txt | 0 |
| Link Check & Dev Server | Internal link/anchor verification plus node:http + fs.watch + SSE live reload | 0 |
Documentation Guide#
Learn init, serve, build, check, and directory-based routing conventions.
Admonitions, tabs, cards, steps, file trees, and build-time code block decorations.
Complete guide to nulldepdoc.config.json, i18n, tags, SEO, versioning, and Frontmatter.
All CLI commands, version snapshots, and the Node.js ESM programmatic API.
Add interactive team-specific UI in a single vanilla JS file without React or bundlers.
Automated GitHub Actions workflow without npm install and other static hosts.