Git Product home page Git Product logo

Comments (5)

cinnamon-bun avatar cinnamon-bun commented on August 25, 2024

There's also a mess of filesystem APIs in browsers which mostly only work in Chrome, so we should probably avoid them.

https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API (no firefox support)

https://developer.mozilla.org/en-US/docs/Web/API/File_and_Directory_Entries_API/Introduction (limited firefox support)

https://developer.mozilla.org/en-US/docs/Web/API/File_and_Directory_Entries_API/Firefox_support

from earthstar.

cinnamon-bun avatar cinnamon-bun commented on August 25, 2024

There's also the Service Workers Cache API to consider.

Service workers only work when served over https or localhost. If you're trying to self-host a webapp on a raspberry pi, you're probably stuck on http and can't use service workers.

from earthstar.

cinnamon-bun avatar cinnamon-bun commented on August 25, 2024

Other ways to avoid the 5mb localStorage limit

  • Run your app in node and use StorageSqlite which has no size limits. Serve a webapp from there over localhost to the browser.
  • Make an Electron app which should be able to use StorageSqlite

from earthstar.

cinnamon-bun avatar cinnamon-bun commented on August 25, 2024

IndexedDb resources

Tutorials

Libraries

  • idb - tiny wrapper that mostly adds Promise support
  • dexie - another wrapper to make it easier to use
  • fake-indexeddb - in-memory version of indexeddb, works in node, maybe useful for testing, but unsure how accurate it is at replicating browser bugs/quirks. Can also be used underneath dexie and maybe idb

from earthstar.

cinnamon-bun avatar cinnamon-bun commented on August 25, 2024

We could also build on top of RXDB which is very fancy, but it in turn is built on top of pouchdb which has its own indexes and data sync behavior, so this would be a stack that's too tall.

Could... Earthstar... be a storage adapter... underneath RXDB??? Unknown

from earthstar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.