A small, browser-based CO₂ emissions calculator for trips in Brazil. It lets you pick origin/destination (Brazilian state capitals), auto-fills the distance, and estimates total CO₂ emissions based on the chosen transport mode. It also shows environmental equivalents and a simple impact analysis with recommendations.
- Select origin and destination from all Brazilian capitals
- Auto-calculates distance (with a road-distance approximation and specific route overrides)
- Transport-mode emission factors (g/km) driven by a single configuration file
- Calculates total CO₂ emissions (supports round trip and monthly frequency)
- Shows environmental equivalents (trees, smartphone charges, kWh, and “average car km”)
- Impact analysis (Low/Medium/High) with recommendations
- HTML5
- CSS3 (responsive layout + design tokens via CSS variables)
- Vanilla JavaScript (ES Modules)
This is a static project (no build step required).
Option A — Open directly:
- Open
index.htmlin your browser.
Option B — Run with a local server (recommended):
- Use any local server (for example, the VS Code extension “Live Server”).
- Start the server from the project root and open the provided local URL.
Contributions, issues, and feature requests are welcome! Feel free to check the issues page if you want to contribute.
This project is free software available under the MIT license.