A browser-based home solar system simulator. Configure your household usage profile, size your solar + battery setup, and estimate costs, savings, and payback periods — no backend required.
Live demo: https://cdrose.github.io/solar-sim/
- Daily usage profile — adjust morning, midday, evening and overnight consumption with sliders, or pick from preset household profiles
- Solar configuration — set panel capacity (kW), battery storage (kWh) and system costs
- Simulation — run summer/winter × sunny/cloudy day scenarios to see:
- Solar direct usage, battery discharge and grid import
- Energy exported to the grid
- Cost & payback — enter panel, inverter and battery pricing to calculate estimated annual savings and payback period
npm install
npm run devThen open http://localhost:5173
npm run build # output in dist/
npm run preview # preview the production build locallyDeployments are automated via .github/workflows/deploy.yml. Any push to main triggers a build and deploy.
To set up on a new repo:
- Push to GitHub
- Go to Settings → Pages → Source → GitHub Actions
- The workflow runs automatically — site is live at
https://<user>.github.io/<repo>/
The GITHUB_PAGES=true environment variable in the workflow activates the correct base path in vite.config.js.