Inspiration

Every day, paid iOS apps quietly drop to $0 or hit their all-time low — and quietly go back up ~24 hours later. We already run PriceScout, a 24/7 monitoring pipeline that catches these drops, but its discoveries sat in a JSON feed nobody watches at 2 a.m. FrankenDeal gives that pipeline a mouth: Telegram, where a push notification actually reaches a human in time.

What it does

  • Polls the live PriceScout US feed (216 deals at build time) every 5 minutes.
  • Alerts subscribers the moment an app goes free or hits its historical low — deduped by deal id, persisted across restarts, so no alert ever fires twice.
  • Each alert is a photo card: app icon, struck-through original price, new price, discount %, a 🔥 marker for historical lows, the rating, and the App Store link.
  • Commands: /start, /stop, /min <percent> (personal discount threshold), /free (top free apps right now), /lows (historical lows right now), /help.
  • Verify it in 30 seconds, no setup: python3 -m frankendeal --demo fetches the live feed and prints real alert cards — no Telegram token needed.

How we built it (the Frankenstein stitch)

  • Eyes (existing, disclosed): PriceScout's production feed at feed.amzwatch.xyz/us/today.json — real deals from a pipeline that already runs around the clock.
  • Mouth (existing API): Telegram Bot API over long polling — no webhook, no server, no port; it runs anywhere, including a free sandbox.
  • Brain (new, built with Kiro): the diff/alert engine — qualification, dedupe, per-user filters, atomic state. Built spec-first with Kiro CLI: requirements, design and task specs plus steering docs live in /.kiro in the repo, and Kiro implemented the package and its tests from those specs. Four real-world bugs were found by live testing and fixed through the same spec loop (Cloudflare UA blocking, mid-body truncation solved with gzip, feed envelope shape, proxy env).
  • Python 3 standard library only. Zero dependencies, zero servers, $0 to run. 101 unit tests, all passing, no network required.

Challenges

  • Alert storms are the classic failure of this bot shape: dedupe is persisted and state writes are atomic (temp file + rename). A real agent hook (/.kiro/hooks/deal-state-guard.kiro.hook) forces a checkpoint before any code that persists state is edited.
  • A failed photo send falls back to plain text — an alert without a store link is treated as a bug, not a cosmetic issue.
  • The 326 KB feed is truncated mid-body on flaky networks; requesting gzip shrinks it to ~35 KB, and the fetch retries with backoff.

What's next

Per-category filters, more storefronts (the pipeline already tracks several), and a watchlist by app name.

Try it / test instructions

  1. git clone https://github.com/yijigao/frankendeal && cd frankendeal
  2. python3 -m frankendeal --demo — live feed → real alert cards, no token needed.
  3. python3 -m unittest discover -s tests — 101 tests.
  4. Full bot: create a bot via BotFather, set TELEGRAM_BOT_TOKEN, run python3 -m frankendeal, then send it /start and /free.

Built With

Share this project:

Updates

Submission history