Hacker News new | ask | show | jobs
by crabl 146 days ago
you can also chuck a json blob into LocalStorage
1 comments

Thank you, yes and indexed db too, as in other comment.

I like to have exactly two API calls.

-- load data (returns json)

-- save data (sends json, returns 200 ok)

That is all! Let frontend bind everything to that json and save it every 1-2 seconds in setInterval.