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

WebTorrent Support? #74

Open
leesalminen opened this issue Dec 23, 2022 · 5 comments
Open

WebTorrent Support? #74

leesalminen opened this issue Dec 23, 2022 · 5 comments

Comments

@leesalminen
Copy link

Hi there,

Wondering what the maintainers of astral think about adding web torrent support to the client? Meaning:

  • Events with a magnet: link would download from peers & render images/videos
  • Users could select 1/more images/videos to "upload" which would mean broadcasting to trackers and seeding the content.

Am open to contributing this to astral, just want to know if folks are amenable to this or no.

@monlovesmango
Copy link
Owner

hey! this is an interesting idea but i'm not sure I want to support this at this moment. I do agree that some sort of media support is needed, however this option is a bit niche (for example, I don't have a torrent client haha). I'd rather put my effort behind a media option based on self hosting thats accessible to everyone.

@leesalminen
Copy link
Author

leesalminen commented Dec 24, 2022

Hi there,

Just to clarify here, WebTorrent works entirely in the browser with pure JS. Users aren’t required to have any standalone software, or take any additional steps at all, to use WebTorrent.

Basically astral would include a JS package which turns your browser into a torrent client.

100% agree that whatever the solution is, it needs to be accessible to anyone.

Check out https://github.com/webtorrent/webtorrent for docs and https://instant.io for demo.

@monlovesmango
Copy link
Owner

ok i'm listening (and clearly don't know much about torrents). will review both of these when I get time.

I am in the process of creating a traditional self hosted media server that integrates with astral based on nip05 in rust. see https://github.com/monlovesmango/hostr. how hard is it to retrofit traditional media server to use torrent instead?

@kimico
Copy link

kimico commented Dec 27, 2022

Hey @leesalminen :) how are you?

I started doing something (Lol About ME) and I still didn't have this context.

https://astral.ninja/note15v47k09w4ap444yr04gx08am2e470m9p48al8cl83tkdagaraz5sr8rdhz

This is my progress, what do you think of the idea?:

kimico@4bdaf37

Do you already have any code?

I see some challenges(i'm ignoring it), like making sure "your media" doesn't disappear (peer count helps with that) but i will keep it simple.

@leesalminen
Copy link
Author

Hey @leesalminen :) how are you?

I started doing something (Lol About ME) and I still didn't have this context.

https://astral.ninja/note15v47k09w4ap444yr04gx08am2e470m9p48al8cl83tkdagaraz5sr8rdhz

This is my progress, what do you think of the idea?:

kimico@4bdaf37

Do you already have any code?

I see some challenges(i'm ignoring it), like making sure "your media" doesn't disappear (peer count helps with that) but i will keep it simple.

come join us here: damus-io/damus#272

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

3 participants