Skip to content

dhruvinsh/electricity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ontario Electricity Rate Comparator

A full-stack PWA to compare Ontario residential plan costs (Tiered, TOU, ULO) for Alectra-compatible rate options.

Features

  • Compare all three plans for the same input scenario
  • Select current plan to highlight your baseline
  • Two usage input modes:
    • Simple monthly kWh + profile distribution
    • Detailed kWh by TOU and ULO periods
  • Edit default rates before each calculation
  • Optional extras estimate (HST, OER, delivery, regulatory placeholders)
  • Offline-capable PWA with local scenario restore
  • Docker-ready deployment behind Traefik

Run locally

npm install
npm run dev

Open http://localhost:3000

API

  • GET /api/health
  • GET /api/rates
  • POST /api/rates/refresh
  • POST /api/compare

Rates source

Default rates are in server/rates/default-rates.json.

Remote refresh can be enabled by setting RATES_SOURCE_URL to a JSON endpoint matching the same shape.

Docker (Traefik)

cd docker
docker compose -f docker-compose.traefik.yml up -d --build

Update the host rule label in compose to your domain used by Traefik.

About

Compare Ontario electricity plans (Tiered, TOU, ULO) — editable rates, kWh calculator, Docker + Traefik PWA.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors