
Research
Namastex.ai npm Packages Hit with TeamPCP-Style CanisterWorm Malware
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.
falcor-hapi
Advanced tools
Server middleware for falcor-hapi
Working usage example of the basic repro in falcor-hapi-demo/
Minimalistic example
var FalcorServer = require('falcor-hapi');
var Hapi = require('hapi');
var TestRouter = <your router here>;
var app = new Hapi.Server();
app.connection({
host: "localhost",
port: 9090
});
app.route({
method: ['GET', 'POST'],
path: '/model.json',
handler: FalcorServer.dataSourceRoute(function(req, res) {
return new TestRouter();
})
});
app.start();
You can also register this module as an Hapi Plugin and use its provided Falcor handler.
this.req and this.reply.var Hapi = require('hapi');
var app = new Hapi.Server();
app.connection({
host: "localhost",
port: 9090
});
app.register(require('falcor-hapi'), function (err) {
if (err) {
console.error('Failed to load plugin:', err);
}
app.route({
method: ['GET', 'POST'],
path: '/model.json',
handler: {
falcor: {
routes: routes, // Your routes
cacheRoutes: true, // Whether to cache your routes, default to true
options: {debug: true}, // Option to give to Falcor router
initialize: function() { // Optional initialize method
this.foo = this.req.payload.meaningoflife || 42;
},
routerClass: MyRouterClass // Optional routerClass to use
}
}
});
app.start();
});
Please run linting before pushing on repo
npm run lint
FAQs
A falcor server for hapi.
The npm package falcor-hapi receives a total of 16 weekly downloads. As such, falcor-hapi popularity was classified as not popular.
We found that falcor-hapi demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.