EcoSense AI: Know Your Carbon Footprint in 60 Seconds
An AI-powered carbon footprint analyzer built with Next.js, Google Gemini, Cloudflare Pages, and Solana Pay.
For the DEV Weekend Challenge, I built EcoSense AI — an AI-powered carbon footprint analyzer that gives you personalized environmental impact analysis in 60 seconds.
Live Demo: ecosense-ai.pages.dev Source Code: GitHub
What Does It Do?
- Step-by-step carbon footprint quiz — Transport, energy, diet, shopping habits
- AI-powered analysis — Google Gemini analyzes your answers and generates a personalized report
- Actionable tips — Specific recommendations to reduce your carbon footprint
- Earth Day pledge — Commit to one eco-friendly action
- Solana donation — Optional carbon offset donations via Solana Pay
- Memory persistence — Your pledges saved via Backboard API
Tech Stack
| Component | Technology |
| Frontend | Next.js + React + Tailwind CSS |
| AI Engine | Google Gemini (via Cloudflare Functions proxy) |
| Hosting | Cloudflare Pages |
| Memory | Backboard API |
| Payments | Solana Pay |
How It Works
The app collects your lifestyle data through an interactive multi-step form, then sends it to Google Gemini via a secure backend proxy. The AI returns a detailed carbon footprint analysis with a score, breakdown by category, and personalized reduction tips.
All API keys are kept server-side using Cloudflare Functions — nothing exposed in the frontend.
Try it: ecosense-ai.pages.dev | Star it: GitHub
What's your carbon footprint score? Try it and share in the comments!
