How srishtea-22/we_capstone_project works
WebhookVault lets a developer create a temporary webhook URL, send events to it, inspect captured payloads, and generate types and framework-specific handlers from the captured data. The backend assigns UUIDs, stores endpoints and payloads in Redis with 24-hour expiry, and emits Socket.IO events; the frontend provides the capture and inspection workspace. Type generation flows through schema generation, an intermediate representation, and handler generation. The README documents additional language and framework support. Some frontend event and payload wiring is omitted from the excerpts, so those links are marked unverified.
Main entry points: page.tsx Webhook workspace · server.js Payload and types API · IRGenerator.js IR generator · schemaGenerator.js Schema generator
Components 12
Capture and storage
- Endpoint and capture API
backend/server.js - Payload and types API
backend/server.js - Realtime dispatch
backend/server.js
Code generation
- Schema generator
backend/services/schemaGenerator.js - IR generator
backend/services/IRGenerator.js - Handler generator
backend/services/handlerGenerator.js
Developer workspace
- Webhook workspace
frontend/app/page.tsx - JSON viewer
frontend/app/components/JsonViewer.tsx
External services
- Redis store
- Socket.IO service
Other components
- Developer
- Webhook sender
Connections 17
- Developer → Webhook workspace: uses
README.md - Webhook workspace → Endpoint and capture API: creates endpoint
frontend/app/page.tsx - Endpoint and capture API → Redis store: stores endpoint
backend/server.js - Webhook sender → Endpoint and capture API: sends webhook
backend/server.js - Endpoint and capture API → Redis store: stores payload
backend/server.js - Endpoint and capture API → Realtime dispatch: emits event
backend/server.js - Realtime dispatch → Socket.IO service: dispatches event
backend/server.js - Socket.IO service → Webhook workspace: updates live
- Webhook workspace → Payload and types API: requests types
frontend/app/page.tsx - Payload and types API → Redis store: reads payloads
backend/server.js - Payload and types API → Schema generator: generates types
backend/server.js - Payload and types API → IR generator: builds IR
backend/server.js - Payload and types API → Handler generator: generates handlers
backend/server.js - Schema generator → IR generator: schema input
backend/server.js - IR generator → Handler generator: IR input
backend/server.js - Webhook workspace → JSON viewer: renders payload
frontend/app/page.tsx - Developer → Webhook workspace: inspects and exports
README.md