wldeh / bible-api

Free Unlimited Bible API with support for 200+ versions and languages.⚡
148 stars 22 forks source link

JSON files for individual verses is both overkill and opens up technical issues. #14

Open Lucasharskamp opened 1 week ago

Lucasharskamp commented 1 week ago

You give us the following endpoint:

https://cdn.jsdelivr.net/gh/wldeh/bible-api/bibles/${version}/books/${book}/chapters/${chapter}/verses/${verse}.json

Which is nice. Problem is; there are so many of them! Each chapter has dozens of verses, there may be a ton of chapters per book, over a lot of translations. This causes millions (!) of JSON files to be created, for each and every verse. This makes maintenance hard, and I think the CDN server isn't too happy about that either. Full chapters are fine, one can simply extract the required verse(s) from there.

The result? For example, If I zipped all the files, including verses it would be 1.2GB of data. Without it, just 237MB.