postPit
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data β all from the browser, and deployed in milliseconds.
index.ts
https://nholden--79e3e80c374d11f0bc599e149126039e.web.val.run
A webhook testing service that captures HTTP requests and displays them in a user-friendly interface.
- Generate unique URLs for capturing webhook events
- Persist all incoming requests with full details (headers, body, method, etc.)
- Real-time UI for viewing captured requests
- Support for all HTTP methods
- Enhanced JSON formatting with collapsible/expandable objects and arrays
- Syntax highlighting for JSON data
- Request timestamps and metadata
βββ backend/
β βββ database/
β β βββ migrations.ts # Database schema
β β βββ queries.ts # Database operations
β βββ index.ts # Main Hono server
βββ frontend/
β βββ components/
β β βββ App.tsx # Main React app
β β βββ BinView.tsx # Individual pit viewer (PitView)
β β βββ JsonViewer.tsx # Enhanced JSON viewer with collapsible objects
β β βββ RequestList.tsx # Request list component
β βββ index.html # Main HTML template
β βββ index.tsx # Frontend entry point
βββ shared/
βββ types.ts # Shared TypeScript types
- Visit the homepage to create a new POST Pit
- Copy the generated URL and use it as a webhook endpoint
- Send HTTP requests to the URL
- View captured requests in real-time on the pit page
GET /- HomepagePOST /api/pits- Create a new pitGET /api/pits/:pitId- Get pit details and requestsALL /pit/:pitId- Capture webhook requestsGET /pit/:pitId/view- View pit in UI