npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@finite-logic/quantum-rate

v1.0.0

Published

FINITE LOGIC: QuantumRate - Basic Time Series Anomaly Detection Model (Free Tier) Focus: API Security & Anomaly Detection

Readme

finite-logic-quantum-rate

Focus: API Security & Anomaly Detection

FINITE LOGIC: QuantumRate - Basic Time Series Anomaly Detection Model (Free Tier)

QuantumRate provides the core mathematical models and algorithms for detecting anomalies and outliers within sequential time-series data (e.g., transaction rates, login attempts, server telemetry). It is a lightweight, self-contained utility for basic, local anomaly detection.

This package is the analytical foundation for the FINITE LOGIC Professional Tier's Global Threat Feed, which integrates external, contextual security data for enhanced, real-time threat scoring.

🚀 Installation (Free Tier)

This package is designed for Node.js environments.

npm install @finite-logic/quantum-rate

💡 Quick Start Example: Detecting Outliers

This example demonstrates how to feed time-series data into the AnomalyDetector to identify points that fall outside the learned baseline.

// Import the core detector class const AnomalyDetector = require('@finite-logic/quantum-rate');

// 1. Initialize the detector // Sensitivity (0.01 to 0.5) controls how easily outliers are flagged. const detector = new AnomalyDetector(sensitivity = 0.15);

// 2. Define historical time-series data (e.g., daily transaction volume) const historicalData = [100, 105, 98, 110, 103, 99, 108, 104, 101, 106];

// 3. Train the detector on the baseline data detector.train(historicalData); console.log("Detector trained on baseline data.");

// 4. Test new, real-time data points const liveData = [102, 105, 250, 100, 12, 112];

console.log("\n--- QuantumRate: Anomaly Detection Results ---"); liveData.forEach((value, index) => { const isAnomaly = detector.analyze(value); if (isAnomaly) { console.log(❌ ANOMALY detected at index ${index}: Value ${value}); } else { console.log(✅ Normal: Value ${value}); } });

📚 API Reference

AnomalyDetector Class

new AnomalyDetector(sensitivity = 0.2)

Creates a new detector instance.

sensitivity (number): A float (0.01 to 0.5) determining the threshold for deviation. Lower numbers are more sensitive.

train(data)

Establishes the statistical baseline using an array of historical data points.

data (Array): The array of time-series values used to calculate the mean and standard deviation.

analyze(value)

Analyzes a single new data point against the trained baseline.

value (number): The new data point to check.

Returns: boolean - true if the value is an anomaly, false otherwise.

🔒 Upgrade to Professional Tier

While this package provides the core detection algorithm, the FINITE LOGIC Professional Tier offers advanced capabilities by integrating contextual data.

Upgrade for the Global Threat Feed API — a managed service that enriches your anomaly scores with external data (IP reputation, zero-day threat intelligence) for highly accurate and contextualized fraud and security detection.

[Link to your FINITE LOGIC Pricing Page Here]