Network Request Monitor
A real-time HTTP request interceptor UI: a Recording/Paused toggle up top, method and resource-type filter pill groups, and a table of captured requests below showing method, status, path, resource type, duration, and size. Built for devtools-style docs pages and network-debugging landing sections.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button, badge dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/network-request-monitor.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/devtools/devtools25.tsx instead.
Usage
The file also exports devtools25Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Devtools25, devtools25Demo } from "@/components/blocks/devtools/devtools25"; export default function Page() { return <Devtools25 {...devtools25Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| heading | string | "Network Request Monitor" | Section heading. |
| description | string | undefined | Section intro text below the heading. |
| requests | RequestRow[] | [] | Fixed list of captured requests; filters narrow which of these are shown, they never add or remove entries. |
| className | string | none | Extra classes for the outer section element. |
Types
type HttpMethod = "GET" | "POST" | "PUT" | "DELETE"; type RequestType = "XHR" | "Fetch" | "Doc"; type RequestRow = { method: HttpMethod; status: number; path: string; type: RequestType; duration: string; size: string; };
Behavior notes
- "use client" for three pieces of real local state: the Recording toggle, the method filter, and the type filter.
- The Recording toggle only flips the badge between "Recording" (red dot) and "Paused" (gray dot); it does not start, stop, add to, or remove anything from the fixed requests list. There is no actual traffic interception happening.
- The method and type filter pill groups genuinely filter the requests prop client-side (both conditions must match); they never fetch new data or mutate the underlying list, they only change which existing rows are visible.
- Status code badge color is derived from the numeric status (2xx/1xx = emerald, 3xx = amber, 4xx/5xx = red); method badge color is fixed by method name (GET = sky, POST = emerald, PUT = amber, DELETE = red).
- When a filter combination matches nothing, the table shows a single centered "No requests match the current filters" row instead of an empty table body.
More DevTools Blocks
View all →api-endpoints-sample-call
API Endpoints With Sample Call
Reference list of API endpoints paired with a live sample request and response panel.
cicd-pipeline-status
CI/CD Pipeline Status
Recent CI/CD pipeline runs with per-stage status chips and overall run badges.
code-diff-viewer
Code Diff Viewer
Unified code diff panel with a file header change summary and colored addition/deletion lines.
keyboard-shortcuts-reference
Keyboard Shortcuts Reference
Grouped keyboard shortcut reference with keycap-styled key combos.
performance-waterfall
Performance Waterfall
Network request waterfall chart with cascading timing bars colored by duration.
service-health-board
Service Health Board
Infrastructure status board with a live summary strip and per-service uptime, latency, and health.