Hacker News new | ask | show | jobs
by __jonas 1052 days ago
Why not just use IndexedDB in the browser if you don’t want an SQL database?
2 comments

a) IndexedDB's API is horrid, so everyone wants to layer an abstraction on top anyways.

b) You can't use IndexedDB on the server, so you wouldn't be able to write sync code that runs on both the client and the server

The same reasons you wouldn’t use IndexedDB on the server?

Modern offline-first applications include a local backend every bit as complex and demanding as a server-based backend.