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

Supporting a Publishing use-case #116

Closed
cinnamon-bun opened this issue Apr 11, 2021 · 1 comment
Closed

Supporting a Publishing use-case #116

cinnamon-bun opened this issue Apr 11, 2021 · 1 comment
Labels
enhancement New feature or request figure out

Comments

@cinnamon-bun
Copy link
Member

cinnamon-bun commented Apr 11, 2021

What if you want to publish some webpages via Earthstar? Here's a couple ways:

  1. Get Earthstar support in Agregore browser by finishing earthstar-fetch. It specifies an URL scheme for viewing workspace document data in a browser.

  2. (Easier) Add a new URL pattern to earthstar-pub which, in addition to syncing, can also just serve document content as regular HTTP responses. We could try to match the URL scheme from Earthstar-Fetch.

Number 2 is really nice -- you just spin up a pub, sync your data to it, and it acts as a web gateway for viewing webpages stored in your Earthstar documents. You could even embed some javascript in there and distribute whole Earthstar apps that way.

We also need #7 Invite-only workspaces so that people can read and help host the data without getting the ability to write to it.

See also in earthstar-pub, Serve web content out of Earthstar documents right from the pub

@sgwilym
Copy link
Contributor

sgwilym commented Apr 28, 2022

The new replica server framework has an extension for this!

@sgwilym sgwilym closed this as completed Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request figure out
Projects
None yet
Development

No branches or pull requests

2 participants