top | item 45251036

(no title)

WebBurnout | 5 months ago

FontSource releases all of google fonts and more as NPM packages: https://fontsource.org

discuss

order

Imustaskforhelp|5 months ago

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!!

rovr138|5 months ago

> I just checked and jsdelivr has had like 300 billion requests past month and over 16,813 TB

My brain breaking because I don’t know if that comma denotes thousand or decimal in this context.

galaxy_gas|5 months ago

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.

everybodyknows|5 months ago

How is this service financially supported? The website offers no clues.

filt|5 months ago

This is the way to do it!

Velocifyer|5 months ago

But i don't know how to use NPM.