I wanted something that could take output from STDOUT and send it straight to Etherpad. This is my implementation.

It works in TTY (as you type) mode, or you can redirect STDOUT to it.

node etherpad-stream.js mypad

This will open a TTY session with Etherpad, and everything you type will be sent to the mypad pad.

echo "Hello World" | node etherpad-stream.js mypad
ping | node etherpad-stream.js testpad
ping | node etherpad-stream.js

If you do not pass a pad name to etherpad-stream.js, your computer's hostname will be used as the pad name instead.

First you'll need to clone this repo or download the files and unzip.

Open etherpad-stream.js and modify the settings:

var host = '';
var port = 80;
var apiKey = '123';

You can get your API key from your Etherpad server - have a look in APIKEY.txt


npm install

And you should be good to go.

  • I can't figure out how to detect a backspace in TTY mode, so you can't delete text. You'll have to use your browser for now.

  • Find a nicer way of putting this in your path