SM.
Loading — 0%
Get in touch
All work11 · Solo-built · Open source · Live on npm

Next RSC Debug

See what your Next.js Server Components are actually doing.

RoleSolo project — architecture, core protocol, instrumentation, DevTools UI, docs, and publishing.
DurationIndividual project
Timeline2026
The problem

React Server Components are a black box in development: a navigation triggers RSC requests, server fetches, cache lookups, and client rendering, but there is no single place to see how they relate. Slow fetches, duplicate requests, and cache behaviour are invisible until they become production problems.

The approach

An instrumentation pipeline you own end to end — instrumentation.ts wraps the server fetch, producers write events into an in-memory ring buffer on globalThis, a route handler you mount serves them as JSON and a live SSE stream, and an in-page <DevTools /> React component renders the timeline, fetch inspector, and warnings. No browser extension, nothing leaves the machine. Privacy is enforced at the single event constructor: cookies, auth headers, bodies, tokens, and database records are never recorded, URLs are sanitized, and emails in cache keys are redacted.

FEATURES
  • DevTools dashboard as an in-page React component — no extension, works in any browser
  • Core event protocol with unique IDs, timestamps, and metadata
  • In-memory ring buffer (5000 events) with FIFO eviction and live subscriptions
  • Server-side fetch instrumentation with request-ID correlation
  • JSON snapshot + SSE live-stream endpoints you mount yourself
  • Timeline, fetch inspector, slow-request (500ms) and duplicate-request warnings
  • Privacy by construction — no cookies, auth headers, bodies, tokens, or DB records
  • Playground app plus examples for basic, parallel, slow, and cache scenarios
TECH BREAKDOWN
Packages
next-rsc-debug@next-rsc-debug/core@next-rsc-debug/devtools
Frontend
Next.js App RouterReactTypeScript
Tooling
Turborepopnpm workspacesVitestPlaywrightESLint
Delivery
npmGitHub Actions CIGitHub Pages docs