Back to Skills

tanstack-devtools

Centralized, extensible devtools panel for TanStack libraries with a plugin architecture.

29stars2forksUpdated 8/14/2026

Security Assessment

Safe(95/100)
Security Score95/100

About tanstack-devtools

tanstack-devtools is a reference and usage skill for TanStack Devtools, a centralized, extensible debugging panel that consolidates devtools for TanStack libraries (Query, Router, and more) into a single interface. Built with Solid.js for a light footprint, it exposes a framework-agnostic plugin architecture with real-time state inspection, aimed at the problem of juggling multiple separate devtools during development.

The skill documents installation (`@tanstack/react-devtools`), basic setup inside a QueryClientProvider, and how to register built-in plugins for React Query, Router, and AI workflows. The AI Devtools panel covers a message inspector, token-usage and cost tracking, streaming visualization, tool-call debugging, a thinking/reasoning viewer, and adapter switching. It explains the `DevtoolsPlugin` interface (id, name, render), how to author custom plugins such as a state inspector or network logger, dynamic conditional plugin registration, and Vite plugin integration. It also covers production considerations — gating devtools behind `NODE_ENV` checks or lazy loading — a framework-support matrix (React alpha; Solid, Vue, Angular planned), and best practices around unique plugin IDs and lightweight render functions.

It targets React (and future multi-framework) developers building apps on the TanStack stack who want a unified, extensible debugging surface. The package is explicitly labeled alpha, so APIs may change. As a development-time, in-app inspection tool, it introduces no risky behavior — its main caution is simply not shipping devtools into production builds without tree-shaking.

FAQ

Which package do I install for React?

`@tanstack/react-devtools` (with `@tanstack/devtools` as the framework-agnostic core). It is currently in alpha.

What built-in plugins are available?

React Query devtools, Router devtools, and an AI devtools panel for debugging streaming, tool calls, token usage, and reasoning tokens.

How do I add a custom plugin?

Provide an object implementing the DevtoolsPlugin interface — a unique `id`, a display `name`, and a `render` function returning JSX — and pass it in the `plugins` array.

How do I keep devtools out of production?

Gate the component behind a `process.env.NODE_ENV === 'development'` check or lazy-load it, and rely on tree-shaking so it is not bundled into production builds.

Which frameworks are supported?

React is supported at alpha; Solid, Vue, and Angular packages are listed as planned.

Install tanstack-devtools

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill