Read: the median is the headline
A product page leads with the median (robust against outliers), the low, and recent reports per governorate — so a single prank or mistake can't move the number everyone sees.
Loading page…
Case study 08 · Full Stack
What does bread actually cost in Kasserine today? Aswem asks the people buying it.
01 · What it is
Official price statistics are averages of averages, months old. Aswem (أسوام, "prices") collects the ground truth instead: anyone can report what they just paid for an everyday product in their governorate, and everyone can see the median price, the lowest reported price, and the most recent reports — free and open source, in Tunisian Darija and French.
02 · How it works
A product page leads with the median (robust against outliers), the low, and recent reports per governorate — so a single prank or mistake can't move the number everyone sees.
Product, price in dinars, governorate, and either a place name or your position — rounded to about 110 m, so the map is useful without exposing anyone's exact location.
The web server validates and forwards reports to the Rust API with a shared secret the browser never sees. The API then rejects prices more than 4× from the recent median in either direction and rate-limits every client — crowd data stays usable because abuse is boring to attempt.
03 · Engineering notes
This case study is written from the project's own repository and documentation — read the source to check every claim.