Skip to content
Source
Sign inSign up
TanStack/devtools

TanStack/devtools

README.md

TanStack Devtools Header

TanStack Devtools v0

Coming soon...

#TanStack semantic-release Join the discussion on Github

Enjoy this library?

Try other TanStack libraries:

Visit tanstack.com/devtools for docs, guides, API and more!

You may know TanSack Devtools by our adapter names, too!

Summary

TanStack Devtools is a powerful set of tools designed to help developers inspect and debug applications built with various frameworks, including React, Solid, and Vanilla JS. It provides a unified interface to monitor application state, track changes, and identify issues in real-time.

It is built with a plugin architecture, allowing for easy extension and customization. The devtools vite plugin can be integrated into your application, which enhances the development experience by providing better console logs, a server event bus, and improved debugging capabilities.

Quick Features

  • Inspect and debug your application's state and behavior in real-time
  • Support for multiple frameworks (React, Solid, Vanilla JS, etc.)
  • Plugin architecture to extend functionality
  • Production mode support with tree-shaking to remove devtools code
  • Customizable UI
  • Event bus for communication between the devtools and your application
  • Go-to-source functionality for easy debugging
  • Works seamlessly with TanStack Query, Router, and other TanStack libraries

Installation

Install one of the following packages based on your framework of choice:

# Npm
npm install @tanstack/react-devtools
npm install @tanstack/solid-devtools
npm install @tanstack/devtools # no framework, just vanilla js

Usage

React

import { TanStackDevtools } from '@tanstack/react-devtools'
import { ReactQueryDevtoolsPanel } from '@tanstack/react-query-devtools'
import { TanStackRouterDevtoolsPanel } from '@tanstack/react-router-devtools'

function App() {
  return (
    <div>
      <h1>My App</h1>
      <TanStackDevtools
        plugins={[
          {
            name: 'TanStack Query',
            render: <ReactQueryDevtoolsPanel />,
          },
          {
            name: 'TanStack Router',
            render: <TanStackRouterDevtoolsPanel router={router} />,
          },
        ]}
      />
    </div>
  )
}

Development

To contribute to the development of TanStack Devtools, you can clone the repository and run the following commands:

pnpm install
pnpm dev

Then go to any of the example directories and run:

pnpm dev

How to help?

Become a Sponsor