| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A browser extension for debugging TanStack Query applications.
Inspect queries, mutations, and cache state — in real time.
Install directly from one of the browser add-on stores:
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;# 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# Production build (Chrome)
pnpm build
# Production build (Firefox)
pnpm build:firefox
# Package as .zip for store submission
pnpm zip
pnpm zip:firefox| Command | Description |
|---|---|
| pnpm check | Lint, format, and import-order check (Biome) |
| pnpm check:fix | Apply Biome fixes and formatting |
| pnpm lint | Lint only |
| pnpm format | Auto-format all files |
| pnpm compile | Type-check with TypeScript |
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.
Contributions are welcome! Please open an issue first to discuss what you'd like to change.
Built by Dmytro Borysov
| Back | FazBrowse Home | New Git URL |