fontsource
by fontsource
Fontsource packages open-source fonts, including the Google Fonts collection, as individual NPM packages so you can host them yourself. It is for loading fonts on your own website without relying on an outside service such as Google Fonts.
- Stars
- 6.2k
- Licence
- MIT
- Runs on
- Your computer
- Setup
- Easy
- Language
- TypeScript
- Age
- 2354 days
What you can do with it
- Install a font as an NPM package and serve it from your own website
- Lock fonts to a specific version so updates don't change a live site unexpectedly
- Make fonts load offline, for example in a progressive web app
Make money with it
A freelancer could offer website speed and privacy clean-up services that include moving a client's fonts to self-hosting.
An idea, not financial advice. Check the licence before charging for anything built on it.
Ways a business could use it
- Speed up a company website by serving fonts from your own host rather than a third-party service
- Avoid sending visitors' data to Google by self-hosting fonts, which helps with privacy concerns
Can you use it commercially?
Free to use, change and sell, including in paid products. Keep the copyright notice.
Not legal advice. Read the project's licence file before building a product on it.
Getting it running
Each font is installed as an NPM package and then imported into your project's code or CSS, as described in the online documentation.
Follow the official instructions in the project README.
Things to check
- Each font has its own licence (mostly SIL Open Font Licence, some Apache 2 or Ubuntu), so check before commercial use
- Only useful for projects that use NPM or a similar build process
Who's talking about it
Checked 28 Oct 2026. Summary drafted by AI from the project's README.