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/spark-agent

v0.1.0

Published

Environment-neutral AI agent core for modeling Kakapo scenes

Readme

@womp/spark-agent

Local browser workspace for controlling Kakapo with model-authored JavaScript.

The agent runs in the tab, calls OpenAI through the AI SDK, and connects directly to Kakapo through @womp/kakapo-sdk. Scene access is restricted to a private build root. Top-level createNode() calls are automatically parented to that root, and the native screenshot tool frames the build for visual inspection.

Run

Install the reusable core from npm:

yarn add @womp/spark-agent @womp/kakapo-sdk

The package entrypoint exports only the environment-neutral agent core. It does not import React, Vite, browser storage, or the browser JavaScript executor.

Browser test application

Requirements:

  • Node.js 20 or newer
  • D:/Womp/kakapo/kakapo_app.exe listening on ws://127.0.0.1:5502
  • VITE_OPENAI_API_KEY or VITE_ANTHROPIC_API_KEY in the repository root .env, or a key entered in Runtime settings
yarn install
yarn dev

Open http://127.0.0.1:5173.

Browser workspace

The workspace provides:

  • local threads with search, fork, and delete actions;
  • model and reasoning controls;
  • pasted and uploaded reference images;
  • streamed assistant messages and reasoning summaries;
  • formatted JavaScript execution and result traces;
  • native Kakapo screenshots inline with the execution timeline.

Threads and images are stored in IndexedDB. Model and runtime preferences use browser storage. An API key entered in Runtime settings is kept in session storage and is not stored with threads.

Core package

The environment-neutral agent is under src/. It accepts a language model, a scene runtime, a JavaScript executor, byte-based images, and an event sink. The browser supplies those dependencies in web/src/api.ts; a server can supply its own credentials, isolated executor, and durable event sink without importing React or browser storage.

Agent execution

The model has two tools:

  • executeJavaScript runs code against the scoped @womp/kakapo-sdk facade;
  • screenshot moves Kakapo's native camera, frames a target bounding box, and returns the rendered image to the model.

Node, material, transform, inspection, and refresh operations are SDK calls made from JavaScript. The private build root is runtime state and is not exposed as a generated-code variable.

Validation

yarn build
yarn typecheck
yarn lint
yarn test
yarn web:build

Layout

  • src/agent.ts — environment-neutral model loop and tool orchestration
  • src/runtime.ts — Kakapo scene runtime and atomic JavaScript transactions
  • src/womp-scene-api.ts — Womp-compatible scene API
  • src/prompt.ts — JavaScript agent instructions and SDK reference
  • src/coordinates.ts — Womp basis, units, rotations, and goop conversion
  • web/src/api.ts — browser model, image, runtime, and event adapters
  • web/src/browser-executor.ts — local generated-JavaScript executor
  • web/src/App.tsx — local chat, persistence, traces, screenshots, and streaming UI