Skip to content

DevTools ​

Bottom dock with request list, SSE event list, caller file (e.g. profile.hook.ts), and a call graph.

Click a graph node → pick Cursor / Zed / VS Code → opens via deep link (last choice remembered).

Toggle: Alt+Shift+F (macOS: ⌥⇧F)

Alt+Shift+F (⌥⇧F) · caller file in list · click graph → Cursor / Zed / VS Code

Simple dock: request list, SSE event list, and a call graph showing where the request was fired.

Ready — open DevTools (Shift+D) and fire a sample.

Install ​

ts
import { createFetch } from 'tanstack-fetch'
import { setupDevtools } from 'tanstack-fetch/devtools'

const api = createFetch({ plugins: ['trace'] })
setupDevtools(api) // registers interceptor + mounts dock

Prefer plugins: ['trace'] so each entry has a stable requestId.

Options ​

ts
setupDevtools(api, {
  http: true,
  sse: true,
  ssr: true,
  trpc: true,
  open: true, // start expanded
})

Advanced (share one store across clients) ​

ts
import { createDevtools, mountDevtools } from 'tanstack-fetch/devtools'

const dt = createDevtools()
const api = createFetch({ plugins: ['trace'], interceptors: [dt.interceptor] })
mountDevtools({ store: dt.store })

MIT Licensed · Created by Mohammad Garmabi · Not an official TanStack package