Development-only — zero production cost

A development-time React inspector for your components

$pnpm add -D @react-trace/kit

Identify rendered components, find their source locations, and choose what to do

  • Open the file in your editor, on the exact line of your component definition
  • Preview the code and edit it directly in the browser
  • Add comments and then copy & paste to your AI agents
  • Or even send them to your session on OpenCode for a seamless review experience

Inspect Components

Hover over any element to identify the React component that rendered it, its props, and the full component tree breadcrumb.

Resolve Source Locations

Instantly jump from any rendered element to its exact source file and line number using source maps.

Plugin System

Extend the inspector with plugins for source preview and editing, inline comments, clipboard actions, and editor integration.

Zero Production Cost

Every package ships a production stub. Conditional exports resolve to no-ops in production builds — zero runtime overhead.

Official Plugins

Everything you need, included in @react-trace/kit by default.

Get started in 3 steps

Up and running in under a minute.

1

Install the package

pnpm add -D @react-trace/kit
2

Export the project root

"dev": "VITE_ROOT=$(pwd) vite"
3

Add the Trace component

<>
  <App />
  <Trace root={import.meta.env.VITE_ROOT} />
</>