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

@ui-organized/ui-inspect

v0.2.0

Published

A design-system inspector for local development. Click any element in your running dev app, see its properties resolved against that project's design tokens, and edit them.

Downloads

631

Readme

@ui-organized/ui-inspect

A design-system inspector for local development. Click any element in your running dev app, see its properties resolved against that project's design tokens, and edit them live.

It reads the tokens your page already defines — by default the :root custom properties — so there is nothing to configure. It is not tied to @ui-organized/react: it inspects whatever design system the page actually ships, including none.

Install

npm i -D @ui-organized/ui-inspect

Use

Mount it from your app entry, guarded so it never reaches production:

if (import.meta.env.DEV) {
  const { mountInspector } = await import("@ui-organized/ui-inspect");
  mountInspector();
}

Then click the Inspect button the package mounts in the page, and click any element. The inspector binds no keyboard shortcuts, so it never swallows a keystroke meant for your app.

Not using Vite? Any dev-only guard works — process.env.NODE_ENV !== "production", a bundler define, or simply not importing it in your production entry. The dynamic import() keeps it out of the production bundle entirely.

What you get

  • Values resolved against your tokens. Every property shows its computed value and which token it matches, if any.
  • Matching by resolved value type (color / length / number / family), never by token name. A property is only audited when your system actually defines tokens of that type, so you never get an "everything is broken" score.
  • A drift score — how far the page has strayed from the token scale.
  • A component inventory with recovered component identity, plus the provenance and confidence of that identification.
  • Live edits as CSS rules, never inline styles. Edits go into a single rebuilt <style> element.
  • Edits that survive a reload. The change set is saved per page and re-applied on the next visit, and re-anchored when your app re-renders. See Persistence.

Options

mountInspector(options?) returns { engine, destroy }.

const inspector = mountInspector({
  // start expanded instead of collapsed to the launcher button
  expanded: true,

  // where tokens come from — default is the page's own :root custom properties
  config: {
    source: "css-vars", // "css-vars" | "dtcg" | "tailwind" | "json"
    root: ":root",
    include: "",        // substring filter for token names
    exclude: "",
  },
});

inspector.destroy(); // unmount and clean up

engine is the headless inspection engine, exported here too if you want to drive it without the panel.

Persistence

Edits are saved automatically, keyed by origin + pathname, and re-applied the next time you open that page. The panel's status line always names where they are going, because the answer depends on the host:

| Backend | When | | --- | --- | | localStorage | a normal dev page | | host storage (window.storage) | sandboxed preview hosts that provide one | | chrome.storage.local | extension context | | in-memory | nothing above is available — edits are lost on reload, and the status line says so |

Two things this is not. It is not a write to your source files: the change set lives in browser storage, and the Changes tab is still where you export JSON or a markdown change doc to apply for real. And browser storage is per-profile and per-origin — a devtools "clear site data" wipes it.

The panel also re-anchors its edits when your app re-renders, so a local edit survives a state update rather than evaporating with the replaced node.

Clear all in the Changes tab reverts every edit on the page and wipes the stored set.

To opt out, or to supply your own backend:

mountInspector({ storage: false });     // session only, nothing written
mountInspector({ storage: myBackend }); // any { name, label, durable, get, set, remove }
mountInspector({ storageKey: "uii_checkout" }); // share one set across routes

Notes

  • Self-contained. React and every other dependency are bundled in, so dependencies is empty. It drops into a React, Vue, Svelte or plain-HTML dev app the same way and cannot conflict with your app's React version.
  • CSS-isolated both ways. The panel renders inside a shadow root, so the host page's CSS cannot reach into the panel and the panel's cannot leak out.
  • Dev-only by design. It is a development tool; keep it behind a dev guard.
  • ESM only.

License

MIT