News for hackers. Stuff that matters.
Re:Don’t Build a General Purpose API to Power Your Own Front... by ThatPlayer on Sunday August 20, 2023 @06:30PM (#37203547)
I have a hobby project that's very static: a website for viewing webscraped snippets of writing from another site. I hosted it on Github Pages. I didn't want to use a static site generator which would've generated easily 10,000 files and with all the duplicated code would have put me above GitHub's 1GB limit for Github Pages. Similarly Cloudflare Pages has a 20,000 file limit.

So instead I combined it into various JSON files. Now I have a SPA downloading the JSON as necessary, and don't need any API/backend/database. I'm considering moving to sqlite now there are official WASM builds.

There are no comments on this comment yet.