ishubin / schemio

Web based diagramming app that lets you build interactive diagrams and prototypes
https://schem.io
Mozilla Public License 2.0
89 stars 3 forks source link

Consider alternative storage backends #607

Open almereyda opened 2 years ago

almereyda commented 2 years ago

Coming from the https://0data.app/ / http://unhosted.org/ / https://nobackend.org/ perspective, we know of alternative storage engines to Google Drive, which offer an authentication API plus trivial remote file storage for Browser clients.

Any of:

for example is able to store JSON files remotely, such as what we find in the offlineScheme object. Even a CouchDB connector, as presented with stackedit.io, could be considered.

Such a support could offer to run online Schemio instances completely independent from Google's infrastructure.

almereyda commented 2 years ago

Together with "URL storage", and "remote URL sources" as suggested in #609, we could also consider to employ the sharing features of each of these providers, and have interacted schemes distributed with simple sharing of a URL (to schemio.app or custom deployments), that reference another URL, which is then being loaded and displayed.

ishubin commented 2 years ago

I like this idea! Thanks! I did want to have more storage providers but didn't have enough time to work on that.

almereyda commented 2 years ago

These ones should make it easy for you, as long as we consider that authentication and persistence are coupled here.

Also, another common provider that people could probably easily make use of, is S3. 🤯

Didn't think of that before, but if users provide valid credentials and endpoints to its HTTP API to the client, they would not even have to share the secret with Schemio server.

almereyda commented 2 years ago

Through https://github.com/ishubin/schemio/issues/611#issuecomment-1210512036 I also remembered, that GitHub and GitLab also offer file storage and retrieval (into repositories) via their APIs.