What problem does it solve? Shopify apps must react to store events in real time, but webhook delivery is at-least-once, signatures can be forged, and slow handlers trigger retries — leading to duplicate processing, missed uninstall events, and failed App Store GDPR reviews. ## Core Features & Use Cases - Programmatic Registration: Register webhook subscriptions via the Admin GraphQL API in the afterAuth hook, including the three mandatory GDPR topics and APP_UNINSTALLED, while treating ALREADY_EXISTS errors as non-fatal. - HMAC Signature Verification: Verify the X-Shopify-Hmac-SHA256 header using crypto.timingSafeEqual against a raw request body, with Express middleware that applies the raw body parser before any JSON parsing. - Idempotent Background Processing: Respond 200 within 5 seconds, deduplicate deliveries using X-Shopify-Webhook-Id, and offload work to a BullMQ queue with retries and exponential backoff. - Use Case: A logistics app listens for orders/create, immediately acknowledges the webhook, deduplicates by webhook ID, and queues ERP sync, warehouse inventory updates, and merchant notifications for reliable async processing. ## Quick Start Ask the AI to write a Shopify webhook handler that verifies the HMAC signature, registers the GDPR topics, and processes orders idempotently through a background queue.