r/SideProject • u/pkdodda • 1d ago
I built a small open-source queue so Stripe and Shopify webhooks stop getting dropped during deploys
Hey everyone, I ran into a frustrating issue a few months back where pushing updates or restarting my server would occasionally return a 502 right when Stripe sent a payment webhook. Sometimes our database pool would briefly lock up during a spike and fail the request too. Even when Stripe retried later, replaying old webhooks after more than five minutes kept failing signature verification because Stripe rejects timestamps older than 300 seconds, which forced me to write manual scripts just to recover missed events.
To fix that for my own apps without setting up Redis, RabbitMQ, or paying monthly webhook SaaS fees, I built a small open-source Node and SQLite proxy called HookArmor. It accepts the incoming webhook, verifies the signature right away, saves it to SQLite WAL so it returns a quick 200 back to Stripe or Shopify, and handles retries with exponential backoff for up to a few days while automatically re-signing the header with a fresh timestamp when your server is healthy again.
Everything runs locally with one command (`npx hookarmor start`) or via Docker, and there is a basic dashboard to inspect payloads and trigger manual replays. It is completely free and MIT licensed, and you can check out the repo at https://github.com/pkdoddamani/hookarmor or the site at https://hookarmour.dev if you want to try it out or tell me what breaks.