Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
monti-apm-sketches-js
Advanced tools
An Implementation Of DDSketch, A Fast and Fully-Mergeable Quantile Sketch with Relative-Error Guarantees.
Fork of sketches-js to fix compatibility with older versions of Node.
An implementation of DDSketch for Node.js.
DDSketch is a data structure for recording large amounts of numeric data and calculating quantiles over that data. It's designed to be fast, fully-mergeable and provide guarantees that a quantile value is within a configurable percentage threshold of the real value.
The implementation is based on the official paper: DDSketch: A Fast and Fully-Mergeable Quantile Sketch with Relative-Error Guarantees (PDF)
npm install monti-apm-sketches-js
const { DDSketch } = require('sketches-js');
const sketch = new DDSketch({
alpha: 0.005 // compute quantiles with precision of 1/2 of a percent
});
for (let i = 0; i < 1000; i++) {
sketch.add(Math.random() * 1000);
}
[0.5, 0.75, 0.9, 0.95, 0.99].forEach(function(q) {
console.log(`p${q * 100}: ${sketch.quantile(q)}`);
});
The source code is distributed under the terms of MPL 2.0 license.
FAQs
An Implementation Of DDSketch, A Fast and Fully-Mergeable Quantile Sketch with Relative-Error Guarantees.
The npm package monti-apm-sketches-js receives a total of 1 weekly downloads. As such, monti-apm-sketches-js popularity was classified as not popular.
We found that monti-apm-sketches-js 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.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.