Comment by WebBurnout
Comment by WebBurnout 13 hours ago
FontSource releases all of google fonts and more as NPM packages: https://fontsource.org
Comment by WebBurnout 13 hours ago
FontSource releases all of google fonts and more as NPM packages: https://fontsource.org
Skip the middleman with coolab? https://fonts.bunny.net/
With a zero-tracking and no-logging policy, Bunny Fonts helps you stay fully GDPR compliant and puts your user's personal data into their own hands. Additionally, you can enjoy lightning-fast load times thanks to bunny.net's global CDN network to help improve SEO and deliver a better user experience.
you don't need npm; you can just link to the cdn https://fontsource.org/fonts/inter/cdn
this is really fascinating considering that they package it as a npm package which is then used by jsdelivr which is essentially a free really low latency sponsored/(essentially operated?) by cloudflare and fastly etc.
I just checked and jsdelivr has had like 300 billion requests past month and over 16,813 TB
Really fascinating stuff. I will try to use this from now on! (earlier I was thinking of using something like coollabs.io but I checked its code and I see that the fonts are served through something like bunnycdn from coollabs side which is cool but still)
Honestly, what other things would be better off packaged as npm packages as I never thought that packaging fonts as npm package should make so much sense but here we are!
Bookmarked!!