Live data from Hacker News

Seashells – Pipe output from command-line programs to the web in real time

seashells.io

21–30 of 45 posts

Re: Seashells – Pipe output from command-line programs to the web in real time

#21

I created something similar years ago and it's open source: https://stream.ht/ Try it out, you can pipe your terminal: exec > >(nc stream.ht 1337) 2>&1 Or just pipe a file: tail -F file.log | nc stream.ht 1337 Pipe htop (delay is required to see share url) (sleep 5; htop) | nc stream.ht 1337 Doesn't require installing anything! Requires netcat which is installed on most *nix systems but you can use a plain tcp socket…

Streamhut seems to be a more mature version of OPs.

The window for viewing streams appears to even have commenting (and file/image sharing?). I also like how you lead with the "stream the whole terminal" example which lets me see how I can continue streaming a terminal instead of just piping a single program like htop to it.

Another plus is you've open sourced the server-side unlike Seashells/OP: https://github.com/streamhut/streamhut

Nice work and thanks!

Re: Seashells – Pipe output from command-line programs to the web in real time

#22
blatant self promotion of related tools

* oho[1] is the best ANSI CLI->HTML tool out there (If I'm wrong file a ticket ;) )

* fenestro[2] takes HTML output generated by your command line and displays it (macOS only). If you shove multiple things into it quickly it'll display the list of them in the sidebar. Later requests for display will be in new windows.

[1] https://github.com/masukomi/oho/#readme

[2] http://fenestro.xyz/

Re: Seashells – Pipe output from command-line programs to the web in real time

#23
post #7

Earlier quoted context omitted.

I've never tried any of the following, but have come across them: * https://github.com/vitorbaptista/shellshare * https://tmate.io/ * https://github.com/yudai/gotty - actually gives you a tty in a browser * https://github.com/dtinth/ttycast (edit: formatting)

tmate is awesome for pair programming

But it goes through a third party server instead of locally at least by default.

Re: Seashells – Pipe output from command-line programs to the web in real time

#27
post #24

On a related note.. are there any good free shell session sharing tools out there? I used to use nutty.. but it went away.

tmux https://www.redhat.com/sysadmin/ssh-tmux-screen-sharing

tmate makes tmux sharing much easier in the face of firewalls, etc, if you are willing to trust their third party servers. You can run your own servers if you don't. The vagrant share plugin is also nice, if you happen to use vagrant, and trust the third party servers.

Re: Seashells – Pipe output from command-line programs to the web in real time

#28

I created something similar years ago and it's open source: https://stream.ht/ Try it out, you can pipe your terminal: exec > >(nc stream.ht 1337) 2>&1 Or just pipe a file: tail -F file.log | nc stream.ht 1337 Pipe htop (delay is required to see share url) (sleep 5; htop) | nc stream.ht 1337 Doesn't require installing anything! Requires netcat which is installed on most *nix systems but you can use a plain tcp socket…

I really appreciate that the default port in both examples is 1337

I wonder if that could get registered for this purpose somehow?
Post reply on HN