Scheduled Public-Data Pipeline
The problem
Canadian trade, retail, inflation, population and exchange-rate figures are public, but they live in separate tables, change on different release schedules, and come in different shapes. Keeping a set of charts current by hand means downloading files, reformatting columns and re-publishing every few weeks, which is exactly the kind of repeatable work that gets skipped.
The approach
Built a zero-dependency Node script that reads a declarative list of datasets. Each entry knows which Statistics Canada table or Bank of Canada series to call, how to map and aggregate it (for example daily exchange rates into monthly averages), and which file to write. Every dataset lands in the same JSON shape with source, unit and last-updated metadata. A GitHub Actions workflow ran the script twice a month, committed only files whose numbers had changed, and let Netlify rebuild the site. Heavier series ran through Python pipelines on a local scheduled task.
Result
Seven datasets stayed current for months with no manual downloads, no API keys and no server: the site read static JSON at build time. The live charts have since been retired so the site can focus on ecommerce work; the pipeline pattern is what carried over.
What I learned
The reusable part is the registry: one place that declares each source, its mapping and its output, with a single runner on top. Adding a dataset became a few lines instead of a new script. The same pattern applies to any business data that arrives on a schedule, such as marketplace reports, supplier price files or order exports.