4 ms·
Very impressive technically, but what are the practical use cases for this? We have IndexedDB and WebSQL, so apart from the other comments mentioning using it i
by danielvaughn 4y ago
Very impressive technically, but what are the practical use cases for this? We have IndexedDB and WebSQL, so apart from the other comments mentioning using it in tutorials, I'm not sure what the value add is.
edit: as always, I should read the whole article first. The idea of using it as a dev environment is very cool.
- jdmdmdmdmd 4y ago>We have [...] WebSQL Not any more - iirc it was depreciated. In the case of IndexedDB, I haven't looked into it, but Mozilla has the following to say about it: >Note: IndexedDB API is powerful, but may seem too complicated for simple cases. If you'd prefer a simple API, try libraries in See also section that make IndexedDB more programmer-friendly.[0] I suppose this project could make development easier by allowing developers to share server-side code? And it has the benefit of already having a large userbase. [0]https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_A...
- danielvaughn 4y agoOh wow, I never knew WebSQL was deprecated. And yeah IndexedDB is pretty complicated, I've tried working with the API a few times but always abandoned it for simpler solutions.
- kiwicopple 4y agoThere are some things that are uniquely beneficial for Postgres beyond the data storage - the main one I'm excited about is using PostGIS inside the browswer. OSM + PostGIS in the browser has the potential to do for Maps, what Figma's WASM approach did for design.
- bobmaxup 4y ago> OSM + PostGIS in the browser has the potential to do for Maps, what Figma's WASM approach did for design. Can you elaborate on this analogy?
- dahfizz 4y agoBut why is it relevant that PostGIS runs inside the browser?
- kiwicopple 4y agoIt's only relevant in that it "extends" the browser with a set of capabilities that it doesn't already have. You could also run everything via hosted database, but there may be situations where that is less-optimal than downloading the dataset once and leveraging the "offline compute" of a browser tab (for example, applications like ArcGIS Online)
- smallerfish 4y agoThere is room for serverless applications with a sane and reasonably complete data storage interface (which localstorage and indexeddb are not.) You could offer users the ability to backup data locally using the filesystem api (which is reasonably usable), or perhaps sync data using p2p using webrtc (which is not as usable as it should be).