{"id":13707363,"url":"https://github.com/maple3142/cf-webhook","last_synced_at":"2025-05-06T03:31:19.259Z","repository":{"id":208936363,"uuid":"722740976","full_name":"maple3142/cf-webhook","owner":"maple3142","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-08T06:46:06.000Z","size":169,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-08T21:48:31.813Z","etag":null,"topics":["cloudflare","cloudflare-workers","workers"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maple3142.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-11-23T20:51:15.000Z","updated_at":"2024-08-08T06:46:09.000Z","dependencies_parsed_at":"2023-12-21T13:26:17.491Z","dependency_job_id":"81c0fb21-65b3-405f-b441-980d29d5c44f","html_url":"https://github.com/maple3142/cf-webhook","commit_stats":null,"previous_names":["maple3142/cf-webhook"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maple3142%2Fcf-webhook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maple3142%2Fcf-webhook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maple3142%2Fcf-webhook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maple3142%2Fcf-webhook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maple3142","download_url":"https://codeload.github.com/maple3142/cf-webhook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224484495,"owners_count":17318984,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloudflare","cloudflare-workers","workers"],"created_at":"2024-08-02T22:01:28.920Z","updated_at":"2024-11-13T16:30:20.246Z","avatar_url":"https://github.com/maple3142.png","language":"HTML","funding_links":[],"categories":["HTML"],"sub_categories":[],"readme":"# cf-webhook\n\nA [webhook.site](https://webhook.site/)-like service running on Cloudflare Workers or self-hosted using Bun.\n\n## Deployment (using D1 as backing storage)\n\n1. Install [Wrangler](https://developers.cloudflare.com/workers/wrangler/install-and-update/)\n2. `wrangler d1 create cf-webhook` to create a Durable Object named `cf-webhook`\n3. Edit `wrangler.toml` and update `database_id` in `d1_databases` section to the id of the created Durable Object. (Also update `database_name` if you used a different name)\n4. Comment out or remove `kv_namespaces` sections in `wrangler.toml`.\n5. `wrangler d1 execute cf-webhook --file=./schema.sql`\n6. `wrangler publish`\n7. Visit the published URL and you should see the web interface.\n\n## Deployment (using KV as backing storage)\n\n1. Install [Wrangler](https://developers.cloudflare.com/workers/wrangler/install-and-update/)\n2. `wrangler2 kv:namespace create files` and `wrangler2 kv:namespace create requests` to create necessary KV namespaces\n3. Edit `wrangler.toml` and update `namespace_id` in `kv_namespaces` section to the id of the created KV namespace. (Ensure the `id` matches the correct `binding`)\n4. Comment out or remove `d1_databases` section in `wrangler.toml`.\n5. Edit `BACKING_STORAGE` in `vars` section to `kv`.\n6. `wrangler publish`\n7. Visit the published URL and you should see the web interface.\n\n## Deployment (with Bun)\n\n1. `bun run ./src/bun-entry.ts`\n\n## Deployment (with Docker)\n\n1. `docker compose up -d`\n\n## Development\n\n### Setup env vars\n\nCreate `.dev.vars` file with the following content:\n\n```bash\nADMIN_USERNAME=admin\nADMIN_PASSWORD=admin\n```\n\n### Setup Local D1\n\n```bash\nwrangler2 d1 execute cf-webhook --local --file=./schema.sql\n```\n\n## Demo instance\n\n* URL: https://cf-webhook.fly.dev/\n* Logs: https://cf-webhook.fly.dev/logs\n* Edit: https://cf-webhook.fly.dev/edit\n\nUsername: `admin`, Password: `admin`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaple3142%2Fcf-webhook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaple3142%2Fcf-webhook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaple3142%2Fcf-webhook/lists"}