node package manager
Love JavaScript? Your insights can make it even better. Take the 2017 JavaScript Ecosystem Survey »

a basic enabled webserver with a based browser bridge


  • Provides a cross-browser bridge to through
  • Acts as a static file server
  • Built-in Basic Auth options
  • Designed to provide a minimal browser-bridge to ( no extra cruft )

Note: For a more full-featured browser bridge, check out the hook.js project.


 npm install -g

How does it work? creates an http server for browsers to connect to. Once connected, these browsers can send and receive messages to the server and each other with websocket support. But...that is boring. Anyone can do that.


In addition to standard cross-browser websockets, hookio-webserver itself extends the Hook prototype, which means it can easily connect to other hooks ( or have other hooks connect to it ) to seamlessly broadcast and re-broadcast messages. This means that you can now connect any browser to communicate with your network.

When to use?

hookio-webserver is the bare minimal for component required for opening up a based websocket server which communicates with If you are looking to build a full-featured real-time web application with, you should use the hook.js project.


as a stand-alone binary



var Webserver = require('').Webserver;
var webserver = new Webserver({
  name: '',
  port: 9000,
  webroot: './public'

Starts up a webserver which takes all incoming HTTP requests and emits the request headers and body to your network2