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

deepgraph

v0.1.3

Published

Pure-WebGPU billion-point spatial pyramid, embedding, and ego-network visualization engine

Readme

Deepgraph (deepgraph)

License: CC BY-NC 4.0

Deepgraph is an embeddable, pure-WebGPU billion-point spatial pyramid, embedding, and ego-network visualization engine for streaming out-of-core .arrowtiles (v0.1) archives over HTTP Range requests, local File handles, or custom CustomRangeSource transports.

Built directly on plain WebGPU compute and instanced ribbon shaders (0 Three.js / WebGL dependencies, 0 B main-thread Arrow parser weight, ~81.3 kB gzipped bundler entry), Deepgraph renders multi-million to billion-row datasets—verified end-to-end on 1,348,176,623 ESA Gaia DR3 stars (31.81 GiB archive; ~0.69–0.73s cold TTFF over 50 ms / 50 Mbps WAN, 174.8–178.9 FPS up to 7.22M active stars on RTX 5090 / 67.4–179.6 FPS on Intel xe-lpg iGPU) and 2,835,490 LMSys UMAP/NCVis chat embeddings—with 0.0000% stationary shimmer, instant GPU hover/click picking, 3-slot cross-filter-aware quadratic Bézier graph/ego arcs, smooth 2-second WGSL axis transitions, and deterministic GPU memory teardown.

Scope Note (Out-of-Core Coordinates vs. Force Simulation): Deepgraph renders node positions from .arrowtiles spatial pyramids, precomputed 2D embeddings (UMAP, NCVis, t-SNE, PCA), or declarative chart columns, paired with static overview edges (<= 100,000 instanced Bézier arcs) and out-of-core 1-hop ego neighborhoods. Browser-resident $O(V + E)$ spring/force-directed layout simulation is intentionally out of scope.

The companion Python + Rust builder, reader, validator, and 1.35B hardware crucible benchmark live in the sibling arrowtiles repository (pip install arrowtiles).


Installation & Quick Start

npm install deepgraph
import { Deepgraph } from 'deepgraph';

if (!Deepgraph.isSupported()) {
  throw new Error('WebGPU is required');
}

const container = document.getElementById('plot')!;
const plot = await Deepgraph.create(container, {
  url: 'https://cdn.example.com/embeddings.arrowtiles',
  encoding: {
    color: { field: 'model', scale: 'viridis' },
    size: { field: 'num_of_tokens', domain: [0, 4096], range: [0.5, 3.0] },
    aggregation: 'points',
  },
});

plot.on('click', (hit) => {
  if (hit) console.log('Selected row:', hit.rowId, hit.attributes);
});

For zero-build <script type="module"> HTML pages, import deepgraph/standalone (see examples/embed.html). For linked DuckDB / Mosaic cross-filtering, import deepgraph/mosaic (full reference in docs/API.md).

Python (pydeepgraph) for Marimo & Jupyter

pip install pydeepgraph
import marimo as mo
import pydeepgraph as dg

# Optional one-time co-sorted Parquet CSR build (`ROW_GROUP_SIZE=8,192`, `< 5 ms` hover reads)
dg.build_canonical_edges_parquet(
    "raw_edges.parquet",
    "csr_edges.parquet",
    nodes="conversations.parquet",
    x_column="x",
    y_column="y",
)

scatter = mo.ui.anywidget(
    dg.plot(
        "embeddings.arrowtiles",
        x="x",
        y="y",
        color="model",
        sidecar="conversations.parquet",
        edges="csr_edges.parquet",      # or "2d_euclidean_knn"
        static_edges="bridges.parquet", # optional <= 100k `DGE1` binary overview arcs
    )
)

Launch the reactive Marimo out-of-core CSR ego-graph & UMAP ↔ NCVis manifold-tear showcase locally:

marimo run python/examples/marimo_lmsys_mosaic.py

Local Development & Demo App

Prerequisites

  • Node.js 22.6+ (Node.js 20+ for library/demo builds; Node.js 22.6+ for npm run test:unit native TypeScript stripping)
  • A WebGPU-capable browser (Chrome 113+, Edge 113+, Safari 18+, or Firefox Nightly)
git clone https://github.com/kai-erlenbusch/deepgraph.git
cd deepgraph
npm install

# Launch interactive demo app on http://127.0.0.1:5173
npm run dev

# Build library bundles (dist/index.js + dist/standalone.js + .d.ts) and verify consumer types
npm run build:lib
npm run verify:types

# Run Node.js unit tests (worker IPC codec, 1D RTO & ViewState) + fast WebGPU Playwright E2E suite
npm run test:unit
npm run test:e2e

Note on Sample Archives for Local E2E Tests: npm run test:e2e streams < 5 MiB .arrowtiles fixtures from the sibling ../arrowtiles/samples/ directory (generated via python scripts/build_samples.py in arrowtiles). The heavy 5-gate VRAM & LRU stress suite (npm run test:e2e:heavy) additionally expects local public/gaia_full.arrowtiles and ../arrowtiles/samples/lmsys_d7_proportional_25k.arrowtiles.

