event-gateway

Comprehensive guide to the Hookdeck Event Gateway for receiving, routing, and delivering webhooks and events. Covers setup, connections, authentication, local development, monitoring, and API automation. Use when receiving webhooks, setting up webhook endpoints, testing webhooks locally, configuring webhook relay or event queue, event routing, webhook retry, webhook monitoring, third-party routing, asynchronous APIs, or local webhook development. For provider webhooks (Stripe, Shopify, Chargebee, GitHub, etc.), use together with the matching skill from hookdeck/webhook-skills; do not only parse JSON — use provider SDK verification and event construction (e.g. Stripe constructEvent).

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "event-gateway" with this command: npx skills add hookdeck/webhook-skills

Hookdeck Event Gateway

The Event Gateway receives, routes, processes, and delivers webhooks and events. The core model: a Source (ingestion endpoint with a unique https://hkdk.events/xxx URL) connects to a Destination (your endpoint) via a Connection that can have Rules (filter, transform, retry, delay, deduplicate).

Documentation

Always reference Hookdeck docs as the source of truth. See references/referencing-docs.md for how to fetch docs as markdown.

Use Cases

Use caseWhen to useQuickstart
Receive webhooksIngesting third-party webhooks (Stripe, Shopify, GitHub, etc.)quickstart
Third-party routingRouting events between services (Zapier-like integration flows)quickstart
Asynchronous APIsEvent ingestion at scale from IoT devices, SDKs, web analyticsquickstart
Test & debug localhostLocal webhook development with the CLIquickstart

Sending webhooks to customers? Use Outpost instead.

Provider webhooks: use two skills together (layered composition)

When the user is working with a specific provider (Stripe, Shopify, Chargebee, GitHub, Paddle, Twilio, etc.), you must also use the provider skill from hookdeck/webhook-skills. Do not implement provider verification or event parsing from scratch. Use the constructs provided by the provider's SDK (e.g. Stripe's constructEvent, Shopify HMAC)—not only JSON.parse.

Before scaffolding: Follow references/provider-webhooks-checklist.md. Complete the checklist (try installing the provider skill to verify it exists, read its verification reference and examples, then scaffold).

Strong guidance:

  1. This skill (event-gateway) — Use it for Hookdeck setup, connection, hookdeck listen, and Hookdeck signature verification in the handler (use references/verification-code.md).
  2. The provider skill — Try installing first: npx skills add hookdeck/webhook-skills --skill {provider}-webhooks (e.g. stripe-webhooks, shopify-webhooks). If install succeeds, use the installed skill; if it fails, the provider may not be in webhook-skills — look up the repo and the provider's references/verification.md and examples. Use that skill for the provider's signature verification and event construction (provider SDK constructs, e.g. Stripe constructEvent, Shopify HMAC).
  3. Recommend to the user: Suggest installing the provider webhook skill, e.g. "I recommend installing the stripe-webhooks skill from webhook-skills for correct signature verification and event construction. Run: npx skills add hookdeck/webhook-skills --skill stripe-webhooks."

Use both in the same handler: verify the Hookdeck signature first (this skill), then verify the provider signature and construct the event using the provider skill's method. Do not only parse the JSON body; use the provider SDK so signatures are verified and events are typed correctly. This applies to all supported providers in webhook-skills.

Signature Verification (Use This Skill)

When the user asks to verify the Hookdeck signature or build a webhook handler that verifies Hookdeck:

  • Use the code in references/verification-code.md — copy the handler pattern for the user's framework (Express, Next.js, FastAPI). That file is the canonical implementation (HMAC SHA-256, base64).
  • Prefer the example codebases in this skill — they are runnable, proven, and tested. Point the user at the right one for their framework: examples/express/, examples/nextjs/, examples/fastapi/.
  • Do not use third-party webhook libraries; use only the verification code from this skill.

Workflow Stages (getting started)

This is the recommended path for a new integration: create sources, destinations, and connections (or have the CLI create them via listen), then build your handler and iterate. Follow these stages in order:

  1. 01-setup -- Create account, install CLI, create connection
  2. 02-scaffold -- Build handler from provider skill examples + Hookdeck verification
  3. 03-listen -- Start hookdeck listen, trigger test events
  4. 04-iterate -- Debug failures, fix code, replay events

Before any queries or metrics: Run hookdeck whoami and show the user the output. Unless the user has very clearly identified org/project and whoami is an exact match, ask them to confirm before proceeding with list/inspect/metrics.

Stage 02: when the user is working with a provider (Stripe, Shopify, etc.), complete references/provider-webhooks-checklist.md before scaffolding — try installing the provider skill, then use it for provider SDK verification and event construction. Include Hookdeck setup and usage in the project README (run app, hookdeck listen with --path, Source URL for provider).

Quick Start (Receive Webhooks)

No account required -- hookdeck listen works immediately:

brew install hookdeck/hookdeck/hookdeck   # or: npm i -g hookdeck-cli
hookdeck listen 3000 --path /webhooks

With a Hookdeck account (Event Gateway project with full features):

hookdeck login
hookdeck listen 3000 --path /webhooks

