Self-host open-source fonts via npm
Introduction
Fontsource is the engineering project turning open fonts into npm packages: self-hosted Google Fonts and more, imported per-need with no third-party requests and controlled performance. The standard font solution for frontend engineering — privacy and performance in one.
Key Features
- Fonts as npm packages
- Per-weight imports
- No third-party requests, privacy-friendly
- Variable font support
- Mainstream framework integrations
Pros
- The engineering best practice
- Wins on performance and privacy
Cons
- CJK font size remains large
Pricing
Completely free and open-source.(See official site for current pricing)
FAQ
vs Google Fonts CDN?
Fontsource self-hosts with no external requests — GDPR friendly.
Chinese fonts?
Yes, some open CJK fonts with subsetting.
How to import per-need?
Install the specific weight package.
Related Sites
Collected on lucifer.city · Reviewed by the founder