fireproof-storage / fireproof

Realtime database, runs anywhere. Install Fireproof in your front-end app or edge function, and sync data via any backend.
https://fireproof.storage
Other
219 stars 16 forks source link

Share `read-only` web3.storage capabilities #105

Open DougAnderson444 opened 2 months ago

DougAnderson444 commented 2 months ago

I'm looking to share read-only pointers to a database. After seeing this comment I'm under the impression this isn't a feature yet.

Am I right in deducing that if we add a function similar to shareWith(did) with only can: 'clock/head' we would create a read-only version of shareWith?

https://github.com/fireproof-storage/fireproof/blob/a7391cc03b01b631efc74421d74d585dcb048fa4/packages/connect-ipfs/src/connect-ipfs-sharing.xts#L21

DougAnderson444 commented 2 months ago

Also, what is the .xts extension that is being used here?

jchris commented 2 months ago

Thanks @DougAnderson444 -- this is a .ts file I just changed it because it is breaking the build. The IPFS connector is a long story, but the short version is the architecture is right, but it's currently way more complex than it needs to be, because the web3.storage team added delegation features we can use to no longer need most of that code. I'm not sure where to find it in their docs, but basically their email validation agent sets up the ablity to delegate so that Fireproof code doesn't have to manage devices anymore.

IPFS has gotten to be higher priority in the last couple of weeks, so if you are up for it, I'd love to have a call and learn more about your use case. Or you can email me async at jchris@fireproof.storage

jchris commented 2 months ago

Thanks for the call. Check out the demo video linked here https://github.com/w3s-project/project-tracking/issues/1#issuecomment-2042758387

jchris commented 2 months ago

@DougAnderson444 I updated the IPFS connector code so the build is clean. I haven't had a chance to test drive it yet, but at least now the busywork is cleaned up https://github.com/fireproof-storage/fireproof/pull/108

jchris commented 1 month ago

Tracking current client update progress here https://github.com/fireproof-storage/fireproof/issues/111