A self-hosted home for every font you own.
Host it once on your server or home lab, then use it from every device you own, in any browser.
A searchable gallery with live previews, a proper type tester, glyph maps, collections and one-click downloads.
Live demo · Website · Quick start · Configuration · Reverse proxy · Roadmap
Fonts pile up: a zip from a client, a folder from an old laptop, that one typeface you bought for a wedding invite. Desktop font managers only see one machine. Typestash turns a folder on your NAS or server into a font library you can browse from any browser, and download from whenever you need a font.
Your fonts stay plain files in a folder you choose. Typestash only reads them and keeps a small index next to them, so Samba, rsync and your backups keep working.
Desktop font managers like FontBase and NexusFont are installed on one computer and manage the fonts on that computer. Typestash runs once, on your server, NAS or home lab, and every device on your network gets the whole library in a browser: your laptop, your work machine, a tablet, even your phone. Nothing to install on each device.
| Desktop font managers | Typestash | |
|---|---|---|
| Runs on | Each computer you install it on | Once, on your server, NAS or home lab |
| Use it from | That computer | Any device with a web browser |
| Your fonts live | On that computer's disk | In one folder on your server |
| A new laptop or phone | Install and set up again | Open the URL |
| Share with a colleague | Export, or a paid sync plan | Send them the link (optional password) |
| Installs fonts into your OS | Yes | Not yet: desktop sync is on the roadmap |
- Live gallery. Every card is set in its own font. Type your own sample text, resize, switch grid/list. Hover a card to sweep through its weights.
- Preview presets. One-click sample texts you can save and edit, plus a Scripts menu built from your library: preview Cyrillic, Greek, Arabic, Devanagari and more, and see only the fonts that can render them.
- Real metadata. Reads family, style, weight, width, designer, foundry, version, license and language support from inside each font (not the file name).
- Smart filters. Sans, serif, mono, display, script; variable fonts; families with italics; script support (Latin, Cyrillic, Greek, Arabic, Hebrew, Devanagari, Bengali, Tamil, Thai, CJK, Hangul, Kana). Categories are detected automatically and you can override any of them.
- Type tester. Variable-font axis sliders (with an animate button), named instances, OpenType feature toggles (ligatures, small caps, figures, stylistic sets…), size, leading, tracking, alignment and colour themes.
- Glyph map. Every character in the font. Click to inspect, double-click to copy.
- Waterfall, pairing and compare. See a family at every size, try heading/body pairings with suggestions, and compare up to 8 fonts side by side, in rows, or overlaid on one baseline with x-height, width and other metrics as bars.
- Organise. Favourites, collections (download a whole collection as a zip), and searchable notes per family.
- Add fonts by dropping them. Drag fonts or
.ziparchives anywhere on the page. Files are validated, de-duplicated by content and filed asUploads/<Family>/in your fonts folder. - Download anything. A single style, a whole family as a zip, or a PNG specimen sheet.
- Housekeeping. A duplicates & issues page lists identical files and fonts that could not be read. Nothing is ever deleted.
- 12 themes. Paper and Ink plus GitHub Light, Solarized Light, Catppuccin Latte and Mocha, Gruvbox Light and Dark, Rosé Pine Dawn, Dracula, Nord and Tokyo Night. Pick one from the theme panel, or let it follow your system with a light and a dark favourite. Every theme passes WCAG AA contrast for text.
- Settings page for appearance, preview defaults, keyboard shortcuts and server info.
- Command bar (
⌘Kon macOS,Super+Kon Linux,Ctrl+Kon Windows): every action in one place. Jump to fonts and collections, switch themes, change view and filters, rescan, and open the project links. - Keyboard first:
/search,[sidebar,dlight/dark,,settings,Escback. The sidebar collapses for more room. Works on phones too. - Supports TTF, OTF, WOFF, WOFF2, TTC/OTC collections and zips.
mkdir typestash && cd typestash
mkdir fonts data
docker run -d --name typestash -p 8080:8080 \
-v "$PWD/fonts:/fonts" -v "$PWD/data:/data" \
-e PUID=$(id -u) -e PGID=$(id -g) \
--restart unless-stopped \
ghcr.io/jatinkrmalik/typestash:latestOpen http://localhost:8080, then drop some fonts on the page (or copy them into
fonts/ and press Rescan).
services:
typestash:
image: ghcr.io/jatinkrmalik/typestash:latest
container_name: typestash
restart: unless-stopped
ports:
- "8080:8080"
volumes:
- ./fonts:/fonts # your font files
- ./data:/data # index, favourites, collections, notes
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
# - TYPESTASH_PASSWORD=change-meThe same file is in this repo as docker-compose.yml.
Images are built for linux/amd64 and linux/arm64 (Raspberry Pi 4/5, Apple
Silicon, ARM NAS boxes).
Use the template in templates/unraid/typestash.xml
(Docker tab → Add Container → Template). Defaults: fonts in /mnt/user/fonts,
app data in /mnt/user/appdata/typestash, PUID 99 / PGID 100.
Python 3.11+:
pip install -r requirements.txt
TYPESTASH_FONTS=~/fonts TYPESTASH_DATA=~/.local/share/typestash python app/server.pyAll settings are environment variables.
| Variable | Default | What it does |
|---|---|---|
PUID / PGID |
1000 |
User and group that own files Typestash writes (uploads, index). |
TYPESTASH_PASSWORD |
(empty) | Turns on HTTP basic auth. Leave empty when a reverse proxy handles login. |
TYPESTASH_USER |
typestash |
Username for basic auth. |
TYPESTASH_UPLOADS |
true |
false hides uploads and rejects them server-side (read-only library). |
TYPESTASH_UPLOAD_DIR |
Uploads |
Sub-folder of the fonts folder that uploads are filed into. |
TYPESTASH_MAX_UPLOAD_MB |
512 |
Largest upload (a zip counts as one upload). |
TYPESTASH_RESCAN_SECONDS |
600 |
How often the fonts folder is checked for changes. |
TYPESTASH_FONTS |
/fonts |
Fonts folder inside the container. |
TYPESTASH_DATA |
/data |
Index and app data inside the container. |
TYPESTASH_PORT |
8080 |
Port inside the container. |
What lives where
/fonts: your files, untouched except for new uploads underUploads/./data/index.db: SQLite with the font index, favourites, collections, notes and category overrides. Back this up if you care about your curation; the index itself rebuilds from the fonts folder./data/cache/: faces extracted from.ttccollections for browser preview. Safe to delete.
Typestash has no built-in TLS. Put it behind your usual proxy. It works at a sub-path too (all URLs are relative).
Caddy
fonts.example.com {
reverse_proxy typestash:8080
request_body {
max_size 512MB
}
}Traefik (labels)
labels:
- traefik.enable=true
- traefik.http.routers.typestash.rule=Host(`fonts.example.com`)
- traefik.http.routers.typestash.entrypoints=websecure
- traefik.http.routers.typestash.tls.certresolver=letsencrypt
- traefik.http.services.typestash.loadbalancer.server.port=8080nginx
location / {
proxy_pass http://typestash:8080;
proxy_set_header Host $host;
client_max_body_size 512m;
}Want single sign-on? Put Authelia, Authentik or oauth2-proxy in front with
forward auth and leave TYPESTASH_PASSWORD empty.
Typestash is a library for fonts you are allowed to use. It does not grant any rights to the fonts in it. Each family page shows the license text embedded in the font. Be careful about exposing commercial fonts to people outside your license.
- One process, no framework.
app/server.pyis Python's standard-libraryThreadingHTTPServerplus fontTools (and brotli for WOFF2). The front end inapp/static/is plain HTML, CSS and JavaScript with no build step. The whole image is a slim Python base plus two pip packages. - Indexing. On start, and then every
TYPESTASH_RESCAN_SECONDS(10 minutes by default), the indexer walks the fonts folder and opens only new or changed files, spotted by size and modification time. For every face (faces inside TTC/OTC collections are split out) it reads the names, weight, width, italic and monospace flags, variable axes and named instances, OpenType features, the scripts its character map covers, vertical metrics, the licence text and URL, and a category from PANOSE, keywords and a glyph-shape check. Files are hashed with SHA-256 to find exact duplicates. Everything goes into one SQLite file,/data/index.db. - Serving. The browser fetches the library once from
/api/libraryand filters, sorts and searches it locally, so the UI stays fast. Previews load each font lazily with theFontFaceAPI as its card scrolls into view, from/font/:idwith caching headers (faces from collections are extracted once and cached). Family and collection zips are built on the fly. - Uploads.
POST /api/uploadtakes font files and zips (up toTYPESTASH_MAX_UPLOAD_MB), opens each with fontTools to make sure it's a real font, skips anything already in the library by hash, and files the rest underUploads/<Family>/. - Your data. Favourites, collections, notes and category overrides live in the same SQLite file. Theme, preview and compare preferences stay in the browser's localStorage. Typestash never modifies or deletes a font file.
- Security. Optional HTTP basic auth (
TYPESTASH_PASSWORD,/healthzstays open for health checks). The container starts as root only to switch toPUID/PGID. No accounts, no telemetry, no calls home. - The demo is the same front end with a
TYPESTASH_DEMOflag.demo/build_demo.pyimports the real server module, indexes the demo fonts and writes every API response as static JSON, so GitHub Pages can serve it with no server.
docker compose -f docker-compose.dev.yml up --build # live-edits app/No build step: app/server.py (Python stdlib + fontTools)
and app/static/ (plain HTML, CSS and JavaScript).
The website is site/ (one static page), and the
live demo is the same front end in demo mode:
demo/build_demo.py indexes about 450 of the most popular open-licensed families from
google/fonts (OFL, Apache 2.0 and UFL, listed in
demo/fonts.txt) with the real server code and writes a static snapshot. Build both
locally with:
python demo/fetch_fonts.py demo/fonts.txt _fonts
bash demo/build_site.sh _fonts _site
python -m http.server -d _site 8000python demo/pick_fonts.py regenerates the font list from Google Fonts popularity.
tests/e2e drives every feature in a real browser (Playwright): the gallery and its
filters, family pages, compare, collections, the command bar and shortcuts, all
themes, settings, uploads, and the phone and foldable layouts. run.mjs downloads a
small set of open-licensed fonts, starts a throwaway server with an empty data
folder, runs the suite and stops the server, so your own library is never touched.
pip install -r requirements.txt
cd tests/e2e
npm install && npx playwright install chromium
node run.mjsThe same suite runs on every push and pull request (E2E workflow).
To test a container instead, start it with a fonts folder that holds fonts.txt and
run node e2e.mjs http://localhost:8080 <uploads-dir>.
Next up is turning Typestash into your own font registry: publish a family and use it as a web font on your own sites, served from your own server, Google Fonts style. After that: tags and smart collections, licence tracking, "fonts that have ₹" search, desktop sync, share links and more. See ROADMAP.md, and tell me what you'd use in issues.
Typestash is free and open source, built in spare time. If it saves you a hunt through old folders for that one font, you can buy me a coffee or sponsor the project on GitHub. Bug reports, ideas and pull requests help just as much.
MIT. Demo fonts are from Google Fonts under the SIL Open Font License.