A webhook.site-like service running on Cloudflare Workers or self-hosted using Bun.
- Install Wrangler
wrangler d1 create cf-webhook
to create a Durable Object namedcf-webhook
- Edit
wrangler.toml
and updatedatabase_id
ind1_databases
section to the id of the created Durable Object. (Also updatedatabase_name
if you used a different name) - Comment out or remove
kv_namespaces
sections inwrangler.toml
. wrangler d1 execute cf-webhook --file=./schema.sql
wrangler publish
- Visit the published URL and you should see the web interface.
- Install Wrangler
wrangler2 kv:namespace create files
andwrangler2 kv:namespace create requests
to create necessary KV namespaces- Edit
wrangler.toml
and updatenamespace_id
inkv_namespaces
section to the id of the created KV namespace. (Ensure theid
matches the correctbinding
) - Comment out or remove
d1_databases
section inwrangler.toml
. - Edit
BACKING_STORAGE
invars
section 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=admin
wrangler2 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