webtorrent / create-torrent

Create .torrent files
https://webtorrent.io
MIT License
341 stars 93 forks source link

feature request: BitTorrent v2 support #177

Open nanamicat opened 2 years ago

nanamicat commented 2 years ago

https://blog.libtorrent.org/2020/09/bittorrent-v2/

github-actions[bot] commented 2 years ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

resession commented 2 years ago

this feature would be great

Sec-ant commented 1 year ago

I'm working on a browser-targeted ESM package that supports creating v1, v2 or hybrid torrents, as well as bencoding and bdecoding functions. It's not production-ready for now but I'd be glad if this package will serve anyone's needs: https://github.com/Sec-ant/torrefy

ThaUnknown commented 1 year ago

I'm working on a browser-targeted ESM package that supports creating v1, v2 or hybrid torrents, as well as bencoding and bdecoding functions. It's not production-ready for now but I'd be glad if this package will serve anyone's needs: https://github.com/Sec-ant/torrefy

unfortunate that you opted to use web streams, as they are slower than node streams which are already VERY slow, personally I've already migrated all of create-torrent to use async iterators as they work on any platform and are quite a bit faster, platform independence being the big one. It's also really easy to convert iterators to/from node/web streams, I recommend you do the same ^^

Sec-ant commented 1 year ago

@ThaUnknown Thank you for the suggestion, it appears I missed the lesson 😄. I'll start looking into refactoring it.

github-actions[bot] commented 1 year ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?