Skip to content
This repository was archived by the owner on Sep 19, 2026. It is now read-only.
tehisainPublic archive

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

ee-scammers

A static website that visualizes how monthly scam losses in Estonia compare to second pillar pension contributions. Built with Astro and Chart.js, deployed to GitHub Pages.

How It Works

Data is collected nightly via GitHub Actions:

  • Pension contributions — fetched live from the Pensionikeskus API
  • Scam losses — aggregated from police data (pre-scraped JSONL)

Both sources are merged, validated with Zod, and written to src/data/chart-data.json. Astro imports this at build time — no runtime API calls.

Development

npm install
npm run dev        # local dev server
npm run build      # production build + OG image generation
npm run preview    # preview production build
npm run scrape     # refresh data from sources
npx vitest         # run tests

Note: npm run build requires Playwright Chromium for OG image screenshot generation. Install it with npx playwright install chromium.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages