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

agent-ui-kit

v0.1.1

Published

Point at an element in your running app, say what is wrong — the note lands in a file your coding agent reads.

Readme

agent-ui-kit

npm checks MIT licence zero dependencies

Point at an element in your running app, say what is wrong — the note lands in a file your coding agent reads.

Between "this button here" and Rail.tsx:69 somebody has to build a bridge. Without one, every conversation about the UI is made of prose descriptions, and prose is read two ways.

It is a Vite plugin: it lives in the dev server and there is nothing to import in your source.

npm i -D agent-ui-kit
// vite.config.js
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import { agentUiKit } from "agent-ui-kit";

export default defineConfig({
  plugins: [react(), agentUiKit()],
});

That is the whole installation. Hold Alt — the element under the cursor lights up. Click — a field opens. Type, press Enter.

## the channel list slides under the profile instead of scrolling

- **where:** `ChatScreen › Rail › RoomList › SidebarSection`
- **what:** `<button>` — «Channels»
- **classes:** `flex min-w-0 flex-1 items-center gap-1 rounded px-2.5 py-1 …`
- **page:** `/c/01a0814d-3bd0-708e-bed0-b1be60d2bbee`
- **when:** 2026-09-08 18:20:30

Then you say to your agent: "work through NOTES.md". The component chain plus the class list is enough to find the source line with a single search.

Why it is a file and not an MCP server

An MCP server would mean either the agent polling for notes or another daemon to keep running. A file needs neither: the agent reads it when it looks, and any agent can — Claude Code, Cursor, Codex, Copilot, or a human with git diff. Nothing here is tied to one vendor.

You walk the screen and leave ten notes in a row; nobody should wait while each one is processed. The file collects, the agent works through the list afterwards.

Options

agentUiKit({
  file: "NOTES.md",   // where notes are collected
  key: "alt",         // "alt" | "ctrl" | "meta"
  color: "#e5484d",   // highlight colour
  placeholder: "what is wrong? Enter — save, Esc — cancel",
  route: "/__agent-ui-kit",  // change only on a collision
})

What it reads off the element

  • the component chain — pulled from React's own fibers on the DOM node (ChatScreen › Rail › RoomList). React only, and only in dev;
  • tag, classes, id, data-testid, a little text — for everything else and for every other framework.

If no component names are found the note is still recorded, with the tag, the classes and the text. Tooling that dies together with somebody else's undocumented detail is worse than no tooling at all.

Dev only

The plugin declares apply: "serve". The client is injected by the dev server as a virtual module, so there is nothing to import in your source and nothing to remember to strip from a production build.

Three things learned the hard way

They are in the source as comments, and they are why this is a package rather than a snippet:

  • no prompt() / confirm() — a native dialog freezes the page and breaks any automation driving the browser from outside;
  • the modifier-click belongs to the plugin entirely — otherwise a note about a button also presses that button;
  • the field closes on click-outside, not on blur — blur fires before Enter gets a chance to run, and ate what was typed.

MIT.