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

@katajs/devtools

v0.1.0

Published

Interactive devtools for katajs apps — graph, routes, container introspection.

Readme

@katajs/devtools

Live interactive devtools for Kata apps — module graph, drawer, routes table, queue producer/consumer view, Cmd+K palette. Hot-reloads as you edit.

@katajs/devtools is a dev-dependency-only package. It runs locally, reads your project's scripts/modules.ts, and serves a React UI from a small Node HTTP server with a chokidar watcher pushing updates over Server-Sent Events. No telemetry, no remote anything.

Install

pnpm add -D @katajs/devtools

A Kata project (pnpm create katajs my-app) ships with scripts/modules.ts that exports a canonical modules tuple — that's what devtools imports. If your project predates the scripts/modules.ts convention, devtools also accepts a legacy scripts/graph.ts that exports modules.

Run

npx katajs-devtools
#   katajs-devtools — interactive module graph
#   ➜ Local: http://127.0.0.1:4242

The bin opens a browser to the UI. Edit anything under src/modules/** or scripts/modules.ts and the canvas hot-reloads.

CLI flags

| Flag | Default | Notes | |---|---|---| | --port <port> | 4242 | Auto-bumps if busy. | | --host <host> | 127.0.0.1 | Pass 0.0.0.0 to bind all interfaces. | | --no-open | — | Don't auto-launch the browser. | | --modules-file <path> | auto-detect | Override the location of the modules file. |

What you see

  • Graph canvas — React Flow with dagre auto-layout. Each module is a card showing its prefix, provides count, requires count, route count, and a consumes <BINDING> line for queue consumers.
  • Module sidebar — every module with at-a-glance counts; a Producers section appears below if createApp({ queues }) is declared.
  • Module drawer (right side, on selection) — full provides chips, requires with clickable backlinks, owned routes, and a "Consumes" section listing queue + DLQ + the producer that feeds it.
  • Producer drawer — click a producer in the sidebar to see the typed c.var.queues.<name>.send(body) call and the consumer modules that read from the same binding.
  • Routes view — flat searchable table; method-coloured chips with a free-text + per-method filter.
  • Cmd+K palette — fuzzy-search across modules, producers, and routes; selecting jumps to the appropriate view.

How the data flows

scripts/modules.ts (your modules tuple)
        │ tsx ESM register
        ▼
inspectModules() ──────► JSON over /api/graph.sse ──────► React UI
        ▲                                                     │
        │  chokidar re-fires on src/modules/** change         │  Cmd+K, click,
        └─────────────────────────────────────────────────────┘  filter

The data contract is the Inspection shape from @katajs/core. Anything renderable in the static pnpm graph snapshot is navigable here, with cross-module backlinks and live updates on top.

Endpoints (advanced)

While the bin is running:

  • GET / — the React UI bundle.
  • GET /api/graph.json — pretty-printed Inspection JSON, fresh on each request.
  • GET /api/graph.sse — Server-Sent Events stream emitting event: graph with compact JSON on every snapshot change.

Useful if you want to feed the graph into something else (e.g. a CI artefact step).

License

MIT © Yaseer A. Okino