A flow graph can run down
TileDown 0.19.0 lets the flow tile run top to bottom, with larger boxes and text, and makes the tag bar compact.
A Swift static site generator that renders math, charts, and source-code color at
build time — in pure Swift, with no client-side JavaScript for those surfaces,
no web fonts, and no external toolchain: no LaTeX install, no dvisvgm, no C
libraries. The same engine typesets to PDF. Write ordinary Markdown; get a fast,
self-contained page.
Install with Homebrew (Apple Silicon, macOS 14 or later):
brew tap tiledownhq/tap https://codeberg.org/TileDownHQ/homebrew-tap.git
brew install tiledownhq/tap/tiledown
tiledown build-site content/ dist/
The tap lives on Codeberg, so the first command names its address.
Or build from source:
git clone https://codeberg.org/TileDownHQ/tile-down.git
swift run --package-path tile-down/Packages tiledown build-site content/ dist/
That equation is static SVG: view source and there is no script tag and no font request for it. TileDown turns constrained Markdown into static HTML, CSS, JSON, and feeds, with browser JavaScript only for interactive tiles.
Source code: codeberg.org/TileDownHQ/tile-down.
This website is generated by the project it describes. The source is the content/
folder of TileDownHQ/tiledown.com, and
the build command is the same tiledown build-site command documented for users.
Built by TileDown
The live site is generated from Markdown folders, a built-in layout, the system theme, typed tiles, tag pages, and an RSS feed.
The counter below is not server-backed. It is a typed tile that renders HTML, theme-aware CSS, and browser JavaScript scoped to this page.
| Surface | Live coverage |
|---|---|
| Markdown profile | headings, links, images, tables, lists, code, block quotes |
| Source code | build-time syntax highlighting for 19 language profiles |
| Typed tiles | 26 tile types in the engine; this site shows callout, counter, embed, buttondown, signin, terminal, pill, progress, kpi, timeline, flow, data, price-calculator, featured, chart and mermaid |
| Site model | folder routing, navigation, shared stylesheet, assets |
| Writing flow | canonical formatting, JSON output, help, and doctor checks |
| Publishing flow | Built from source with scripts/build.sh, checked in a browser by scripts/check.sh, then copied to the pages repository that Codeberg Pages serves |
| Content model | posts, tags, latest posts, RSS, drafts, slug overrides |
| References | page:, post:, tag:, social:, and link: references |
See the Feature Tour for a page that exercises the visible behavior, or open the repository to inspect the implementation.
TileDown 0.19.0 lets the flow tile run top to bottom, with larger boxes and text, and makes the tag bar compact.
TileDown 0.18.0 adds the featured tile, a hand-picked list of posts with their pictures, settings for the size and width of page titles, a limit for the tag bar, a text alternative for a page's picture, Mermaid diagrams in the theme's colours and fonts embedded in the article PDF.
TileDown 0.16.1 to 0.16.5 fix the article PDF: embed and counter tiles print, emoji are drawn in colour, a closing mark stays with its word, and a Mermaid diagram's classDef colours its boxes.
TileDown is a developer preview, not a production static site generator yet. The current engine and CLI are real enough to build this site, but project scaffolding, watch mode, and production service hosting are still on the road map.
---
title: TileDown
description: A Swift static site generator that typesets TeX math to static SVG at build time — pure Swift, no LaTeX toolchain, one engine shared with a PDF generator.
image: /assets/site-preview-light.svg
imageDark: /assets/site-preview-dark.svg
latest: true
---
# TileDown
A Swift static site generator that renders math, charts, and source-code color at
**build time** — in pure Swift, with no client-side JavaScript for those surfaces,
no web fonts, and no external toolchain: no LaTeX install, no `dvisvgm`, no C
libraries. The same engine typesets to PDF. Write ordinary Markdown; get a fast,
self-contained page.
[Get TileDown on Codeberg](https://codeberg.org/TileDownHQ/tile-down)
Install with Homebrew (Apple Silicon, macOS 14 or later):
```sh
brew tap tiledownhq/tap https://codeberg.org/TileDownHQ/homebrew-tap.git
brew install tiledownhq/tap/tiledown
tiledown build-site content/ dist/
```
The tap lives on Codeberg, so the first command names its address.
Or build from source:
```sh
git clone https://codeberg.org/TileDownHQ/tile-down.git
swift run --package-path tile-down/Packages tiledown build-site content/ dist/
```
$$\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}$$
That equation is static SVG: view source and there is no script tag and no font
request for it. TileDown turns constrained Markdown into static HTML, CSS, JSON, and
feeds, with browser JavaScript only for interactive tiles.
Source code: [codeberg.org/TileDownHQ/tile-down](link:repo).
This website is generated by the project it describes. The source is the `content/`
folder of [TileDownHQ/tiledown.com](https://codeberg.org/TileDownHQ/tiledown.com), and
the build command is the same `tiledown build-site` command documented for users.
:::tile callout
title: Built by TileDown
body: The live site is generated from Markdown folders, a built-in layout, the system theme, typed tiles, tag pages, and an RSS feed.
:::
## Try a local tile
The counter below is not server-backed. It is a typed tile that renders HTML,
theme-aware CSS, and browser JavaScript scoped to this page.
:::tile counter
label: Count a local tile
:::
## What the demo covers
| Surface | Live coverage |
|:---|:---|
| Markdown profile | headings, links, images, tables, lists, code, block quotes |
| Source code | build-time syntax highlighting for 19 language profiles |
| Typed tiles | 26 tile types in the engine; this site shows `callout`, `counter`, `embed`, `buttondown`, `signin`, `terminal`, `pill`, `progress`, `kpi`, `timeline`, `flow`, `data`, `price-calculator`, `featured`, `chart` and `mermaid` |
| Site model | folder routing, navigation, shared stylesheet, assets |
| Writing flow | canonical formatting, JSON output, help, and doctor checks |
| Publishing flow | Built from source with `scripts/build.sh`, checked in a browser by `scripts/check.sh`, then copied to the pages repository that Codeberg Pages serves |
| Content model | posts, tags, latest posts, RSS, drafts, slug overrides |
| References | `page:`, `post:`, `tag:`, `social:`, and `link:` references |
See the [](page:features) for a page that exercises the visible behavior, or
open the [repository](link:repo) to inspect the implementation.
:::recent:::
## Status
TileDown is a developer preview, not a production static site generator yet. The
current engine and CLI are real enough to build this site, but project
scaffolding, watch mode, and production service hosting are
still on the road map.