Webhook Event Stream
A webhook delivery log styled like a real-time event stream. Each row shows the event type, delivery status, response time, and timestamp, and expands in place to reveal the event's formatted JSON payload. Built for API dashboards and integration debugging pages.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its badge dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/webhook-event-stream.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/devtools/devtools18.tsx instead.
Usage
The file also exports devtools18Demo, 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 { Devtools18, devtools18Demo } from "@/components/blocks/devtools/devtools18"; export default function Page() { return <Devtools18 {...devtools18Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| heading | string | "Webhook Event Stream" | Section heading. |
| description | string | undefined | Section intro text below the heading. |
| events | WebhookEvent[] | none | Event rows, most recent first. |
| className | string | none | Extra classes for the outer section element. |
Types
type DeliveryStatus = "delivered" | "failed" | "retrying"; type WebhookEvent = { id: string; type: string; status: DeliveryStatus; responseTime: string; timestamp: string; payload: string; };
Behavior notes
- Row expand/collapse is real local state (a Set of expanded event ids); it does not fetch anything, it just reveals the payload string already passed in for that event.
- payload is a plain preformatted string supplied by the caller (not parsed or re-serialized JSON), so indentation and formatting are exactly whatever the caller wrote.
- This is not a live stream; there is no polling, websocket, or auto-appending of new events, the list is the fixed set passed via events.
- The expanded payload panel intentionally uses a fixed dark, monospace treatment instead of the site's semantic tokens, matching the repo's code-panel convention for this category.
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.