filepizza icon indicating copy to clipboard operation
filepizza copied to clipboard

Headless? Perhaps via PhantomJS?

Open nogweii opened this issue 10 years ago • 5 comments

Is it possible to launch a headless browser to mange the upload half of sharing a file? My idea is a command-line fire & forget, since I tend to close my browser often.

nogweii avatar Jul 13 '15 07:07 nogweii

This is a great idea. I don't believe PhantomJS currently supports WebRTC, though. Since the app is isomorphic, we should be able to spin up a connection without running a browser instance.

PeerJS doesn't have good support for isomorphic apps, so I'm considering migrating to the recently released Socket P2P or WebTorrent to support stuff like this. I'll dive into this when I find some time. :)

kern avatar Jul 15 '15 21:07 kern

Some sort of CLI client would be awesome. :+1:

ronilaukkarinen avatar Jan 14 '16 19:01 ronilaukkarinen

How about SlimerJS? Or actually it does not really need to be headless - just CLI would do as well, as having a browser process already running is quite common for a desktop environment.

Or using Electron it should be possible to build 40+mb standalone app..

bzz avatar Feb 26 '16 06:02 bzz

Don't have time to dedicate to this but happy to merge a PR on this.

kern avatar Sep 04 '16 00:09 kern

There's a great WebRTC library in Go by Pion: https://github.com/pion/webrtc A trivial upload client could be written with that. Go being compiled and easy to cross-compile feels like a better idea than JS for a CLI. Perhaps pending #102 ... IDK how WebTorrent works but it'd probably be simpler once that's gone.

willstott101 avatar Mar 13 '20 20:03 willstott101