Trackers
Price tracking for the products I care about, with email alerts.
Daily scrapers for several shops, a small web UI to add products by pasting a URL, price history charts, and emails when a price changes or something comes back in stock. It can also follow a whole category and report what entered, left or moved.
- Stack
- Node.jsTypeScriptSupabasePostgresSMTP
What it does
Trackers follows the price and availability of products I (and a few friends) care about across several shops. You add a product by pasting its URL; the shop is detected from the domain and you choose who should get the alerts. Every day it checks every product, stores the observation and sends an email when a price changes or something comes back in stock.
It can also follow a whole category: it watches the top N results and reports what entered, what left, what came back and what moved position. The web UI shows each product with its current price, variation, minimum, maximum and a full history chart.
Zero dependencies, one file per shop
There is no npm install. Node 22 runs TypeScript directly and ships fetch, a test runner and everything else the project needs, so nothing breaks because a package changed. Each shop is a single module that knows how to read a product page or a listing; adding a shop does not touch the rest of the system.
Alerts are split on purpose: price alerts go to whoever follows the product, while “this scraper is broken” alerts go only to me. To avoid flooding my inbox when a shop changes its HTML, the developer alert is sent on the first failure and then every third consecutive failure.
Moving from git to Postgres, and from the cloud to home
The first version stored everything as JSON files in the repository and scraped from a GitHub Actions cron. It worked until it didn't: git had two writers (the cron and me from the UI) and I had to resolve merge conflicts by hand three times. Moving to Postgres on Supabase removed the conflicts and shrank a year of data from about 268 MB of JSON to about 29 MB of rows.
Scraping moved to a laptop at home, and not for CPU: 78% of a run is deliberate waiting between pages. The reason is the IP. Data-centre IPs from CI runners get blocked by several big shops, while a residential connection does not.
$ highlights
- Zero dependencies: plain Node 22 running TypeScript directly.
- One file per shop; adding a store doesn't touch the rest of the system.
- Separate channels: price alerts go to whoever follows the product, broken-scraper alerts go to me.
Want to talk about this project or something similar?
Get in touch