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

@womp/kookie-flow-react

v0.2.1

Published

React API for Kookie Flow.

Readme

@womp/kookie-flow-react

A React library for node-graph editors: shader graphs, AI pipelines and whiteboards. It draws nodes, edges, text, widgets, images, video and 3D models in WebGL, so a board of thousands of nodes pans and zooms without React re-rendering.

Pre-1.0. The API still moves. The changelog marks every breaking change.

This is the React entry. It sits on @womp/kookie-flow-core (the graph) and @womp/kookie-flow-webgl (the renderer), and takes its look from a skin: @womp/kookie-flow-skin draws it in Womp's Kookie UI (@womp/kookie-ui).

The four packages are released together by this repository's publish workflow. See package migration.

Renderer peers: React/React DOM ^19.2.8, Three ~0.186.0, Fiber ^9.7.0 and drei ^10.7.8. Node tooling and CJS consumers require Node 24+. The browser needs WebGL 2.

Setup

Import Kookie UI's stylesheet once and put a Theme at the root of your app. The canvas reads its colours and corners from that theme, so it follows your app into dark mode. Kookie Flow has no stylesheet of its own.

import "@womp/kookie-ui/styles.css";
import { Theme } from "@womp/kookie-ui";

export default function App({ children }: { children: React.ReactNode }) {
  return <Theme>{children}</Theme>;
}

An example

"use client";

import { KookieFlow, useGraph, type Entity } from "@womp/kookie-flow-react";
import { skin } from "@womp/kookie-flow-skin";

const initialEntities: Entity[] = [
  { id: "constant", type: "constant", position: { x: 0, y: 0 }, data: { label: "Constant" },
    outputs: [{ id: "value", name: "Value", type: "float" }] },
  { id: "viewer", type: "viewer", position: { x: 320, y: 0 }, data: { label: "Viewer" },
    inputs: [{ id: "value", name: "Value", type: "float" }] },
];

export default function Graph() {
  const { entities, edges, onEntitiesChange, onEdgesChange, onConnect } = useGraph({
    initialEntities,
  });

  return (
    <div style={{ width: "100%", height: 360 }}>
      <KookieFlow skin={skin} entities={entities} edges={edges} onEntitiesChange={onEntitiesChange}
        onEdgesChange={onEdgesChange} onConnect={onConnect} />
    </div>
  );
}

The canvas fills its parent, so give the parent a height. Drag from the Constant node's output to the Viewer node's input to connect them. In the Next.js App Router, render KookieFlow from a file that starts with "use client".

Entry points

  • @womp/kookie-flow-react holds the KookieFlow component, useGraph and the other hooks, and the utilities.
  • @womp/kookie-flow-react/plugins holds useClipboard, useKeyboardShortcuts and useContextMenu.
  • @womp/kookie-flow-core/layout holds layoutGraph, for use without React.

Both ship ES module and CommonJS builds with type declarations. Prefer the ES module build: it loads the bundled Inter font atlas as a separate chunk, while the CommonJS build carries the atlas inline. The declarations import types from three.js, so add @types/three in a TypeScript project.

Documentation

The documentation lives at flow.kookie.design. It covers entities and sockets, edges and connections, evaluation, saving, undo and layout, interaction, styling, and a reference for every prop, ref method and hook.

Licence

MIT © Kushagra Dhawan