GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - DeeCode-inc/tanstack-query-chrome-devtools: A browser extension for debugging TanStack Query applications

BranchesTags
Open more actions menu

Latest commit

 

History

476 Commits
476 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.specify
.specify
 
 
.vscode
.vscode
 
 
assets
assets
 
 
components
components
 
 
entrypoints
entrypoints
 
 
hooks
hooks
 
 
public/icon
public/icon
 
 
specs @ a0ef25d
specs @ a0ef25d
 
 
store-assets
store-assets
 
 
tests
tests
 
 
types
types
 
 
utils
utils
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
.nvmrc
.nvmrc
 
 
.oxfmtrc.json
.oxfmtrc.json
 
 
.oxlintrc.json
.oxlintrc.json
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
pnpm-workspace.yaml
pnpm-workspace.yaml
 
 
tsconfig.json
tsconfig.json
 
 
vitest.config.ts
vitest.config.ts
 
 
wxt.config.ts
wxt.config.ts
 
 

Repository files navigation

TanStack Query DevTools

TanStack Query DevTools

A browser extension for debugging TanStack Query applications.
Inspect queries, mutations, and cache state — in real time.

Chrome Web Store Firefox Add-ons Edge Add-ons


Features

  • Live query & mutation inspection — see every query and mutation in your app update in real time
  • Detailed view — drill into individual queries and mutations to see their status, data, and metadata
  • Data tree viewer — explore query/mutation data as an interactive, expandable tree
  • Inline data editing — modify cached query data directly from the devtools
  • Cache actions — invalidate, refetch, reset, or remove queries; clear the mutation cache
  • Status badges — at-a-glance status indicators (fresh, stale, fetching, paused, inactive, error)
  • Search & sort — filter queries/mutations by key and sort by key, status, or last updated time
  • Popup & DevTools panel — use as a standalone popup or as a panel inside browser DevTools
  • Cross-browser — works on Chrome, Firefox, and Edge

Quick Start

Install from a store

Install directly from one of the browser add-on stores:

  • Chrome Web Store
  • Firefox Add-ons
  • Edge Add-ons

Usage

1. Expose your QueryClient on the window

The extension connects to your app by reading window.__TANSTACK_QUERY_CLIENT__. Add this to your app's entry point (e.g. main.ts / main.tsx):

const queryClient = new QueryClient({/* ... */});

// TypeScript users: add the type declaration
declare global {
  interface Window {
    __TANSTACK_QUERY_CLIENT__: import("@tanstack/query-core").QueryClient;
  }
}

window.__TANSTACK_QUERY_CLIENT__ = queryClient;

2. Open the extension

  1. Navigate to your app in the browser.
  2. The extension icon in the toolbar turns colored when a QueryClient is detected.
  3. Click the icon to open the popup, or open DevTools → TanStack Query panel for the full experience.

Development

Prerequisites

  • Node.js (LTS recommended)
  • pnpm

Setup

# Clone the repo
git clone https://github.com/DeeCode-inc/tanstack-query-chrome-devtools.git
cd tanstack-query-chrome-devtools

# Install dependencies
pnpm install

# Start dev server (Chrome)
pnpm dev

# Start dev server (Firefox)
pnpm dev:firefox

Build

# Production build (Chrome)
pnpm build

# Production build (Firefox)
pnpm build:firefox

# Package as .zip for store submission
pnpm zip
pnpm zip:firefox

Other scripts

Command Description
pnpm check Lint (Oxlint), then check formatting and import order (Oxfmt)
pnpm check:fix Apply Oxlint fixes and Oxfmt formatting
pnpm lint Lint only, including type-aware rules
pnpm lint:fix Lint and apply safe fixes
pnpm format Auto-format all files
pnpm format:check Check formatting without writing
pnpm compile Type-check with TypeScript

Tech Stack

  • WXT — next-gen browser extension framework
  • React 19 — UI
  • Tailwind CSS 4 — styling
  • TypeScript — type safety
  • Oxlint and Oxfmt — linting and formatting
  • @tanstack/query-core — query type definitions

Architecture

The extension consists of three main parts:

Component Description
Content scripts Injected into web pages to detect TanStack Query and relay cache state
Background service worker Routes messages between content scripts and UI surfaces
UI (Panel / Popup) React app that renders the devtools interface

Data flows from the page's QueryClient through content scripts → background → panel/popup via port-based messaging with snapshot + incremental update semantics.

Contributing

Contributions are welcome! Please open an issue first to discuss what you'd like to change.

  1. Fork the repository
  2. Create a feature branch (git checkout -b feat/my-feature)
  3. Commit your changes (git commit -m 'feat: add my feature')
  4. Push to the branch (git push origin feat/my-feature)
  5. Open a Pull Request

Built by Dmytro Borysov

About

A browser extension for debugging TanStack Query applications

chromewebstore.google.com/detail/tanstack-query-devtools/annajfchloimdhceglpgglpeepfghfai

Topics

browser-extensionchrome-extensionedge-extensionfirefox-addonfirefox-extensionreact-queryreact-query-devtoolstanstack-querytanstack-query-devtools

Resources

Readme
MIT license
Activity
Custom properties

Stars

28 stars

Watchers

1 watching

Forks

5 forks
Report repository

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.