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-checker/runtime

v0.1.0

Published

Dev-only runtime that stamps DOM nodes with their React source location so ui-checker can jump to exact source.

Readme

@ui-checker/runtime

Dev-only runtime that stamps every rendered DOM node with its React source location so the ui-checker Chrome extension + VSCode bridge can open the exact file and line you clicked, instead of fuzzy-matching CSS selectors against the workspace.

Install

npm install --save-dev @ui-checker/runtime

Use

Import once at the top of your root layout / entry file:

// Next.js — app/layout.tsx
import '@ui-checker/runtime';

// Next.js (pages) — pages/_app.tsx
import '@ui-checker/runtime';

// Vite / CRA / Remix — src/main.tsx (or equivalent)
import '@ui-checker/runtime';

That's it. After the next render, every host element will carry:

  • data-uic-loc="src/components/Button.tsx:42:5" — workspace-relative path:line:col
  • data-uic-name="Button" — nearest component name

How it works

React's dev JSX runtime (_jsxDEV) attaches _debugSource = { fileName, lineNumber, columnNumber } and _debugOwner to every fiber. This package subscribes to the React DevTools commit hook and walks the fiber tree on each commit, stamping the DOM nodes whose React fiber has a _debugSource.

There is no build-time transform. Works with any React framework that uses the dev JSX runtime: Next.js (SWC), Vite (@vitejs/plugin-react), CRA, Remix, etc.

Production

The package no-ops if process.env.NODE_ENV === 'production', and React strips _debugSource from production builds anyway, so importing it in a production bundle does nothing. You can keep the import unconditional.

Caveats

  • Run before React loads. The runtime installs the React DevTools global hook if it isn't already present. This must happen before React itself evaluates. Importing at the top of your root entry file is enough — bundlers hoist it ahead of React.
  • Workspace path mismatch. The runtime emits paths relative to the longest common prefix it sees across stamped fibers. If your dev server's CWD differs from your VSCode workspace root (e.g. monorepo sub-package), the bridge may not find the file by exact path and will fall back to fuzzy search.
  • Vue/Svelte not supported. This package relies on React's _debugSource. Other frameworks would need their own instrumentation.