Case study · 2026
bac.jerrary
A Bac grade simulator for Moroccan students: enter your marks and see, in 30 seconds, which schools you can get into, in every city in Morocco, with the source behind every cutoff.
- 2026
- React
- TypeScript
- Cloudflare Workers
- D1

- 465
- schools
- 59
- cities
- 897
- cutoffs, each with its source
- 05:00
- daily data bot
The problem
Every June the same question comes back: what do I need in the Bac to get into ENSA, medicine or ENCG? The answers are scattered across orientation sites, often without a source. And schools do not even select on the Bac average.
Getting the maths right
The Bac average is 25% regional exam, 25% continuous assessment and 50% national exam. Schools use a different score, the preselection mark: regional plus three times national, divided by four. The simulator computes both, with the real coefficients of every Bac track, and shows the formula and its sources under the result.
The data
465 schools in 59 cities: ENSA, ENCG, medicine, ENA, EST, FST, faculties, OFPPT. Every cutoff links to where it comes from, so anyone can check it. Where no cutoff is published, the site says so instead of inventing a number.
A bot that keeps it up to date
Cutoffs change every year, so nothing is updated by hand. A bot runs every morning at 05:00 (Morocco time): it reads the orientation sites, pulls the cutoffs out of their tables and compares them. When two sites agree, the site updates itself; when they disagree, the value waits for me to validate it.
Calendar and alerts
Every post-Bac concours on one calendar, month by month, a countdown to the 2027 Bac, and a phone notification when a concours or a new cutoff comes out. The site installs like an app and updates itself.
Privacy and security
No names, no emails, no IP addresses: only the track, the averages and the schools looked at, for an anonymous public stats page. The APIs answer only the site itself, requests are rate-limited, and the admin page locks after five wrong attempts.
Stack
React, TypeScript and Vite, with Framer Motion and Tailwind, mobile-first because most visitors come from a reel on their phone. Hosted on Cloudflare Pages, with a Cloudflare Worker and a D1 database for the stats.