For contributor architecture rules and WebGPU/packaging invariants, see AGENTS.md and docs/API.md.


Dataset Showcases

ESA Gaia DR3 Sky Catalogue

  • Scale: 1,348,176,623 local Gaia DR3 stars (31.81 GiB .arrowtiles v0.1 archive; designed for the full 1.8B survey) streamed via HTTP Range requests
  • Visual Channels: Galactic Hammer coordinates, phot_g_mean_mag / abs_m magnitude sizing, additive R16 / G16 / B16 bp_rp optical colour synthesis, HR diagram transitions, and 6D proper-motion star trails

Gaia Performance 1 Gaia Performance 2 Gaia Performance 3

LMSys Chat Conversations (UMAP & NCVis Embeddings + Ego-Graph)

  • Scale: 2,835,490 conversations across 38 source columns
  • Visual Channels: UMAP (x_umap, y_umap) <-> NCVis (x_ncvis, y_ncvis) 2-second GPU layout morphs, multi-turn conversation_id trajectories, 3,500 cross-manifold tear bridges (DGE1 binary stream), categorical model / clusters_28 dictionaries, and < 1.2 ms out-of-core Parquet CSR hover lookups

LMSys Performance


Architecture Overview

flowchart LR
    A[".arrowtiles Archive (HTTP Range / File)"] --> B["PMTilesClient + Worker Pool (Zstd WASM + Arrow IPC)"]
    B --> C["TileGpuStore (Bounded LRU Slot GPUBuffers)"]
    C --> D["ComputeRasterizer (WGSL Atomic Accum + Resolve)"]
    C --> E["PickingLayer (9x9 CSS px GPU Compute Pick)"]
    D --> F["WebGPU Swapchain + HighlightOverlay"]
    E --> F
  1. DatasetSession & PMTilesClient: Validates .arrowtiles v0.1 headers (0.x minor-version & required_features gates), prefetches PMTiles leaf directories, and decodes Zstd-compressed Arrow IPC tiles off-main-thread across a Web Worker pool (@bokuweb/zstd-wasm + @uwdata/flechette, with 256 MiB Zstd bomb protection and 1D RTO BigInt precision).
  2. TileGpuStore: Manages bounded GPU storage-buffer slots with LRU eviction (GPUBuffer.destroy() on eviction and plot.destroy()) and Float64 relative-to-center (RTC) coordinate uniforms.
  3. ComputeRasterizer: Commutative, zero-shimmer 2 × u32 atomic WGSL compute splatting across Optical (R16/G16/B16), Categorical/Numeric Points (1,024 levels), Density/Mean-Field KDE, and 6D Star Trails, plus 2-second WGSL axis transitions.
  4. PickingLayer, EdgeOverlay & HighlightOverlay: Sub-millisecond 9×9 CSS px GPU compute hit-testing with priority-aware tie-breaking, 3-slot (static, pinnedEgo, hoverEgo) 34-vertex triangle-strip quadratic Bézier ribbons with @binding(1) 180 FPS brush/lasso cross-filtering (0 storage buffers), 64-slot neighbor rings with click-to-hop navigation, compressed-tile LRU row decoding (decode_row), and opt-in async resolveRowAttributes sidecar enrichment.

Sibling & Ecosystem Projects

  • arrowtiles (pip install arrowtiles): DuckDB + Rust (PyO3) .arrowtiles v0.1 spatial pyramid builder, reader, validator, and format specification (docs/SPEC.md).
  • Python / Marimo & Jupyter Widget (python/): pydeepgraph (pip install pydeepgraph) — zero-copy mmap HTTP 206 / <= 512 KiB CommRangeSource anywidget with row_id-sorted Parquet sidecar enrichment, SQL row_id bitmasks, DGE1 binary static_edges, and < 5 ms co-sorted Parquet CSR 1-hop ego-network arcs.

Citing

If you use Deepgraph in academic or scientific work, please cite:

Erlenbusch, K. (2026). Deepgraph: WebGPU Billion-Point Spatial Pyramid, Embedding, and Ego-Network Visualization Engine [Computer software]. https://github.com/kai-erlenbusch/deepgraph

Licensing

Deepgraph is available free of charge for non-commercial use under the CC BY-NC 4.0 public license (see LICENSE and NOTICE).

If you're planning to use Deepgraph commercially (including SaaS products, paid applications, consulting deliverables, or internal business tools at for-profit organizations), reach out to [email protected] for a commercial license.

Data Attribution

  • ESA Gaia DR3: Gaia data © ESA/Gaia/DPAC (attribution required).
  • LMSys-Chat-1M: Subject to its upstream dataset terms and is not redistributed in this repository.