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

@react-trace/kit

v0.0.5

Published

Batteries-included React visual inspector — all official plugins pre-wired.

Readme

@react-trace/kit

@react-trace/kit is the batteries-included package for adding the React Trace inspector to an app without wiring plugins manually.

It ships a default Trace export that wraps @react-trace/core and preconfigures all official plugins.

Installation

pnpm add --dev @react-trace/kit

Peer requirements:

  • react >= 18
  • react-dom >= 18

When to use this package

Use @react-trace/kit when you want the standard inspector setup with all official plugins already enabled.

If you need granular control over plugin composition, use @react-trace/core with individual @react-trace/plugin-* packages instead.

Default export

The package exports a default Trace component:

import Trace from '@react-trace/kit'

function AppShell() {
  return <Trace root={import.meta.env.VITE_ROOT} />
}

root should be the absolute path to your project root. The wrapper forwards it to @react-trace/core so bundled plugins can resolve files for preview, comments, copy-to-clipboard, and open-in-editor flows.

Bundled plugins

@react-trace/kit currently wires these official plugins in this order:

  1. @react-trace/plugin-preview — adds the source preview panel with inline Monaco-based file preview and editing support.
  2. @react-trace/plugin-copy-to-clipboard — adds an action-panel item for copying the selected source location.
  3. @react-trace/plugin-open-editor — adds an action-panel item for opening the selected source in your editor.
  4. @react-trace/plugin-comments — adds inline comments UI, including the comments toolbar and comment actions.

Props

The default export supports the following props today:

| Prop | Type | Default | Description | | ----------------- | -------------------------------------------------------------- | ---------------- | ------------------------------------------------------------------------------------ | | root | string | — | Required absolute path to the project root. | | position | 'top-left' \| 'top-right' \| 'bottom-left' \| 'bottom-right' | 'bottom-right' | Controls where the Trace widget is placed on screen. | | editingDisabled | boolean | false | Disables inline editing in the preview panel and hides the Save and expand controls. | | editor | EditorPreset | 'vscode' | Sets the default editor used by the Open in Editor action. |

EditorPreset currently supports these values:

  • vscode
  • cursor
  • windsurf
  • webstorm
  • intellij

Example

Change your dev script to export the project root e.g.:

-    "dev": "vite"
+    "dev": "VITE_ROOT=$(pwd) vite",

Then add it next to your app:

import Trace from '@react-trace/kit'

import App from './App'

export function Root() {
  return (
    <>
      <App />
      <Trace
        root={import.meta.env.VITE_ROOT}
        position="bottom-left"
        editor="cursor"
        editingDisabled={false}
      />
    </>
  )
}

Exposed types

In addition to the default export, the package exports TraceAllInOneProps and re-exports EditorPreset for convenience.