- Easy-to-use syntax unified across protocols
- Flexible and extensible, load your own transports and routines
- Can be used between servers or in the browser
- Lower resource footprint and better throughtput than plain sockets
- Zero dependencies and can be bundled down to ~5kb!
The performance gain comes from buffering packets before sending them- eventually sending batches instead of individual packages. The more traffic getting processed, the better the improvement. You can read more about the algorithm here
Install the core package
npm install kalm
Install the transport layer ('tcp' for example)
npm install @kalm/tcp
npm run build
See the examples folder.
Kalm uses the standard
NODE_DEBUG environment variable. Just include
kalm in your value.
npm run bench
If you think of something that you want, open an issue or file a pull request, we'll be more than happy to take a look!
Apache 2.0 (c) 2019 Frederic Charette