{"id":22615741,"url":"https://github.com/respoke/example-webhook-nodejs-server","last_synced_at":"2026-02-26T16:02:08.287Z","repository":{"id":28656837,"uuid":"32176268","full_name":"respoke/example-webhook-nodejs-server","owner":"respoke","description":"A Node.js server boilerplate for responding to Respoke webhooks.","archived":false,"fork":false,"pushed_at":"2015-07-10T15:27:23.000Z","size":168,"stargazers_count":10,"open_issues_count":0,"forks_count":4,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-11T12:41:59.042Z","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/respoke.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":"2015-03-13T19:24:19.000Z","updated_at":"2022-01-24T04:55:09.000Z","dependencies_parsed_at":"2022-08-24T10:10:23.093Z","dependency_job_id":null,"html_url":"https://github.com/respoke/example-webhook-nodejs-server","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/respoke/example-webhook-nodejs-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/respoke%2Fexample-webhook-nodejs-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/respoke%2Fexample-webhook-nodejs-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/respoke%2Fexample-webhook-nodejs-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/respoke%2Fexample-webhook-nodejs-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/respoke","download_url":"https://codeload.github.com/respoke/example-webhook-nodejs-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/respoke%2Fexample-webhook-nodejs-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29863783,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T08:51:08.701Z","status":"ssl_error","status_checked_at":"2026-02-26T08:50:19.607Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-12-08T19:09:16.624Z","updated_at":"2026-02-26T16:02:08.267Z","avatar_url":"https://github.com/respoke.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# example-webhook-nodejs-server\n\n## Processing Webhooks from Respoke\n\nWebhooks are a powerful, yet little known feature of Respoke.\n\nWhen events happen in your app - like endpoints joining or leaving a group - you can\nget notified via webhook.\n\n## Prerequesites\n\n* [Node.js](https://nodejs.org/download/)\n\n## 0. Download ngrok (optional)\n\nFor fast local development, this example will use [ngrok](https://ngrok.com/download) to tunnel a port on your localhost to a subdomain of ngrok. This lets Respoke send you webhooks on https://your-custom-subdomain.ngrok.com and the requests are proxied to your local machine.\n\n[Download ngrok](https://ngrok.com/download) and take note of where you put the `ngrok` file.\n\n## 1. Configure your webhook\n\nTo get started, go the the [Respoke dev portal](https://portal.respoke.io) and create a new app.\n\nThen navigate down to the *Webhooks* section.\n\n![respoke dev portal webhook URL input](http://i.imgur.com/vCJUWED.png)\n\nPut in your webhook endpoint and hit *Update*.\n\nIf you're using `ngrok`, just make up something like `https://actual-cannibal-shia-labeouf.ngrok.com`.\n\n## 2. Clone the repo and install\n\nAn example webhook server is on the Respoke GitHub:\n\n```bash\ngit clone https://github.com/respoke/example-webhook-nodejs-server\ncd example-webhook-nodejs-server\nnpm install\n```\n\n## 3. Run the webhook server\n\n```bash\nnpm start\n```\n\nThe server will run on http://localhost:3009 and print incoming webhooks.\n\n\n\n## 4. Fire up the ngrok tunnel (optional)\n\n```bash\ncd path/to/ngrok/folder\n./ngrok --subdomain=actual-cannibal-shia-labeouf 3009\n```\n\nThis tells `ngrok` to tunnel all requests to `https://actual-cannibal-shia-labeouf.ngrok.com` to your `localhost:3009`.\n\n## 5. Receive webhooks\n\nNext, do something that initiates some Respoke activity. You could clone the [web examples](https://github.com/respoke/web-examples) and set them up to use your `appId`.\n\n![example webhook traffic](http://i.imgur.com/B0EYgBi.png)\n\nThat's really all it takes to start responding to webhooks.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frespoke%2Fexample-webhook-nodejs-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frespoke%2Fexample-webhook-nodejs-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frespoke%2Fexample-webhook-nodejs-server/lists"}