Inflation simulator highlighting the difference between the inflation rate and the price level.
Hosted at https://felipetappata.github.io/inflation_app/
npm install
npm run devCPI series are pulled from FRED at build time by scripts/fetch-fred-data.mjs and written to
static/data/. The prebuild script runs it automatically; run it manually with
npm run fetch-data.
- With a
FRED_API_KEY(see.env.example) it uses the FRED API; without one it falls back to the publicfredgraph.csvendpoint (throttled). - Countries and series IDs are defined in
scripts/fred-registry.mjs.
npm run dev— dev server (fetches data if missing)npm run build— production build (refetches data)npm run fetch-data— refreshstatic/data/npm run deploy— build and publish to GitHub Pagesnpm run check/npm run lint/npm run format
Svelte 5 · SvelteKit · D3 · TypeScript · Tailwind
MIT