
Research
Node.js Fixes AsyncLocalStorage Crash Bug That Could Take Down Production Servers
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.
moped-router
Advanced tools
Router for a moped application
npm install moped-router
moped-router can be used as a standalone router. It can handle being given any aribrary Object with a "path" property, which will be treated as the moped request.
cars.js
var MopedRouter = require('moped-router');
var app = new MopedRouter();
app.get('/user/:id', function (req) {
return db.users.find({_id: req.params.id});
});
var carApp = new MopedRouter();
var cars = {
volvo: {color: 'red', size: 'big'},
bmw: {color: 'black', size: 'small'}
};
carApp.get('/color', function (req) {
return cars[req.params.car].color;
});
carApp.get('/size', function (req) {
return cars[req.params.car].size;
});
app.use('/car/:car', carApp);
app.handle({method: 'get', path: '/car/volvo/color'}).then(function (res) {
assert(res == 'red');
});
module.exports = app;
app.use lets you mount sub-applications. You may provide an optional base-path for the sub-application (which defaults to /). This path is a string, and does not get pattern matching like other paths.
Register a handler that is called for each request that has the given METHOD and path (using express style path matching). These can be made asynchronous by returning promises.
Just like app.METHOD(path, handlers...) except for it targets every method.
Handle a request and get a promise for the results
Moped provides a .run method that behaves differently depending on whether it is on the client or the server. It also passes in req and res with some helpful methods and properties.
MIT
FAQs
Router for a moped application
We found that moped-router demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.

Research
/Security News
A malicious Chrome extension steals newly created MEXC API keys, exfiltrates them to Telegram, and enables full account takeover with trading and withdrawal rights.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.