All work

Express Entry Draws Intelligence

Turning an IRCC JSON feed into an answer people can act on

Role
Solo build
When
2025 to present
Status
Live and self-updating

Context

Immigration, Refugees and Citizenship Canada publishes every Express Entry draw as a raw JSON feed. It is complete and it is useless: no trend, no context, no way to tell whether a CRS score of 491 is close or hopeless. Candidates end up scraping it into spreadsheets by hand.

The problem

The feed changes without warning, sometimes twice in a week and sometimes not for a month. Anything built on it has to notice a new draw on its own, work out that it is genuinely new rather than a reordered payload, and get the update in front of people without anyone remembering to press a button.

Approach

  1. Change detection instead of polling blindly

    lib/checker.py takes a set difference between the draw numbers in the IRCC feed and the ones already in Postgres. Nothing downstream runs unless that difference is non-empty, so a refresh that finds nothing new costs one request and writes nothing.

  2. A notification outbox, not a send loop

    lib/notifier.py claims a draw before sending, so a retry or a second concurrent refresh cannot double-notify the same subscriber. The email client in lib/emailer.py is written to never raise: a failed send degrades the notification, it does not take down the sync.

  3. Two schedulers, deliberately

    The primary path is a scheduled refresh on Vercel. A GitHub Actions workflow pings /api/refresh every three hours between 09:00 and 21:00 UTC as a backup, so the dashboard stays current even if the platform scheduler is having a bad day.

  4. Statistics on the client

    src/utils/stats.js does the linear regression, gap computation, and CRS prediction in the browser against data already fetched, which keeps the serverless functions doing one job: moving data.

How it fits together

Source

  • IRCC JSON feed

Detect

  • checker.py
  • set difference vs stored draw numbers

Store

  • Supabase Postgres
  • draws + sync_runs

Serve

  • FastAPI on Vercel
  • /api/draws

Render

  • React + Vite
  • regression, gaps, predictions

Only when new draws exist

  • notifier.py claims the draw
  • Resend batch send
  • confirm / unsubscribe
Daily sync path, from the government feed to a notified subscriber.

Tech stack

Frontend
  • React 18
  • Vite
  • Tailwind CSS
Backend
  • Python 3.11
  • FastAPI
  • Mangum
Data
  • Supabase (Postgres)
  • IRCC official JSON feed
Platform
  • Vercel serverless
  • GitHub Actions
  • Resend

Outcome

  • Live at EE.bittobyte.qzz.io, refreshing itself without manual intervention.
  • Trend charts, CRS predictions, a score checker, and the full searchable draws table in one page.
  • Email notifications carrying per-draw statistics, with confirm and unsubscribe flows.
  • Started as a Python ETL script publishing to GitHub Pages, then migrated to FastAPI, Postgres, and Vercel once the data outgrew a static build.

More case studies

Alex

AI & Automation Engineer. Building things that work so you don't have to.

© 2026 Alejandro Martinez. All rights reserved.

All Systems Online

Some projects are fan-made tributes and are not affiliated with the works they reference. Terms