Project Tessera
A collector that reads 300 public price pages every hour and turns them into one clean table.
Fleet role: full build and upkeep. One lead, three builders, one reviewer.
Stack: typescript · node · sqlite
Sample project: there is no live site or repository behind these buttons yet.
Walkthrough
Now playing: a generated placeholder, drawn on your device. No file is loaded.
What it does
- 01A shop owner sees competitor prices in one table instead of opening 300 pages.
- 02When a page changes its layout, the collector notices and reports it instead of saving wrong data.
- 03Each run costs cents, and it obeys the limits each site sets.
Four layers
Pull the layers apart and pick one to see what it does and where its code lives.
L1 · Scheduler
Decides which page to read and when, and slows down when a site asks it to.
collector/src/schedule.tsL2 · Readers
One small reader per site. Each has its own test with a saved copy of the page.
collector/src/readersL3 · Checks
Compares new numbers with the last ones. A price that jumps tenfold is held for review.
collector/src/checks.tsL4 · Table
One table with history, exported as a spreadsheet every morning.
warehouse/models
What went wrong and how we fixed it
A redesign poisoned the data
- symptom
- One site moved its price tag and the collector saved the delivery cost as the price.
- cause
- The reader trusted the first number it found.
- fix
- Readers now verify the page shape first; an unknown shape stops that reader and raises an alert.
Runs took longer than an hour
- symptom
- The next run started before the previous one ended.
- cause
- Pages were read one after another.
- fix
- Pages are read in small parallel groups per site, with a hard time limit.
By the numbers
Sample figures: invented, like the rest of this project.