#mdbook #html #static-site #tiny #generate

app mdbook-tiny

Use mdbook to generate tiny and fast static sites

4 releases

Uses new Rust 2024

0.1.3 Sep 27, 2025
0.1.2 Sep 13, 2025
0.1.1 Sep 13, 2025
0.1.0 Sep 7, 2025

#642 in Text processing

Download history 348/week @ 2025-09-07 115/week @ 2025-09-14 55/week @ 2025-09-21 80/week @ 2025-09-28 8/week @ 2025-10-05 8/week @ 2025-10-12 5/week @ 2025-10-19

148 downloads per month

MIT license

25KB
298 lines

mdbook-tiny

An alternative backend to mdbook that generates minimal html from your md source.

Pages typically generated are under 14kb, much smaller than the pages you get from mdbook directly.

Trade-offs

Pages without extra assets load on first response from server and get a near perfect lighthouse speed score.

You can keep generating your content both as an mdbook and in this tiny html format.

To get this small size, you lose search, sidebar, code highlighting, code clipboard buttons, rust playground, click to pdf.

Setup

Install:

cargo install mdbook-tiny

Add it as a backend in book.toml:

[output.tiny]
nav-separator = " - "
# relative to your src folder
css-paths = ["css/pico.classless.min.css"]
index = "getting-started.md"
extra-nav.Blog = "blog.md"
extra-nav.Projects = "projects.md"

Dependencies

~11–27MB
~377K SLoC