# Munter/subfont

Command line tool to optimize your webfont loading. Aggressive subsetting based on your font use, self-hosting of Google fonts and preloading

Repository: https://github.com/Munter/subfont
Canonical: https://ross.abutalabs.com/products/subfont
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2026-03-21T20:54:02+00:00

## Health v2 (maintenance only)
Score: 56/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 73, release rhythm 8, longevity 100
- inputs: {"age_days": 3412, "days_push": 165, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1636, forks 29 (observed 2026-08-28T04:05:14.691880+00:00)

## What it is
A Node.js command line tool that statically analyzes HTML pages to generate optimal webfont subsets based on the characters actually used. It self-hosts Google Fonts, generates woff2/woff subsets, injects preload hints, and moves @font-face CSS off the critical path to speed up first meaningful paint.

## Use cases
- subset webfonts to only the characters my page uses
- self-host Google Fonts instead of loading them from Google's CDN
- speed up page load by reducing font payload
- add preload hints for critical font files
- optimize variable fonts by reducing variation space
- optimize fonts in static site build artifacts before deployment

## When to choose
- you deploy static sites and want faster font loading
- you use Google Fonts or local font files and want to self-host optimized subsets
- you want automated font subsetting integrated into a build pipeline

## When to avoid
- your fonts are loaded dynamically at runtime by client-side JavaScript
- you need font services other than Google Fonts or local files
- you work in a non-Node.js toolchain with no CLI integration

## Facets
- artifact type: cli-tool
- maturity: active
- function: cli, developer-tools, build-tool, web-scraping
- domain: web-development, frontend, performance, developer-tools
- platform: cli, cross-platform
- tags: webfonts, font-subsetting, google-fonts, woff2, preload, performance-optimization, self-hosting, nodejs

## Member repositories
- Munter/subfont (main) score 56

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:14.691880+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:46:57.290533+00:00, confidence not recorded.
  - readme: https://github.com/Munter/subfont (fetched 2026-08-28T04:05:14.691880+00:00, sha 900abdbbd980)
  - registry_npm: https://registry.npmjs.org/subfont (fetched 2026-08-29T11:20:07.086521+00:00, sha a27a438d3664)
- Data as of 2026-08-30T08:39:29.467469+00:00.
