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

Existing torrent #36

Closed
btimby opened this issue Jan 12, 2021 · 4 comments
Closed

Existing torrent #36

btimby opened this issue Jan 12, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@btimby
Copy link
Contributor

btimby commented Jan 12, 2021

Hi,

I am interested in adding Bugout RPC / gossip protocol capabilities to an existing application.

I am already using WebTorrent and seeding a torrent. Thus I would like to initialize Bugout with my torrent, adding the protocol extensions to the swarm.

I am correct that this would work? Can Bugout be used in conjunction with an existing seeding torrent?

I plan to make a PR that changes the Bugout ctor to accept a torrent instance, in a fashion similar to how it accepts an optional WebTorrent (client) instance.

FWIW, I am working on a solution much like Bugout with the following differences:

  • my solution is a browser extension.
  • "applications" are bundled into zip files and deployed via webtorrent in a browser tab.
  • a browser protocol handler (web+ug://) allows users to disseminate a URL that loads a hosted application within a capable browser.

So the workflow is:

  1. Build or download an app bundle.
  2. Open browser, click extension icon, select "serve application"
  3. Browse to app bundle.
  4. Copy provided link and paste it to web sites or an email message etc like normal.

Users must also have the extension installed to visit the link.

I currently have a working prototype, the browser extension works in Firefox, Chrome and Opera (probably others too).

Web Underground (working title):
https://github.com/btimby/ug

@chr15m
Copy link
Owner

chr15m commented Jan 12, 2021

Sounds awesome! Yes, I'll merge a PR that adds Bugout to an existing torrent. The library should probably have been architected like a web torrent extension to begin, with so this change would bring that closer.

Cool idea. Let me know when you release Web Underground and I'll help spread the word.

@btimby
Copy link
Contributor Author

btimby commented Jan 12, 2021

@chr15m Thanks for the reply! PR will be inbound once I have tested everything. Also, thanks for the effort you put into Bugout, it is a cool application, I love the RPC interface WITH CALLBACKS! I have never seen RPC with callbacks before, that is slick.

@btimby
Copy link
Contributor Author

btimby commented Feb 9, 2021

It took me a while to get everything lined up, but I made a PR including my changes to Bugout. I am happy to make further modifications if there is anything you would like to see me do.

@chr15m chr15m added the enhancement New feature or request label Apr 9, 2021
@chr15m
Copy link
Owner

chr15m commented Apr 9, 2021

Fixed by #39.

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

No branches or pull requests

2 participants