costco-watch: ntfy alert when a Costco tire is back in stock

This commit is contained in:
2026-08-12 07:33:32 -07:00
parent c5a5e9c353
commit bdace45cd6
5 changed files with 181 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
# costco-watch image
Dependency-free Node service (node:22-alpine + curl for the healthcheck).
Source: https://git.alexzaw.dev/alexz/costco-watch (working copy:
~/projects/costco-watch). Build + push with ./build.sh.
Gotchas:
- TARGET_URL must go through the costco-tire cloudflared proxy AND that
hostname needs a Cloudflare Transform Rule adding browser headers
(User-Agent, Accept, Accept-Language, Sec-Fetch-*). Without it Costco stalls
the request until timeout and the checker reports "error"/"blocked".
- State (last stock value, transition history) lives in ${APP_DATA_DIR}/data;
wiping it means the next check can re-alert.