Skip to main content

Command Palette

Search for a command to run...

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.

Published
2 min read
T
Full-stack developer building AI-powered tools that are free, fast, and actually useful. Creator of Hocks AI & PromptCraft AI. I ship products, write about AI/web dev, and open-source everything.

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?

  1. Step-by-step carbon footprint quiz — Transport, energy, diet, shopping habits
  2. AI-powered analysis — Google Gemini analyzes your answers and generates a personalized report
  3. Actionable tips — Specific recommendations to reduce your carbon footprint
  4. Earth Day pledge — Commit to one eco-friendly action
  5. Solana donation — Optional carbon offset donations via Solana Pay
  6. Memory persistence — Your pledges saved via Backboard API

Tech Stack

ComponentTechnology
FrontendNext.js + React + Tailwind CSS
AI EngineGoogle Gemini (via Cloudflare Functions proxy)
HostingCloudflare Pages
MemoryBackboard API
PaymentsSolana 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!