Security News
UK Officials Consider Banning Ransomware Payments from Public Entities
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
pachelbel is a query performance monitor for the
express framework using the
node-pg driver for PostgreSQL. It
works by proxying elements of the pg
driver to store query statistics in an
in-memory SQLite database and providing a statistics dashboard in the host
application.
pachelbel requires the pg
module as a peer dependency. Ensure that it is
available if you are using a framework or driver wrapper such as
MassiveJS.
In your app.js, require
pachelbel and wire it to a route. pachelbel must be
loaded before pg
in order to proxy the driver correctly.
if (process.env.NODE_ENV !== 'production') {
app.use('/pachelbel', require('pachelbel'));
}
Note that pachelbel is not, by default, wired into any authentication system you may have and will therefore happily give query statistics and prepared statement text to anyone and everyone unless you take your own precautions to secure it.
By default, queries taking 100ms or more are considered "bad" (yellow), and
queries taking 500ms or more "worse" (red). To customize these, change
pachelbel's thresholds
object before the app.use
directive:
pachelbel.thresholds = { bad: 200, worse: 750 };
FAQs
query performance monitoring for express and node-pg
The npm package pachelbel receives a total of 2 weekly downloads. As such, pachelbel popularity was classified as not popular.
We found that pachelbel 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
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.