node package manager

streamhut

streamhut

stream stuff

  • Nothing is stored; only streamed.
  • Originally created this to quickly share data and files between devices.
  • Path names map to channels.
  • Anyone in the same channel can view what's streamed.

https://streamhut.net

Usage

Start server

$ npm start
 
Listening on port 8956

Start server on specific port

$ PORT=8080 npm start
 
Listening on port 8080

Development

Watch and build client scripts

$ npm run watch

Build client scripts

$ npm run build

CLI

Install

$ npm install -g streamhut

Help

$ streamhut -help
                           (   )
                          (    )
                           (    )
                          (    )
                            )  )
                           (  (                  /\
                            (_)                 /  \  /\
                    ________[_]________      /\/    \/  \
           /\      /\        ______    \    /   /\/\  /\/\
          /  \    //_\       \    /\    \  /\/\/    \/    \
   /\    / /\/\  //___\       \__/  \    \/
  /  \  /\/    \//_____\       \ |[]|     \
 /\/\/\/       //_______\       \|__|      \
/      \      /XXXXXXXXXX\                  \
        \    /_I_II  I__I_\__________________\
               I_I|  I__I_____[]_|_[]_____I
               I_II  I__I_____[]_|_[]_____I
               I II__I  I     XXXXXXX     I
            ~~~~~"   "~~~~~~~~~~~~~~~~~~~~~~~~
                                    _
        _                          | |            _
  ___ _| |_  ____ _____ _____ ____ | |__  _   _ _| |_
 /___|_   _)/ ___) ___ (____ |    \|  _ \| | | (_   _)
|___ | | |_| |   | ____/ ___ | | | | | | | |_| | | |_
(___/   \__)_|   |_____)_____|_|_|_|_| |_|____/   \__)
 
 
 
  Usage: streamhut <cmd> [options]
 
  Commands:
 
    post [options] post to a channel
    listen [options] listen on a channel
 
  Options:
 
    -h, --help             output usage information
    -V, --version          output the version number
    -h, --host <host>      host URL
    --not-secure           not using SSL.
    -c, --channel <id>     channel ID
    -t, --text <text>      text to send
    -f, --file <filepath>  file to send

Listening on a channel

$ streamhut listen -h streamhut.net -c yo
connected to wss://streamhut.net/yo
 
received Fri Jun 30 2017 14:40:14 GMT-0700 (PDT):
 
hello
 

Posting text data to a channel

$ streamhut post -h streamhut.net -c yo -t "hello"
posting data to wss://streamhut.net/yo:
 
hello
 

Posting file data to a channel

$ streamhut post -h streamhut.net -c yo -f hello.txt
posting data to wss://streamhut.net/yo:
 
hello.txt
 

Test

npm test

License

MIT