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

quantix

v1.0.1

Published

Quantix — Ultra-fast hybrid circular-buffer, double-ended queue and ring-buffer in TypeScript. Pre-allocated memory, zero-copy O(1) slicing, TypedArray support, and V8-optimized iterators.

Readme

Quantix

npm version npm downloads license Rust Powered build status

Quantix is an ultra-fast, hybrid double-ended queue, circular buffer, and ring-buffer library built for TypeScript/JavaScript and powered by an optional, precompiled Rust Native Layer with CPU-level SIMD acceleration.

By combining V8-optimized contiguous memory layouts in TypeScript with raw mathematical speed in Rust, Quantix offers unmatched performance for both generic object queues and heavy numerical batch streams.

Important: Rust Native Acceleration Quantix embeds a pre-compiled Rust Native Layer via Node-API. Standard numerical and vector operations cross the JS-Rust boundary once per batch, offering up to 20x faster sorting and SIMD acceleration on compatible hardware. Best of all, no local Rust toolchain or build setup is required by end-users.


Why Quantix?

  • Hybrid Architecture: Pure TypeScript for high-speed JS object handling, with transparent fallback if Rust binaries are not available.
  • Rust Native Layer (QuantixBuffer): Accelerates heavy numerical data with SIMD vectorization (AVX/SSE) and native Rust pdqsort.
  • 100% Memory Efficient: Uses an explicit size counter allowing all $N$ slots of the array to be populated (unlike competitors who waste space).
  • Zero-Copy Slices (.sliceView()): Extract sub-ranges of a deque in O(1) timeup to 38,000× faster than copying elements.
  • Bitwise Masking: Fast random access in O(1) via cached register variables and bitwise indexing (head + i) & mask.

Performance at a Glance 🔥🚀

Node.js v24.11.1 · Median of 5 runs · Clean GC-isolated environment

Standard Workloads (10M Operations)

  • FIFO Queue (Push & Shift): Quantix is 6.1% faster than denque and 12.9% faster than js-sdsl.
  • Stack Cycle (Push & Pop): Quantix is 25.1% faster than denque and 30.6% faster than js-sdsl.
  • Random Indexing (get(i)): Quantix is 58.8% faster than denque and 76.7% faster than js-sdsl.
  • Zero-Copy Slicing (sliceView): Quantix is 19,483× faster than denque and 38,835× faster than js-sdsl.

Extreme Big-Data Workloads (5M–10M Operations)

  • High Memory/GC Pressure: Quantix is 1.47% faster than denque and 7.88% faster than js-sdsl.
  • Extreme Mixed Workloads: Quantix is 9.1% faster than denque and 2.8% faster than js-sdsl.

Installation

Install Quantix using your preferred package manager:

npm

npm install quantix

yarn

yarn add quantix

pnpm

pnpm add quantix

bun

bun add quantix

Note: The Rust binary comes pre-compiled for major platforms (Windows, macOS, Linux). End-users do not need to have Rust installed on their machine to get maximum native performance.


Quick Start

1. High-Speed Generic Queue (Pure TypeScript)

import { QuantixDeque } from 'quantix';

// Create a growable deque
const queue = new QuantixDeque<string>({ capacity: 1024 });

// Add items
queue.push("User A");
queue.push("User B");
queue.unshift("Admin"); // Prepend to front

// Fast O(1) random reads
console.log(queue.get(0)); // "Admin"
console.log(queue.size);   // 3

// Draining items
console.log(queue.shift()); // "Admin"
console.log(queue.pop());   // "User B"

2. Rust-Powered Numeric Buffer (SIMD & Batch Operations)

import { QuantixBuffer } from 'quantix';

// Initialize pre-allocated numeric buffer
const buffer = new QuantixBuffer(1_000_000);

// Zero-copy batch insert (crosses JS-Rust boundary exactly once)
const chunk = new Float64Array([10.5, 20.0, 30.5, 40.0]);
buffer.pushBatch(chunk);

// Scale all elements by 2.5 and add 10 in-place (SIMD in Rust)
buffer.scale(2.5);
buffer.offset(10.0);

// Sort ascending using native Rust pdqsort (19× faster than V8 sort)
buffer.sortAsc();

console.log(buffer.sum()); // Native aggregate sum

Learn More

Check out the detailed documentation:


Contact

Feel free to reach out to the developer at [email protected] :)