Ready-to-deploy webhook handlers for Codehooks.io.
-
Install the Codehooks CLI:
npm install -g codehooks
-
Create a Codehooks.io account at codehooks.io
-
Login to the CLI:
coho login
Handle Stripe payment events like successful payments, subscriptions, and failed invoices.
cd codehooks-stripe
npm init -y
npm install codehooks-js webhook-verify
coho create stripe-webhooks
coho set-env STRIPE_WEBHOOK_SECRET whsec_your_secret_here
coho deployProcess GitHub events like pushes, pull requests, issues, and stars.
cd codehooks-github
npm init -y
npm install codehooks-js webhook-verify
coho create github-webhooks
coho set-env GITHUB_WEBHOOK_SECRET your_secret_here
coho deployHandle Shopify store events like orders, products, and customer updates.
cd codehooks-shopify
npm init -y
npm install codehooks-js webhook-verify
coho create shopify-webhooks
coho set-env SHOPIFY_WEBHOOK_SECRET your_secret_here
coho deployHandle webhooks from multiple providers (Stripe, GitHub, Slack) in a single deployment.
cd codehooks-multi-provider
npm init -y
npm install codehooks-js webhook-verify
coho create multi-webhooks
coho set-env STRIPE_WEBHOOK_SECRET whsec_xxx
coho set-env GITHUB_WEBHOOK_SECRET xxx
coho set-env SLACK_SIGNING_SECRET xxx
coho deployAfter deploying, get your webhook URL:
coho infoYour webhook endpoints will be:
https://your-project-xxxx.api.codehooks.io/dev/webhooks/stripehttps://your-project-xxxx.api.codehooks.io/dev/webhooks/github- etc.
Use the Codehooks.io dashboard to view logs and debug webhook deliveries.