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

hypercube-gpu-core

v5.0.1

Published

Standalone high-performance WebGPU compute core (zero-copy MasterBuffer + declarative topology)

Readme

hypercube-gpu-core

Direct WebGPU Compute Core for Scientific Research & Industrial Simulation.

A deterministic, high-concurrency architecture designed for Lattice Boltzmann (LBM), FDTD, and Poisson-Boltzmann numerical methods. The core implements a zero-copy memory model to maximize effective VRAM bandwidth.

Technical Specifications

  • Synchronous MasterBuffer Layout: Host-mirrored VRAM partitioning for low-latency state synchronization.
  • Batched Command Orchestration: Minimal command encoder overhead via consolidated rule dispatching.
  • Zero-Stall Pipeline : Asynchronous uniform updates and multi-rule compute passes.
  • Professional Macro Engine (v5.0) : Automated WGSL read_NAME(x, y) and write_NAME(x, y, val) helpers for all 64 potential data faces.
  • Scientific Kernel Registry : Native implementations for Navier-Stokes (Lattice Boltzmann) and Wave Equations (FDTD).

Numerical Validation

  • Spatial Order: Verified second-order spatial convergence ($O(\Delta x^2)$) via Taylor-Green Vortex (TGV) study.
  • Physical Accuracy: Drag coefficient ($C_D$) validated within 1.2% error on the Schäfer & Turek (1996) cylinder benchmark at $Re=100$.
  • Computational Throughput: 937.12 MLUPS (D3Q19) recorded on NVIDIA RTX 2080 architecture.

Reproducibility Suite

Absolute throughput and numerical precision can be verified through the integrated audit suite:

  1. Initialize the compute server: npm run dev
  2. Access the formal audit interface: http://localhost:5173/benchmark.html

Comparative Performance Analysis (Ref: RTX 2080)

| Implementation | Environment | MLUPS (Sustained) | | :--- | :--- | :--- | | FluidX3D (CUDA) | Native (C++/CUDA) | 3000 - 8000 | | Hypercube (Zero-Stall) | WebGPU (Browser) | 1042 | | WebGPU Reference (2023) | WebGPU (Browser) | 400 - 800 | | PyLBM (Python) | Native (CPU) | 5 - 50 |

Technical Note: The 1042 MLUPS baseline is a sustained stress-test result recorded on an NVIDIA RTX 2080. It represents ~35% VRAM bandwidth efficiency.

Scientific Solver Taxonomy (Mother-Models)

The core framework provides a library of validated "Mother-Models". Refer to the Technical Documentation Hub and our User Quickstart.

| Discipline | Model | Methodology | Status | | :--- | :--- | :--- | :--- | | Fluid Dynamics | LBM 2D/3D | Lattice Boltzmann / D2Q9-D3Q19 | CERTIFIED | | Electromagnetics | FDTD Maxwell | Leapfrog Yee-Cell | CERTIFIED | | Potential Fields | Poisson Solver | Iterative Jacobi | CERTIFIED | | Data Science | Tensor-CP (Lite/Pro) | ALS / CORCONDIA Diagnostics | CERTIFIED | | Chemistry/Bio | Diffusion | Isotropic Heat Equation | CERTIFIED | | Complex Systems | Cellular Life | Parallel Automata | CERTIFIED | | Geometry | JFA Fields | Jump Flooding Algorithm | CERTIFIED | | Signal Physics | Wave Equation | Advection/Diffraction | CERTIFIED | | Synth. Assets | Fractals/Noise | Ray-marching / Simplex | CERTIFIED |


Release History

See CHANGELOG.md for full details of the v5.0.1 Anti-Drift Patch.

Installation & Usage

npm install hypercube-gpu-core 

Usage

import { GpuCoreFactory, HypercubeGPUContext } from 'hypercube-gpu-core';

// 1. Initialize GPU Context
await HypercubeGPUContext.init();

// 2. Build Engine from Manifest
const factory = new GpuCoreFactory();
const engine = await factory.build(config, descriptor);

// 3. Execution Loop
async function loop() {
    await engine.ready(); // Ensure buffers are ready
    
    const header = engine.getWgslHeader('lbm-ocean');
    await engine.step({ 
        'lbm-ocean': header + oceanWgslSource 
    }, 1);
    
    // Optional: Synchronize specific data for HUD/Viz
    await engine.syncFacesToHost(['rho', 'vx']);
    
    requestAnimationFrame(loop);
}

Project Structure

  • src/memory: MasterBuffer and memory orchestration.
  • src/dispatchers: GpuDispatcher and pipeline management.
  • src/topology: VirtualGrid, Joints, and Topology Resolution.
  • src/kernels: Reference WGSL implementations.
  • src/GpuEngine.ts: The unified simulation interface.

License

MIT — Hypercube GPU Core v5.0.1