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