A webhook.site-like service running on Cloudflare Workers or self-hosted using Bun.
- Install Wrangler
wrangler d1 create cf-webhookto create a Durable Object namedcf-webhook- Edit
wrangler.tomland updatedatabase_idind1_databasessection to the id of the created Durable Object. (Also updatedatabase_nameif you used a different name) - Comment out or remove
kv_namespacessections inwrangler.toml. wrangler d1 execute cf-webhook --file=./schema.sqlwrangler publish- Visit the published URL and you should see the web interface.
- Install Wrangler
wrangler2 kv:namespace create filesandwrangler2 kv:namespace create requeststo create necessary KV namespaces- Edit
wrangler.tomland updatenamespace_idinkv_namespacessection to the id of the created KV namespace. (Ensure theidmatches the correctbinding) - Comment out or remove
d1_databasessection inwrangler.toml. - Edit
BACKING_STORAGEinvarssection tokv. wrangler publish- Visit the published URL and you should see the web interface.
bun run ./src/bun-entry.ts
docker compose up -d
Create .dev.vars file with the following content:
ADMIN_USERNAME=admin
ADMIN_PASSWORD=adminwrangler2 d1 execute cf-webhook --local --file=./schema.sql- URL: https://cf-webhook.fly.dev/
- Logs: https://cf-webhook.fly.dev/logs
- Edit: https://cf-webhook.fly.dev/edit
Username: admin, Password: admin