Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add an example of a "document gateway" #10

Open
b5 opened this issue Nov 21, 2023 · 1 comment
Open

add an example of a "document gateway" #10

b5 opened this issue Nov 21, 2023 · 1 comment

Comments

@b5
Copy link
Member

b5 commented Nov 21, 2023

We had a user run the gateway example & immediately ask for a feature only available in documents: being able to change a directory & see changes reflected on the gateway.

We might want to consider extending iroh-gateway to support joining a document for a single sync to list keys, then drop down to the existing iroh-gateway for blob viewing. We could start simple & only accept a read ticket, then delegate all requests for content to the node addr in the ticket

@rklaehn
Copy link
Contributor

rklaehn commented Nov 21, 2023

The iroh gateway example is really an example to use iroh-bytes. So I don't think this will be simple. It does not include an iroh node.

But we could have something of a correspondence between documents and nodes. See the discussion topic for the team meeting. E.g. you could have a function to take a snapshot of a document as a collection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants