Side Project - Google Fonts Into Handy JSON Files With CDN

Tired of hitting the Google Fonts API just to populate a dropdown? I’ve flattened the entire catalog into a structured, CDN-ready set of JSON files. No API keys, no rate limits.

2 min read

Multilanguage

This post is also available in Bangla

April 11, 2026 · Tools · Hasin Hayder
Side Project - Google Fonts Into Handy JSON Files With CDN featured image

If you've ever built a font picker, a typography component, or anything that lets users choose from Google Fonts, you've probably run into the same problem: there's no clean way to get a list of what's available without hitting their API.

So I fixed that.

Github link - https://hasinhayder.github.io/google-fonts/

I took the entire Google Fonts catalog - every family, every variant, every supported script - and flattened it into a structured set of JSON files. No API keys. No rate limits. Just a folder full of JSON you can clone, curl, or load directly from a CDN in your projects.

Here's how it's organized:

.
├── fonts.json                          → all font families
├── categories.json                     → all categories
├── subsets.json                        → all subsets
├── fonts/
│   └── inter.json                      → per-font metadata
│   └── ...                             → 1,900+ more
├── categories/
│   ├── display/
│   │   ├── fonts.json                  → all display fonts
│   │   ├── subsets.json                → all subsets in display
│   │   ├── latin/
│   │   │   └── fonts.json              → display + latin
│   │   └── ...                         → 40+ more subsets
│   ├── handwriting/
│   ├── monospace/
│   ├── sans-serif/
│   └── serif/
└── subsets/
    ├── latin/
    │   ├── fonts.json                  → all fonts with Latin script
    │   └── categories.json             → which categories include Latin
    └── ...                             → 180+ more subsets

Every single file is available over jsDelivr's CDN, Here are some examples.

# jsDelivr Page
https://www.jsdelivr.com/package/gh/hasinhayder/google-fonts

# jsDelivr CDN root
https://cdn.jsdelivr.net/gh/hasinhayder/google-fonts/

# Every font family, sorted
https://cdn.jsdelivr.net/gh/hasinhayder/google-fonts/fonts.json

# All sans-serif fonts with latin support
https://cdn.jsdelivr.net/gh/hasinhayder/google-fonts/categories/sans-serif/latin/fonts.json

# All fonts that include Arabic script
https://cdn.jsdelivr.net/gh/hasinhayder/google-fonts/subsets/arabic/fonts.json

# Full metadata for Inter
https://cdn.jsdelivr.net/gh/hasinhayder/google-fonts/fonts/inter.json

And in your code, it's just a fetch away:

const res = await fetch(
  "https://cdn.jsdelivr.net/gh/hasinhayder/google-fonts/subsets/latin/display/fonts.json"
);
const { fonts } = await res.json();
// ["ABeeZee", "Aboreto", "Abril Fatface", ...]

That's it. No API keys. No rate limits. Just a URL that returns JSON.

I built this because I was tired of treating font data as something you have to fetch at runtime. Fonts don't change that often. The data is small. It should live at the edge, in your bundle, or on a CDN - and should be easily accessible.

It's here: Google Fonts Project - Github

What are you going to build with it? Let me know in the comments.

#Google Fonts #API #Open Source
Hasin Hayder

Written by

Hasin Hayder

Writing about code, design, and building things

More from Hasin Hayder

ডালু ইমলি কমিকস এর ওয়েবসাইট শুরু করলাম আমরা

কমিকসের ওয়েবসাইট, তাও আবার মাত্র ৫ ঘণ্টায়? ভাবছেন, এ তো অসম্ভব! কিন্তু ডালু-ইমলি কমিকসের নতুন ওয়েবসাইটটা আমরা ঠিক এইটুকু সময়ের মধ্যেই তৈরি করে ফেলেছি। কীভাবে এই ম্যাজিক সম্ভব হলো, আর এর পেছনের সহজ কৌশলগুলো কী কী?

May 6, 2026 · 1 min read

AI কোডিং এর খরচ কমাবেন কিভাবে

প্রতি মাসে এআই কোডিংয়ের পেছনে আপনার খরচ কি অকারণে বাড়ছে? বেশিরভাগ সময় ছোট কিছু ভুল অভ্যাসের কারণেই বিল কয়েক গুণ বেড়ে যায়। অথচ সামান্য কিছু কৌশল মেনে চললেই এআই ব্যবহারের খরচ অর্ধেক কমিয়ে আনা সম্ভব। আপনার অজান্তেই কোথায় টাকা নষ্ট হচ্ছে, তা কি জানেন?

Apr 30, 2026 · 1 min read
Back to all articles

Comments 5

Minhazul Asif
Great one bhai !! Necessary
Hasin Hayder Author
Thanks so much bhai, really appreciate it.
Amir Hossain Rozel
Yeah, useful. Thanks for sharing it with us bhaiya.
Mohammad Tanvir Alam Ovi
Absolutely amazing brother, thank you lot.
Habibur Rahaman
Nice

Leave a Comment

Your comment will be held for moderation before appearing.

Solve 0 + 0 =