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

@jitzy/core

v0.0.10

Published

High-performance WebGL runtime for DOM-attached markers, connectors, and interactive topology overlays.

Downloads

139

Readme

@jitzy/core

High-performance WebGL runtime for DOM-attached markers, connectors, and interactive topology overlays.

@jitzy/core renders animated markers and connector lines on a GPU-accelerated canvas layered over your page. It handles element tracking, topology selection, pointer interaction, scroll sync, hit testing, and rendering lifecycle out of the box.

Install

npm install @jitzy/core

What It Does

  • Renders markers, labels, and connectors in WebGL
  • Attaches visual state to existing DOM elements
  • Supports dynamic and explicit connection topologies
  • Tracks pointer movement, scrolling, and layout changes
  • Exposes fluent and explicit APIs for connections
  • Supports plugins, custom animation strategies, and custom renderers

Quick Start

import { Jitzy } from "@jitzy/core";

const surface = document.getElementById("canvas-container")!;

const jitzy = await Jitzy.mount(surface, {
  topology: { mode: "field-weighted-nearest" },
  connector: {
    color: "rgba(255, 51, 68, 0.85)",
    width: 2,
    curvature: 0.35,
    curvatureMode: "outward",
  },
});

jitzy.addTarget(document.getElementById("card-a")!, {
  id: "card-a",
  markers: [{ id: "out", xPercent: 100, yPercent: 50, label: "OUT" }],
});

jitzy.addTarget(document.getElementById("card-b")!, {
  id: "card-b",
  markers: [{ id: "in", xPercent: 0, yPercent: 50, label: "IN" }],
});

jitzy.element({ target: "card-a", marker: "out" }).connect({
  target: "card-b",
  marker: "in",
});

Lifecycle

Jitzy.mount() bootstraps the runtime and owns:

  • renderer initialization
  • resize and surface metrics sync
  • target observation
  • pointer and scroll tracking
  • the internal render loop

Dispose with:

jitzy.dispose();

Force a fresh measurement and render with:

jitzy.refresh();

Core API

Register targets

jitzy.addTarget(element, {
  id: "node-a",
  markers: [{ id: "out", xPercent: 100, yPercent: 50 }],
});

Create connections

Fluent API:

jitzy.element({ target: "node-a", marker: "out" }).connect({
  target: "node-b",
  marker: "in",
});

Explicit API:

jitzy.addConnection(
  { target: "node-a", marker: "out" },
  { target: "node-b", marker: "in" },
);

Listen to events

jitzy.on("marker:click", ({ targetId, markerId }) => {
  console.log(targetId, markerId);
});

jitzy.on("connector:click", ({ from, to }) => {
  console.log(from, to);
});

Hit testing

const hit = jitzy.hitTest(clientX, clientY);

Topology Modes

  • field-weighted-nearest
  • magnetic-flux
  • neural-activation
  • all-pairs
  • explicit

Example:

jitzy.setTopologyConfig({
  mode: "field-weighted-nearest",
  maxConnectors: 20,
  maxPerMarker: 2,
  distanceSigmaPx: 220,
  cursorRadiusPx: 260,
  distanceWeight: 0.55,
  cursorWeight: 0.3,
  scrollWeight: 0.15,
});

Extensibility

Register a custom renderer:

import { registerRenderer } from "@jitzy/core";
import type { IRenderer } from "@jitzy/core";

class MyCanvasRenderer implements IRenderer {
  // implement renderer contract
}

registerRenderer("canvas2d", () => new MyCanvasRenderer());

Register custom animation or theme packs through the public plugin contract exposed by @jitzy/plugin-sdk.

Package Scope

@jitzy/core contains the runtime engine and public integration surface.

If you want to build custom plugins, themes, animation packs, or renderer extensions, use @jitzy/plugin-sdk alongside this package.

License

MIT