Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@hstech/memviz
Advanced tools
Tool for the visualization of the Node.js memory usage in an application.
npm i -S @hstech/memviz
Just add this code to your index.js
const memViz = require("@hstech/memviz");
memViz({ port: 10101 });
All options are optional
PS: for S3 snapshot upload please provide these environment variables
AWS_CREDENTIALS_ACCESSKEY_ID // AWS access key associated with an IAM user or role AWS_CREDENTIALS_SECRET_ACCESS_KEY // The secret key associated with the access key
{
port: 10100, // Port (default)
interval: 300, // Refresh interval of data in milliseconds (default)
duration: 120000, // Duration of the chart in milliseconds, how much time of data it will show. (default)
application: 'Application' // Application name (default)
s3: { // If s3.bucket is null, the heapsnapshot will be written to disc
bucket: 'YOUR_BUCKET_NAME', // default is null
folder: '/sub-folder' // default is '/'
}
}
You can zoom in/out the chart using the mouse wheel or via a pinch gesture, you can also move the chart left or right.
Visit any of your Visualizer host with the path /memviz/multiview
example http://localhost:10100/memviz/multiview
.
Let's say you want to display 3 charts on the same view, for these hosts
http://localhost:10100/memviz/
http://localhost:10101/memviz/
http://localhost:10102/memviz/
and you want to display 2 in each row, then your url should look like this:
http://localhost:10100/memviz/multiview?perRow=2&hosts=http://localhost:10100/,http://localhost:10101/,http://localhost:10102/
To integrate memviz into Koa, all you have to do is to pass the Instance and the port to memviz
// Koa instance is in app variable
memViz({
koa: app, // Koa instance
port: 3000, // Koa instance port
interval: 300,
duration: 120000,
application: "Application 1",
});
Then visit this path /memviz/
you should see the memory graph
FAQs
Tool for the visualization of the Node.js memory usage in runtime.
The npm package @hstech/memviz receives a total of 0 weekly downloads. As such, @hstech/memviz popularity was classified as not popular.
We found that @hstech/memviz 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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.