TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Seashells – Pipe output from CLI apps to the web in real time

356 pointsby anishathalyealmost 8 years ago

33 comments

anishathalyealmost 8 years ago
Hi HN!<p>I made a service to enable me to easily monitor long-running experiments (e.g. training neural nets). I thought it would be generally useful, so I&#x27;m opening it up to the public. I&#x27;m curious to hear what you all think!<p>Read a little bit more about the motivation here, if you&#x27;re interested: <a href="http:&#x2F;&#x2F;www.anishathalye.com&#x2F;2017&#x2F;07&#x2F;10&#x2F;seashells&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.anishathalye.com&#x2F;2017&#x2F;07&#x2F;10&#x2F;seashells&#x2F;</a>
评论 #14740194 未加载
评论 #14739650 未加载
评论 #14737506 未加载
评论 #14742746 未加载
评论 #14737444 未加载
_Marak_almost 8 years ago
Looks similar to the &quot;bpipe&quot; project I was experimenting with three years ago, except it appears seashells is only a one-way pipe ( can&#x27;t pipe data back from browser into Unix pipe ).<p>The project I made has two two-way bindings from Unix pipes directly to DOM elements and supports DOM events.<p>Like:<p><pre><code> bpipe -s &quot;#myInput&quot; -e &quot;keyup&quot; | less echo &quot;hello there&quot; | bpipe -s &quot;#myDiv&quot; </code></pre> If anyone is looking for inspiration on this sort of thing check out: <a href="https:&#x2F;&#x2F;github.com&#x2F;Marak&#x2F;bpipe" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Marak&#x2F;bpipe</a>. Includes both client and server.
flaviuspopanalmost 8 years ago
This is one of those perfect &quot;I had a problem, made a solution, and others think it&#x27;s neat&quot; posts that make HN impossible to miss. Well done!
jedbergalmost 8 years ago
I love the idea but I&#x27;m very wary of piping shell output directly to a third party. Command line tools are notorious for outputting sensitive data to stdout.<p>Any chance we can get a self hosted version? It would be awesome if I could host it internally!
评论 #14738798 未加载
评论 #14741390 未加载
评论 #14741414 未加载
评论 #14740380 未加载
laumarsalmost 8 years ago
&gt; <i>While you can use netcat for convenience (because it comes preinstalled on most systems)...</i><p>I love netcat but for those without you can do this from within Bash:<p><pre><code> echo &quot;example&quot; &gt; &#x2F;dev&#x2F;tcp&#x2F;seashells.io&#x2F;1337</code></pre>
评论 #14738779 未加载
评论 #14738961 未加载
评论 #14738953 未加载
digganalmost 8 years ago
Sweet! Very cool tool and can directly think of a few nice use cases for it.<p>Something to demo the &quot;real-time&quot; aspects is to use it together with IPFS&#x27;s P2P pubsub functionality.<p><pre><code> ipfs daemon --enable-pubsub-experiment # Daemon now running with pubsub ipfs pubsub sub mytopic | nc seashells.io 1337 # And now, everything you publish to &quot;mytopic&quot; appears on the seashell website ipfs pubsub pub mytopic &quot;Hello World&quot; # See content on website</code></pre>
mbonzoalmost 8 years ago
Hi, I made a quick video if you want to see how seashells work:<p><a href="https:&#x2F;&#x2F;youtu.be&#x2F;EAKrLprUcK4" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;EAKrLprUcK4</a><p>I think that a cooler name for this is SEEshells ;)
评论 #14741890 未加载
评论 #14740713 未加载
pollyannasalmost 8 years ago
I love any service that you can use without registering.
评论 #14738126 未加载
gvalkovalmost 8 years ago
This is pretty neat. I wrote something similar at one point: see wtee [1] and tailon [2]. They&#x27;re both small, self-hosted tornado + sockjs + vanilla typescript webapps.<p><pre><code> [1]: https:&#x2F;&#x2F;wtee.readthedocs.io&#x2F;en&#x2F;latest&#x2F; [2]: https:&#x2F;&#x2F;tailon.readthedocs.io&#x2F;en&#x2F;latest&#x2F;</code></pre>
Walkmanalmost 8 years ago
I tried it with SSH chat:<p><pre><code> ssh chat.shazow.net | nc seashells.io 1337 serving at https:&#x2F;&#x2F;seashells.io&#x2F;v&#x2F;FYh2Dt7t </code></pre> It is really real time! much wow!
评论 #14740688 未加载
chubotalmost 8 years ago
I wrote something like this a few years ago, except you could write shell scripts to transform the output to HTML. For example, if you have a CSV file, you could write a plugin to turn it into an HTML table.<p><a href="http:&#x2F;&#x2F;www.oilshell.org&#x2F;webpipe&#x2F;doc&#x2F;webpipe.html" rel="nofollow">http:&#x2F;&#x2F;www.oilshell.org&#x2F;webpipe&#x2F;doc&#x2F;webpipe.html</a><p>(If you click through the image there is a screencast)<p><a href="https:&#x2F;&#x2F;github.com&#x2F;andychu&#x2F;webpipe" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;andychu&#x2F;webpipe</a><p>This was mildly successful, although I didn&#x27;t feel the UI was that great. It can be a little awkward to have the GUI in a separate window than the CLI.<p>Really I wanted some kind of tiling window manager, but I tried a few and they were surprisingly uncomfortable for a heavy CLI user like myself.<p>I still think there is some way to unify the CLI and GUI that hasn&#x27;t been invented.
m45t3ralmost 8 years ago
You could do something similar with <a href="https:&#x2F;&#x2F;papertrailapp.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;papertrailapp.com&#x2F;</a> or something else that support plain text forwarding. The advantage is that it would also support encryption, that this one does not seem to support.<p>The advantage that I can see of this service is that it does not require any setup.<p>Disclaimer: I don&#x27;t work for Papertrail or anything, we just use it on work to store our logs.
评论 #14737456 未加载
benasalmost 8 years ago
Nice job! We all like free services without registration :-)<p>This is similar to <a href="https:&#x2F;&#x2F;github.com&#x2F;benas&#x2F;gossed" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;benas&#x2F;gossed</a> (uni-directional) and <a href="http:&#x2F;&#x2F;websocketd.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;websocketd.com&#x2F;</a> (bi-directional) tools.<p>Both written in golang and open source.
DaveWMalmost 8 years ago
Nice. I wrote something similar to this a while ago, except aimed primarily at mobile users. <a href="https:&#x2F;&#x2F;davewm.github.io&#x2F;phonsole-client&#x2F;" rel="nofollow">https:&#x2F;&#x2F;davewm.github.io&#x2F;phonsole-client&#x2F;</a>
srhynealmost 8 years ago
Nice job, Amish! I made a similar project.<p><a href="https:&#x2F;&#x2F;tailtub.com" rel="nofollow">https:&#x2F;&#x2F;tailtub.com</a><p>What I really want is do is to allow users to leverage PubNub&#x27;s Blocks system to create serverless awk&#x27;like aggregators in JS.
mmanfrinalmost 8 years ago
What a perfect name.
helbalmost 8 years ago
This is great, thank you! It even supports colors (and other escape codes i guess) and makes clickable links from URLs.<p>Gentoo ebuilds if anyone is interested: <a href="https:&#x2F;&#x2F;github.com&#x2F;helb&#x2F;gentoo-overlay&#x2F;tree&#x2F;master&#x2F;app-shells&#x2F;seashells" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;helb&#x2F;gentoo-overlay&#x2F;tree&#x2F;master&#x2F;app-shell...</a>
potaalmost 8 years ago
Any plans to release a self-hosted version?
altharazalmost 8 years ago
That&#x27;s a really cool idea!<p>I&#x27;d love to see this feature on Slack or Mattermost, to create instant and easy Snippets.
评论 #14742324 未加载
评论 #14741418 未加载
forkforkalmost 8 years ago
I&#x27;m a huge fan of these simple projects that are not attempting to create a company, but instead sharing a useful tool.<p>A similar one I put together last year for my own uses: <a href="http:&#x2F;&#x2F;textdash.xyz&#x2F;" rel="nofollow">http:&#x2F;&#x2F;textdash.xyz&#x2F;</a>
bberenbergalmost 8 years ago
Slightly different from <a href="https:&#x2F;&#x2F;github.com&#x2F;mthenw&#x2F;frontail" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mthenw&#x2F;frontail</a> but similar type of thinking. Will be interesting to see how you can evolve security and management.
评论 #14737488 未加载
pettersalmost 8 years ago
I love the fact that there are no dependencies. Just piping to netcat is really clever. Good job.
tyingqalmost 8 years ago
Looks interesting, but there seems to be a built in conflict where you say it&#x27;s meant for &quot;long running&quot;, but then also reap these after 24 hours.<p>Can you clarify how they are reaped? Is it a straight timer, or only after X hours of no reads + no writes?
评论 #14737420 未加载
mbonzoalmost 8 years ago
Hi guys, I made a video about the cool ways of implementing Seashells. If you&#x27;re interested: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=QokyXiltoCk" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=QokyXiltoCk</a>
评论 #14740408 未加载
ellen76almost 8 years ago
Bermain semakin seru di game Laga SM558 Penasaran ? silhkan Daftar <a href="http:&#x2F;&#x2F;www.daftarsm558indo.com" rel="nofollow">http:&#x2F;&#x2F;www.daftarsm558indo.com</a> laga Sabung Ayam dan Adu Banteng Terpopuler Saat ini
AdamJacobMulleralmost 8 years ago
Watch my raid rebuild: <a href="https:&#x2F;&#x2F;seashells.io&#x2F;v&#x2F;e5KtSGPW" rel="nofollow">https:&#x2F;&#x2F;seashells.io&#x2F;v&#x2F;e5KtSGPW</a><p>It&#x27;s like watching paint dry, only more boring.<p>(Neat service though!)
kawsperalmost 8 years ago
I know that Buildkite does something like to view the progress of our builds, but I have always been curious how one might implement it nicely.<p>I like this approach with a simple pipe.
evandalmost 8 years ago
I&#x27;ve put together a snap of this. If you&#x27;re on Ubuntu you can `sudo snap install seashells` then `echo hello | seashells`.
vdmalmost 8 years ago
Reminds me of <a href="http:&#x2F;&#x2F;rtail.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;rtail.org&#x2F;</a>
alrpalalmost 8 years ago
Usually Id run a process in screen and then ssh to check up on it. Does this have any advantages?
评论 #14740164 未加载
skratloalmost 8 years ago
This is great! Keep it up!
nyadesalmost 8 years ago
i really love it! stuff like this and ngrok are great ideas.
评论 #14750211 未加载
simpxalmost 8 years ago
cool idea! The best part is it works even without a cli!<p>can&#x27;t wait to see a self hosted version :)