OSS TanbouSign in with GitHub

self-host open-source fonts as version-pinned NPM packages from a font distribution monorepo

About these scores

OSS scale score is an unbounded metric that log-compresses and weights Stars, Watchers, Forks, and Contributors. Discovery score is the current OSS scale score minus the score at discovery. Update pace is commits in the last 30 days, growth momentum is the OSS scale score difference within the recent observation window, and OSS health is a 0–100 rating based on available recency, Community Health, and release data.

Stars
6,155
Primary language
TypeScript
License
MIT
Repository last updated
Sep 30, 2026
On this page

Overview

Fontsource packages open-source fonts as individual NPM dependencies for self-hosting in web applications. This can avoid extra font-CDN requests, pin font revisions with the application, and support offline or privacy-sensitive deployments.

Features and best fit

Based on official documentation; not hands-on tested · Content checked:

Key features

Install a font family as an NPM dependency and import its CSS

Font families are distributed as @fontsource/* or variable-font packages and can be imported through CSS-aware bundlers.

Sources: [1][3]

Bundle only the weights, styles, or variable faces you need

Static packages expose weight/style-specific CSS, while supported variable packages can cover a continuous weight range with fewer files.

Sources: [3]

Version-lock font assets like application dependencies

Self-hosted package versions decouple production typography from provider-side font updates and keep revisions in the package lockfile. The current Roboto package is 5.3.0.

Sources: [1][4]

Best fit

Fits web apps that want controlled font performance, privacy, and offline behavior

It works well with CSS-bundling environments such as Vite or Webpack when font files should ship as part of the application artifact.

Sources: [1][3]

Before adoption

Distinguish the repository license from each font asset license

The Fontsource repository is MIT licensed, while individual font packages use their own licenses such as SIL OFL, Apache-2.0, or Ubuntu Font License. Check the package-specific license before use.

Sources: [1][5][4]

Use fontsource/fontsource as the current canonical repository

The active canonical repository is fontsource/fontsource; dependency metadata and automation should not rely on the former googlefonts/fontsource owner path.

Sources: [1]

Official sources

  1. [1]Fontsource repository README(2026-10-04)
  2. [2]Fontsource core v0.5.1 release(2026-10-04)
  3. [3]Fontsource installation guide(2026-10-04)
  4. [4]@fontsource/roboto 5.3.0 package(2026-10-04)
  5. [5]Fontsource repository MIT license(2026-10-04)
Supplemental curator note

The canonical repository is fontsource/fontsource. The repository is MIT licensed, but font assets carry package-specific licenses such as OFL, so review each font package separately.

Try it in 3 steps

  1. 1

    Add Roboto 5.3.0 as a local dependency

    Pin a Fontsource font package inside the project. The Roboto package itself is licensed under OFL-1.1.

    mkdir -p fontsource-demo && cd fontsource-demo && npm init -y >/dev/null && npm install @fontsource/roboto@5.3.0
  2. 2

    Check the installed package version and license

    Verify the font package license separately from the MIT license of the Fontsource repository.

    cd fontsource-demo && node -e 'const p=require("./node_modules/@fontsource/roboto/package.json"); console.log(`version=${p.version} license=${p.license}`)'
  3. 3

    Import only the weight you need from CSS

    This is ready for a CSS-aware bundler. Use explicit weights or a variable-font package depending on the application.

    cd fontsource-demo && printf '@import "@fontsource/roboto/400.css";\nbody { font-family: "Roboto", sans-serif; }\n' > app.css && cat app.css
Check the official README

Growth

Growth trends · Last 30 days

6,155 Stars

Trend data is still being collected.

Development activity

Last 90 days · weekly

Commits (last 30 days)
70
Open PRs
7

Development activity is still being collected.

Built with

Categories and tags

Categories

GitHub data

GitHub dataView detailed GitHub data

GitHub Topics

  • font
  • fontsource
  • google-fonts
  • open-source
  • fonts
  • font-family
  • google
  • font-files
  • typefaces
  • css
  • font-loading
  • sass
Stars
6,155
Forks
196
Watchers
18
Open issues
51
Contributors
43
Owner type
Organization
Primary language
TypeScript
License
MIT
Repository last updated
Sep 30, 2026
Write a related article

Share a guide or use case for this OSS in Markdown. Articles are published after administrator approval.

Report incorrect information

Tell us if any listing information is incorrect or outdated.

After reading this page, do you know what to do next?