Skip to content

Live, flashfood.canadeal.ca

Flashfood Deal Finder

A live, filterable feed of discounted Flashfood groceries across cities, stores and categories, in five languages.

real-time feed, no polling
Livereal-time feed, no polling
interface languages
5interface languages
dynamic social preview images
Edgedynamic social preview images
flashfood.canadeal.ca
Flashfood Helper grid of discounted grocery items in Calgary
Calgary deals sorted by best discount, filterable by area, store and category.

The problem

Flashfood has real discounted-grocery opportunities, but discovery is fragmented across cities, stores, and categories — with no good way to filter or track what's available.

What I built

Live deal feed using Firestore onSnapshot (no polling) with composable region/store/category/keyword filters and multiple sort modes. Infinite scroll via IntersectionObserver in 32-item batches. Per-city filter persistence in sessionStorage. Multi-language UI (EN / ZH / FR / KR / JP). Dynamic Open Graph images generated at the Edge for rich social-sharing previews.

Manual work it replaces

The manual hunt-and-sort of finding and tracking discounts across a noisy, constantly changing source.

What I learned

A filter-restore race condition on city switch required a ref-based guard to fix cleanly. Deriving context-aware category pills through a two-pass filtering strategy turned out to be the right call — it eliminated a whole class of inconsistency.

Built with

  • Next.js
  • Firebase
  • Firestore
  • Vercel

Live at flashfood.canadeal.ca.