{"id":20511309,"url":"https://github.com/friedrith/webhook-catcher","last_synced_at":"2026-07-13T01:31:57.495Z","repository":{"id":57158672,"uuid":"87286733","full_name":"friedrith/webhook-catcher","owner":"friedrith","description":"Express router to catch webhooks","archived":false,"fork":false,"pushed_at":"2018-01-17T17:25:18.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-07T06:12:43.490Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/friedrith.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-05T08:41:20.000Z","updated_at":"2017-04-10T15:40:45.000Z","dependencies_parsed_at":"2022-09-07T21:02:13.667Z","dependency_job_id":null,"html_url":"https://github.com/friedrith/webhook-catcher","commit_stats":null,"previous_names":["thibaultfriedrich/webhook-catcher"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friedrith%2Fwebhook-catcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friedrith%2Fwebhook-catcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friedrith%2Fwebhook-catcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friedrith%2Fwebhook-catcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/friedrith","download_url":"https://codeload.github.com/friedrith/webhook-catcher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242117660,"owners_count":20074433,"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":[],"created_at":"2024-11-15T20:35:28.096Z","updated_at":"2025-10-15T19:44:42.073Z","avatar_url":"https://github.com/friedrith.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# webhook-catcher\n\nThis is an express router to catch webhooks. So you add this router to your express server and this router will emit signal when webhooks are triggered by services.\n\n## Install\n\n```bash\n$ npm install webhook-catcher\n```\n\n## Getting started\n\n```javascript\nimport WebhookCatcher from 'webhook-catcher'\nimport express from 'express'\n\nconst app = express()\n\nconst catcher = new WebhookCatcher({\n  services: [ 'bitbucket', 'github' ],\n  token: '...',\n})\n\napp\n.use('/webhook', catcher.router)\n.get('/', (req, res) =\u003e {\n    res.send('ok')\n})\n\ncatcher.on('push', (pullRequest) =\u003e {\n  // pull request\n  // {\n  //   appName: ...,\n  //   repositoy: ...,\n  //   service: 'github' | 'bitbucket',\n  //   branchSource: ...,\n  //   branchDestination: ...,\n  //   description: ...,\n  //   title: ...,\n  //   reviewers: ...,\n  //   url: ...,\n  //   see all fields in the following documentation\n  // }\n})\n\ncatcher.on('push', (push) =\u003e {\n  // push\n  // {\n  //   appName: ...,\n  //   repositoy: ...,\n  //   service: 'github' | 'bitbucket',\n  //   branch: '...', // which branch is concerned\n  // }\n})\n\n```\n\n\n## Available services\n\nFor now, it manages services:\n\n* github\n* bitbucket\n\nSee how to define webhook in services in [services documentation](doc/services.md)\n\nIf you want specific tokens for each service, you can also define the webhook catcher like this:\n\n```js\nconst catcher = new WebhookCatcher({\n  services: [\n    {\n      name: 'bitbucket',\n      token: '...',\n    },\n    {\n      name: 'github',\n      token: '...',\n    }],\n})\n```\n\n## Available events\n\nFor now, it manages events:\n\n* push\n* pull request\n\nSee all events fields in [events documentation](doc/events.md)\n\n## Links\n\n* [Bitbucket api](https://confluence.atlassian.com/bitbucket/event-payloads-740262817.html#EventPayloads-Repositoryevents)\n* [Github api](https://developer.github.com/webhooks/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriedrith%2Fwebhook-catcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffriedrith%2Fwebhook-catcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriedrith%2Fwebhook-catcher/lists"}