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

@ue-too/being-devtools

v0.19.0

Published

Attachable devtools for [`@ue-too/being`](https://www.npmjs.com/package/@ue-too/being) state machines. One call straps a live state chart, event log, and context inspector onto any running machine.

Readme

@ue-too/being-devtools

Attachable devtools for @ue-too/being state machines. One call straps a live state chart, event log, and context inspector onto any running machine.

npm version license

See it running — the state machine visualizer example mounts the panel inline over two being machines and the live board you pan the chart with.

Install

bun add -d @ue-too/being-devtools

@ue-too/being and @ue-too/board are ordinary dependencies and install with it.

One line

import { attachMachineDebugger } from '@ue-too/being-devtools';

const machine = new TemplateStateMachine(states, 'IDLE', context);
attachMachineDebugger(machine, { name: 'pan-control' });

A collapsed pill appears bottom-right. Press Ctrl+Shift+M (Cmd+Shift+M on macOS) or click it to open the panel:

  • the machine's state chart, laid out from its states, events, preconditions and routing guards;
  • the current state highlighted; transitions whose preconditions currently fail are dimmed;
  • an event log of everything the machine handles, whoever fired it, with repeats coalesced into ×N;
  • the context, live;
  • a fire button per event with an editable JSON payload, and a reset.

Call attachMachineDebugger again to add more machines as tabs. Every call returns a handle whose dispose() detaches that machine; when the last one goes, the panel goes too.

Guard it for development builds:

if (import.meta.env.DEV) {
    attachMachineDebugger(machine, { name: 'pan-control' });
}

Browser only: call it after the document is ready (a client-side effect or onMounted is the right place), never during server-side rendering.

Boards

@ue-too/board runs five being machines. Attach them all at once:

import { attachBoardDebugger } from '@ue-too/being-devtools';

attachBoardDebugger(board); // tabs: board:kmt-input, board:touch-input, board:pan-control, ...
attachBoardDebugger(minimap, { namePrefix: 'minimap' });

Own the panel

For an inline mount or a custom hotkey, construct the panel yourself:

import { MachineDebugger } from '@ue-too/being-devtools';

const panel = new MachineDebugger({
    container: document.getElementById('debug')!, // inline instead of overlay
    hotkey: 'ctrl+alt+d', // or false to disable
    openByDefault: true,
});
panel.attach(machine, { name: 'pan-control' });
panel.attachBoard(board);
panel.dispose();

Inline, the page is the panel, so the sidebar's × hides the sidebar rather than the whole panel; a button in the chart's corner brings it back. Below 640px wide the sidebar stacks under the chart.

Console

While any panel is alive, window.__UE_TOO_BEING__ exposes machines (name → machine), open(), close(), and attach(machine, options).

What it never does

The panel borrows your machines. It never calls wrapup(), which would park a live machine in TERMINAL and, for a board, stop it responding to input. Reset is available because reset() restarts the machine; it is the recovery for a machine stranded by a hand-fired half-gesture.

Machines that do not implement the optional onEventResult subscription still get the chart, current state and context, but no event log. TemplateStateMachine implements it.