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

@aardworx/wombat.dom

v0.14.3

Published

Adaptive DOM + 3D scene-graph DSL for the Wombat TypeScript stack — direct-DOM JSX over @aardworx/wombat.adaptive, with optional WebGPU scene-graph extensions.

Readme

@aardworx/wombat.dom

Adaptive DOM + 3D scene-graph DSL for the Wombat TypeScript stack. JSX is the surface; the runtime is a direct-DOM renderer over @aardworx/wombat.adaptive, so plain values, aval<T>, alist<T>, amap<K, V> and aset<T> are all accepted in the same JSX positions. Only the parts of the DOM that actually depend on a changed adaptive input get touched, and updates are batched onto the next animation frame.

The 3D scene graph is delivered as a separate subpath (@aardworx/wombat.dom/scene) — you only pay for WebGPU when you import it.

Part of the Wombat TypeScript port of the Aardvark stack:

  1. @aardworx/wombat.adaptive — incremental adaptive computations.
  2. @aardworx/wombat.base — math/geometry primitives.
  3. @aardworx/wombat.shader — TS-as-shader DSL.
  4. @aardworx/wombat.rendering — WebGPU rendering layer.
  5. @aardworx/wombat.dom — this repo: adaptive DOM + 3D scene-graph DSL.

Install

npm install @aardworx/wombat.adaptive @aardworx/wombat.dom

For the 3D scene layer:

npm install @aardworx/wombat.base @aardworx/wombat.shader @aardworx/wombat.rendering

In your tsconfig.json:

{
  "compilerOptions": {
    "jsx": "react-jsx",
    "jsxImportSource": "@aardworx/wombat.dom"
  }
}

In Vite:

// vite.config.ts
export default defineConfig({
  esbuild: { jsx: "automatic", jsxImportSource: "@aardworx/wombat.dom" }
});

Hello world

import { cval, transact } from "@aardworx/wombat.adaptive";
import { mount } from "@aardworx/wombat.dom";

const name = cval("world");

mount(document.getElementById("app")!, (
  <h1>hello, {name}</h1>
));

setTimeout(() => transact(() => name.value = "adaptive"), 1000);

What you can pass where

| JSX position | Plain | aval<T> | alist<T> | aset<T> | | --- | --- | --- | --- | --- | | Attribute / property | yes | yes — value updates in place | — | — | | Event listener (onClick) | yes | yes (latest replaces previous) | — | — | | Text child | yes | yes — text node updates in place | — | — | | Element child | yes | yes — subtree swap with disposal | — | — | | Children list | yes | yes (single child) | yes — incremental insert/remove | yes (in scene-graph; planned for DOM) |

Plain values are set once with no subscription overhead. The runtime checks instanceof against the abstract base classes from @aardworx/wombat.adaptive, so wrapping a static value in AVal.constant(...) is never required.

Incremental list rendering

const items = clist<Item>([…]);

mount(root, (
  <ul>{items.map(it => <li>{it.name}</li>)}</ul>
));

Each item gets one DOM mount. Adding an item touches the DOM once (insert one <li>); removing an item touches it once. An aval inside a row updates only that row.

Disposal

const handle = mount(root, <App/>);
// later:
handle.dispose();

dispose() cascades through every nested binding, unsubscribes all adaptive readers, and removes everything this mount put into the DOM.

Scene roadmap

The @aardworx/wombat.dom/scene subpath shipped in milestones. Status is tracked in TODO.md and CLAUDE.md.

| M | Goal | Status | | --- | --- | --- | | M1 | rename + scaffold | shipped | | M2 | Sg core: tagged-union scene nodes, traversal state, attribute composition rules | shipped | | M3 | scene → RenderObject lowering (uses wombat.rendering) | shipped | | M4 | <RenderControl> JSX component | shipped | | M5 | camera + view/proj uniforms | shipped | | M6 | free-fly + orbit controllers | shipped | | M7 | pick framebuffer + pick effect (Mode A) | shipped | | M8 | pick read + SceneEvent capture/bubble; default surfaces + primitives (<Sg.Box/>, Quad, Sphere, Cylinder, Cone) | shipped | | M10 | reactive BVH picking + pixel↔BVH fusion | shipped |

The package renders + picks on a real GPU today, with auto-instancing, FreeFly + Orbit controllers, SceneEvent capture/bubble plus focus/key routing, and symmetric SDF text AA. Remaining work (focus tab-navigation and focus-ring rendering, generic matrix-typed instancing attributes, zoom-aware text halo, bezier3/arc in the band builder) is listed in TODO.md.

Status

Pre-1.0 (0.6.1). Stable shape on the DOM side; the scene layer renders and picks but may still see breaking renames. No SSR.

License

MIT.