Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@pan-os/heimdall
Advanced tools
A modular approach to add pseudo microservices organization into restify apps
An organizational and modular approach to handle pseudo microservices into restify applications.
The whole idea behind this project is to allow you to manage your API using a structure easy to maintain and split into several packages, heimdall wants to transform your mindset to microservices and help you to keep everything in place.
$ yarn add @pan-os/heimdall
TBD
/**
* Module Dependencies
*/
const Heimdall = require('heimdall');
/**
* Pseudo microservices
*/
const { user } = require('../services');
module.exports = (server) => {
// Attach microservices to /
Heimdall.attachMicroservice(server, user);
};
Represents your microservices
Example Service Structure
// index.js
module.exports = [
{
method: 'post',
path: '/user/register',
action: (req, res, next) => { ... }
}
];
// And you will be able to do a post to http://localhost:3000/user/register and
// also should be able to manipulate/create your response into your action callback
$ yarn start:[env] (dev, prod)
Thanks goes out to all these wonderful people (emoji key):
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
FAQs
A modular approach to add pseudo microservices organization into restify apps
The npm package @pan-os/heimdall receives a total of 4 weekly downloads. As such, @pan-os/heimdall popularity was classified as not popular.
We found that @pan-os/heimdall 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.