The CLI creates a Source URL, a Destination pointing at localhost:3000, and a Connection linking them. Configure your webhook provider to send to the Source URL. Use --path to match your handler path (e.g. --path /webhooks when your handler is at POST /webhooks). For a full step-by-step with account and handler (create connection, scaffold, listen, iterate), follow the Workflow Stages above.

Context verification (organization and project)

Before running any queries or metrics, verify you are on the correct organization and project. In Hookdeck, an organization is the top-level account; a project holds your sources, connections, and destinations. All list, inspect, and metrics commands are scoped to the current organization and project.

  1. Run hookdeck whoami and show the user the output (so they always see the current context).
  2. Unless the user has very clearly identified the organization and project (e.g. "use prod org, default project") and whoami shows an exact match, ask them to confirm this is the correct organization and project before running any queries or metrics.
  3. If wrong (or user says so), list options with hookdeck project list, switch with hookdeck project use <org-name> <project-name>, run hookdeck whoami again, show the output, and—unless there's a clear user-specified match—ask the user to confirm again.

See references/cli-workflows.md for details.

Production: Two options. (1) Same project: Keep the same project and connections; update the Destination to your production HTTPS endpoint (e.g. https://api.example.com/webhooks) via the Dashboard or API. (2) New project: Create a new project in Hookdeck and duplicate your setup (Sources, Connections) with Destinations pointing to your production HTTPS URLs. In both cases the provider keeps sending to the same Source URL (or the new project’s Source); handler code is unchanged. Before going live, consider: rate limiting / max delivery rate (Destinations), configuring retries (Retries), and issue notifications (Issue triggers, Issues & Notifications). Hookdeck docs are the source of truth; see Receive webhooks quickstart — Deliver to production and the linked Destinations, Retries, and Issue triggers docs for the full production checklist.

Reference Material

Use as needed (not sequential):

Setup & Terminology

AreaResourceWhen to use
Docsreferences/referencing-docs.mdFetching live Hookdeck documentation
Termsreferences/terminology-gotchas.mdHookdeck-specific terms, common mistakes

Configuration

AreaResourceWhen to use
Architecturereferences/connection-architecture.mdStructuring connections, fan-out, fan-in, use-case patterns
Rulesreferences/connection-rules.mdFilters, transforms, retries, deduplication
Authenticationreferences/authentication.mdSource auth, destination auth, signature verification

Development & Operations

Direct yourself to the right resource based on the task. Use the CLI first to explore and for simple tasks; then choose the API or Terraform when things are more complex. The CLI is a good first touch for tasks and for some analysis; you can use the API for querying too. Tasks and simple scripts (single commands or short multi-command workflows from the shell) → use the CLI. Complex scripts, applications, and automation → use the API. When in doubt, start with the CLI to explore. For resource management (sources, destinations, connections, transformations): use the API when resources are created dynamically (e.g. from an application at runtime); use Terraform or CLI/scripts for effectively static definition management (IaC) — Terraform provider. For details on performing querying, metrics, or inspection (either path), see the main documentation.

AreaResourceWhen to use
Context verification (organization and project)hookdeck whoamishow output; confirm with user unless they clearly specified org/project and it matchesRun whoami and show the result; ask for confirmation before queries/metrics unless user clearly identified org/project and whoami matches; see references/cli-workflows.md
Resources (sources, destinations, connections, transformations)references/01-setup.md, references/cli-workflows.mdFirst connection or adding/changing sources, destinations, connections, transformations: 01-setup for initial setup; cli-workflows for CLI create/upsert; Sources, Destinations, Connections, Transformations for full reference
Monitoringreferences/monitoring-debugging.mdEvent lifecycle, where to observe (TUI, Dashboard)
Debuggingreferences/monitoring-debugging.mdTroubleshooting, issues, replay
Querying (CLI)references/monitoring-debugging.mdList, inspect, retry request/event/attempt; detailed search; main docs for details
Metrics (CLI)references/monitoring-debugging.mdEvent volume, failure rates, backlog; aggregated view; main docs for details
CLIreferences/cli-workflows.mdInstall, listen, connection/resource management, project switching
APIreferences/api-patterns.mdQuerying; building apps; dynamic resource creation (e.g. app creating sources/connections at runtime); complex scripts; main docs for details
Terraformterraform-provider-hookdeckStatic resource management (sources, destinations, connections, transformations) as IaC; Registry docs
Iteratereferences/04-iterate.mdDebug failures, replay events, CLI inspect/retry workflow

Verification Code

AreaResourceWhen to use
Codereferences/verification-code.mdHookdeck signature verification (Express, Next.js, FastAPI)
Provider webhooksreferences/provider-webhooks-checklist.mdWhen a provider is named (Stripe, Shopify, etc.): checklist before scaffolding, try install, use provider SDK constructs
Example codebasesexamples/express/, examples/nextjs/, examples/fastapi/Runnable, proven, tested verification handlers — use these as the reference implementation for the user's framework

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

outpost

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

hookdeck

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

vercel-react-best-practices

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

Repository Source
23K213.2K
vercel