unjs/fontaine
Automatic font fallback based on font metrics observed · 2026-08-28
Health v2 · maintenance only
99/100
- Activity 99
- Release rhythm 99
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 1
- age_days: 1434
- days_rel: 8
- days_push: 8
- n_releases_24m: 10
Adoption not part of the score
1983 stars · 47 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Fontaine is a TypeScript library that automatically generates font fallbacks based on font metrics to reduce layout shift (CLS). It computes metric-compatible fallback fonts so text renders consistently while web fonts load.
Use cases
- reduce cumulative layout shift from web font loading
- generate metric-compatible font fallbacks automatically
- improve web vitals scores for font rendering
- avoid text reflow when custom fonts swap in
- optimize font loading in build pipelines
When to choose
- your site suffers CLS from font swapping
- you want automatic fallback font generation at build time
- you need metric-compatible fallbacks without manual font metric work
When to avoid
- you don't load custom web fonts
- you need full font subsetting or optimization rather than fallbacks
- your project is not in a Node.js/JavaScript build environment
Facets
library · maturity active
ui-components developer-tools web-development frontend performance font-fallback font-metrics cls web-vitals css-fonts unjs nodejs web-server
2 sources
- readme: https://github.com/unjs/fontaine · fetched 2026-08-28 · a3da6d63289a
- registry_npm: https://registry.npmjs.org/fontaine · fetched 2026-08-29 · 82d3b4ac42ce
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| unjs/fontaine | main | 99 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem