Browse by type
Lightweight, high performance NodeJS Server.
Project was born out of the need for faster performing server using NodeJS. Current implementation lacks focus on performance, which can be achieved by moving parts of code to native C++ bindings.
Aim of the project is to offer an alternative solution, which is using less memory and CPU power, giving you available resources for your code or handling higher number of requests.

Currently only Linux has been tested. To install the project make sure you have build-tools installed. To build the node packages do the following:
cd node
make
The packages will be built in the dist folder, containing compiled packages as well as index.js module file. In your project copy the dist folder to:
node_modules/mns
To test the project you can use the following script
(Single process):
const http = require('mns');
let server = http.createServer((req, res) => {
res.end('Hello World!');
});
server.listen(8080, function () {
console.log('Example app listening on port 8080!')
});
(Multi process):
const cluster = require('cluster');
const numCPUs = require('os').cpus().length;
const http = require('mns');
if (cluster.isMaster) {
// Fork workers.
for (let i = 0; i < numCPUs; i++) {
cluster.fork();
}
cluster.on('exit', (worker, code, signal) => {
console.log(`worker ${worker.process.pid} died`);
});
} else {
let server = http.createServer((req, res) => {
res.end('Hello World!');
});
server.listen(8080, function () {
console.log('Example app listening on port 8080!')
});
}
My Family and Friends for supporting me!
All the fans for believing in the project!
Leandro A. F. Pereira For his wonderful Lwan project.
Alex Hultman For his wonderful uWebSockets project.
TechEmpower For Server benchmarks.
GitHub For code hosting.
Travis For code testing.
Coverity For code defects check
Copyright (c) 2017 Mitol Project - Released under the Zlib license.
$ claude mcp add Mitol \
-- python -m otcore.mcp_server <graph>