A carbon footprint tracking & coaching app to help you measure, understand, and reduce your environmental impact.
- ๐ Tracking
- ๐ Visualization
- ๐ก Tips
- ๐ค AI
- ๐ Authentication
- ๐ Access
Track lifestyle inputs: transport, energy, diet, waste
Detailed footprint breakdown with charts & visuals
Personalized recommendations to cut emissions
Rule-based AI powered coaching system
Secure login with JWT + bcrypt
Works online & offline with fallbacks
| Category | Calculation Method |
|---|---|
| ๐ Transport | Mode factors → Car: 0.192 · Bus: 0.082 · Metro: 0.028 (kg/km) |
| โก Energy | Grid electricity → 0.70 kg/kWh |
| ๐ Diet | Multipliers → Meat-heavy: 1.3x · Vegetarian: 0.75x · Vegan: 0.6x |
| ๐๏ธ Waste | Category-specific emission factors |
๐ Outputs: Annual totals · % distribution · category breakdown
| Component | Technology | Purpose |
|---|---|---|
| Frontend | React 18 โ๏ธ · TypeScript · Vite ๐· TailwindCSS ๐จ · Chart.js ๐ | User interface & visualization |
| Backend | FastAPI โก · Uvicorn ๐ฅ · Pydantic | API & business logic |
| Data | CSV (emission_factors.csv) + In-memory storage | Emission factors & user/auth |
| Auth | JWT ๐ (python-jose) · bcrypt ๐ (passlib) | Secure login & signup |
| Route | Purpose |
|---|---|
| /estimate | Calculate carbon footprint |
| /recommend | Get reduction suggestions |
| /coach | AI-based coaching |
| /auth | Signup & login |
| /factors | Get emission factors |
git clone https://github.com/roseewood/CarbonWise.git cd CarbonWise
โ๏ธ Backend setup
cd backend python3 -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate pip install -r requirements.txt
๐จ Frontend setup
cd ../frontend npm install
๐ฅ๏ธ Backend
cd backend uvicorn app:app --reload
๐ Frontend (in a new terminal)
cd frontend npm run dev
Both servers should now be live โจ
- ๐ API →
http://127.0.0.1:8000 - ๐ป React app →
http://localhost:5173
Because sustainability should be simple. No jargon. No guilt. Just clear insights, easy actions, and real impact.
- ๐ Algorithm: Rule-based (targets highest category)
- ๐ฏ Personalized: Suggestions tailored to footprint breakdown
- ๐ Impact: Estimated COโ savings per action
- Categories:
- ๐ Transport switching
- โก Energy efficiency
- ๐ด Dietary changes
- โป๏ธ Waste reduction
MIT License © 2025 · Built with ๐ for a greener future




