# Fonts

> A self-hosted, editorial alternative to Google Fonts, built with Cloudflare D1 and R2, a Hono API, and an Astro website.

A self-hosted font serving platform. It gives you editorial-quality web fonts without Google's tracking. It runs on Cloudflare's edge network.

## Stack

- Astro: The static frontend for browsing and previewing fonts.
- Hono: The API layer for font serving and cache headers.
- Cloudflare R2: Stores font files at the edge.
- Cloudflare D1: Stores metadata and subsetting rules.

## Features

- Editorial curation: The site offers hand-picked font pairings instead of an endless catalog.
- Self-hosted: There are no third-party requests and no tracking.
- Subset on the fly: The server sends only the characters you need.
- Cache-optimized: The server sets correct `Cache-Control` and `ETag` headers.
- CSS generation: The server builds `@font-face` blocks with the best format hints.
