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.
nest-status-monitor
Advanced tools
Simple, self-hosted module based on Socket.io and Chart.js to report realtime server metrics for Nest.js based node servers.
Demo can be found here
npm install nest-status-monitor --save
@Module({
imports: [StatusMonitorModule.setUp(statusMonitorConfig)],
/status
npm install nest-status-monitor@0.0.3 --save
@Module({
imports: [StatusMonitorModule.setUp(statusMonitorConfig)],
/status
cd examples/test-status-monitor
npm i
npm start
http://localhost:3001
Monitor can be configured by passing options object during initialization of module.
Default config:
pageTitle: 'Nest.js Monitoring Page',
port: 3001,
path: '/status',
ignoreStartsWith: '/healt/alive',
spans: [
{
interval: 1, // Every second
retention: 60, // Keep 60 datapoints in memory
},
{
interval: 5, // Every 5 seconds
retention: 60,
},
{
interval: 15, // Every 15 seconds
retention: 60,
}
],
chartVisibility: {
cpu: true,
mem: true,
load: true,
responseTime: true,
rps: true,
statusCodes: true,
},
healthChecks: []
You can add a series of health checks to the configuration that will appear below the other stats. The health check will be considered successful if the endpoint returns a 200 status code.
// config
healthChecks: [
{
protocol: 'http',
host: 'localhost',
path: '/health/alive',
port: 3001,
},
{
protocol: 'http',
host: 'localhost',
path: '/health/dead',
port: 3001,
},
];
MIT License © Ivan Vasiljevic
Forked from express-status-monitor
FAQs
Realtime Monitoring for Express-based Node applications
The npm package nest-status-monitor receives a total of 236 weekly downloads. As such, nest-status-monitor popularity was classified as not popular.
We found that nest-status-monitor 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.