@vihat/bignum
v6.0.0
Published
## v.0.5.0
Readme
Bignum
v.0.5.0
Installation
npm install bignum -gStarting Built-in Apps
bignum website
bignum load-balancer
bignum sink
bignum replDebugging
To enable debugging in bignum you must set the environment variable DEBUG. There are two levels of debugging you'll want to inspect.
export DEBUG=bignum::*,resource::*This will enable debugging messages for all resources and bignum itself.
Discovery and Event Emitter Mesh
All bignum apps automatically create or join a new event emitter mesh when started. Each app is able to communicate to each other through the bignum.mesh.emitter Event Emitter API.
Default discovery settings use localhost for all apps. Custom host and port options can be passed into bignum.start
Websocket gateway
If bignum is in server mode, a WebSocket gateway will be opened for incoming communication. This can be visited directly in the browser or connected to with the mesh resource.
Authorization examples are available here
Apps built with bignum
website
Minimal express based website application with built-in support for routes, sessions, static file-serving, etc.
Ideal for quickly serving up static content or quickly adding custom http route logic.
load-balancer
Minimal http-proxy based HTTP load balancing for multiple websites. Will automatically add website apps to it's proxy table apps based on domain, host, and port.
Ideal for routing incoming HTTP traffic to many websites. The website app will register itself automatically with the load-balancer.
sink
Event sink ( dump ) for bignum.mesh.emitter. The sink will capture any event emitted on the mesh network and write the event to STDOUT.
Ideal for aggregating all events on the mesh to standard output ( such as a log file ).
repl
Simple interactive repl for communicating with the mesh network.
Ideal for debugging or communicating with nodes via bignum.mesh.emitter
voice-recognition
Browser based Voice Recognition Gateway for communicating with the mesh network.
Ideal for triggering mesh events with voice commands.
