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

insider-axi

v0.2.0

Published

UI inspector for agents: Vite plugin + AXI CLI giving ground truth of a rendered UI as compact JSON

Downloads

329

Readme

insider-axi

UI inspector for coding agents. A Vite plugin + CLI that gives an agent the ground truth of a rendered UI — resolved styles, exact geometry, component and source mapping — as compact JSON, cheap enough to call inside an edit loop.

No screenshots, no guessing. The agent reads what the rendering engine actually decided, and every element points back to the component and source line that produced it.

insider http://localhost:5173 read src:Card.tsx:7 --styles padding,gap --box
{"regions":[{"root":{"ref":"e6","kind":"div","component":"Card","src":"src/Card.tsx:7:5",
"box":{"x":240,"y":136,"w":720,"h":52},"styles":{"padding-top":"16px","gap":"12px"}},
"size":{"w":720,"h":52},"ready":true}]}

Why

  • Exact values. Sub-pixel spacing, computed colors, resolved typography — values a screenshot cannot carry and authored source hides behind tokens and themes.
  • Pixels to code in one hop. Every element names the React component that rendered it and the source file and line, so a visual finding is directly actionable as an edit.
  • Port UI between codebases. Read a region from one app (a Lovable/v0/Bolt prototype, a different design system) and reproduce it exactly in another — only the rendered truth crosses over, not the prototype's code.
  • Verify edits. Read, edit, re-read: assert the gap is now 12, don't eyeball it.

Install

npm i -D insider-axi
// vite.config.js
import insider from "insider-axi";

export default {
  plugins: [insider() /* , react(), ... */],
};

Dev only: apply: "serve" means production builds contain no trace of it. Zero runtime dependencies. Read-only — it never clicks, types, or mutates the page.

Use

Start the dev server, open the app in any browser, then:

insider http://localhost:5173                    # status: connected pages
insider http://localhost:5173 overview           # regions, landmarks, components
insider http://localhost:5173 read <locator...>  # subtree per locator (the main op)
insider http://localhost:5173 find <query>       # search elements
insider http://localhost:5173 snap [--tag name]  # freeze the whole page; query with --snap

Locators: role:button · text:"Add to cart" · ref:e42 · point:120,340 · src:Cart.tsx:42 · bare string = text.

Read flags: --styles padding,gap / --styles "font*" / --styles all, --depth n, --box, --classes, --props (component inputs, secrets redacted), --a11y, --context, --hidden, --wait "text[:ms]", --page p, --snap <id|tag>.

Output is compact JSON, pipe-friendly via jq. Every answer carries a next hint; every error is {error, hint} with a clean exit code. Snapshots make before/after comparison trivial and their refs never go stale.

Works with React 18 and 19 (component + source mapping); on any other setup the mapping is simply absent — never guessed — and everything else still works.

For agents

The package ships an agent skill at skill/SKILL.md — when to reach for the CLI, command shapes, and how to read answers. Point your agent harness at it.

License

MIT