Self-host tldr pages: one small,
always-running container that answers from curl, a browser, a JSON API and
ssh. Works fully offline and keeps its pages up to date when it can.
Quick start
docker run -d -p 8080:8080 -p 2222:2222 -v tldr-data:/data \ --read-only --cap-drop ALL ghcr.io/spikethedragon40k/tldr-docker curl localhost:8080/tar # colored page in the terminal ssh -p 2222 localhost tar # the same over ssh ssh -p 2222 localhost # interactive browser open http://localhost:8080/tar # web GUI
Also on Docker Hub as buck40k/tldr-docker: same image, same signature.
Interactive browser over SSH
Live search with preview, "See also" links, platform and language switching, light and dark themes. No shell, ever.
Web GUI
Server-rendered and usable without JavaScript. Instant search, copy buttons, placeholder fill-in, 40+ languages, light / auto / dark.




On a phone



Features
Three ways in
curl and wget get colored text, browsers get HTML, scripts get JSON, all on one port. SSH on another.
Offline first
Pages are baked into the image. Air-gapped networks can point updates to an internal mirror.
Self-updating
Checks for new pages on a schedule, verifies the SHA-256 checksum and swaps them in atomically, without a restart.
Small
One static Go binary on a distroless base. About 75 MB of memory.
Security
- Distroless, non-root, no shell. Runs with
--read-onlyand--cap-drop ALL. - Page content is treated as untrusted: escape sequences stripped from terminal output, HTML escaped.
- SSH: lookups only. No shell, SFTP or forwarding; optional key-only access; rate and connection limits.
- Strict CSP, no cookies, no tracking, no external requests.
- Fuzz-tested input parsers; load- and abuse-tested image.
- Images signed with cosign, with SBOM and SLSA provenance attached.
cosign verify ghcr.io/spikethedragon40k/tldr-docker:latest \ --certificate-identity-regexp '^https://github.com/SpikeTheDragon40k/tldr-docker/\.github/workflows/publish\.yml@refs/(tags/v|heads/main)' \ --certificate-oidc-issuer https://token.actions.githubusercontent.com
Found a vulnerability? See the security policy.
Compose examples
| compose.yaml | Hardened default setup |
| reverse-proxy.yaml | Behind Caddy with HTTPS, under a sub-path |
| air-gapped.yaml | Internal mirror, or baked-in pages only |
| ssh-keys-only.yaml | SSH only for listed public keys |
| http-only.yaml | curl, browser and API, no SSH |