Inspiration

Individual climate action usually stalls because most sustainability advice is either too vague ("use less energy") or buried in dense, unactionable data. We wanted to build a zero-friction tool that takes everyday lifestyle inputs and translates them into concrete, measurable carbon reductions rather than generic tips.

What it does

EcoPulse AI is a client-side climate resilience web application powered by the Google Gemini 1.5 Flash API. It features four core modules:

  • Carbon Footprint Audit: Collects weekly transportation distance, monthly energy bills, diet type, and recycling habits to calculate baseline emissions.
  • Gemini AI Action Plan: Analyzes audit data to output an annual $\text{CO}_2$ estimate (in kg), three high-impact personalized action items with exact kg saved, and a localized 7-day green challenge.
  • AI Eco Quiz Generator: Dynamically generates 3-question interactive quizzes with real-time scoring and feedback across topics like Ocean Health, Renewable Energy, Waste Reduction, and Fast Fashion.
  • Local Climate Impact Simulator: Provides an interactive slider that visualizes household emission reductions in real time.

How we built it

We built EcoPulse AI using HTML5, Tailwind CSS, vanilla JavaScript (ES6+), and the Google Gemini 1.5 Flash API, storing the user's API key in localStorage so the app runs entirely in the browser with zero backend setup. To ship within 24 hours without merge bottlenecks, our 4-member team split ownership cleanly across four tracks:

  • Frontend Architect: Core UI structure, Tailwind styling, responsive dashboard layout, tab navigation, and modal controllers.
  • AI & API Lead: Gemini API integration, structured prompt engineering, JSON parsing, error handling, and fallback logic.
  • Data & UX Lead: Client-side carbon calculation algorithms, interactive data visualizations, progress meters, and simulation charts.
  • QA & Pitch Lead: Repository management, documentation, testing, Devpost submission, and demo production.

Challenges we ran into

  • Enforcing strict JSON from an LLM: Gemini occasionally wraps JSON outputs in markdown fences or varies key names, which breaks client-side rendering. We had to tighten our system prompts and build a defensive parsing and validation layer.
  • Client-side API reliability: Running directly from the browser meant handling rate limits, invalid API keys, and network timeouts gracefully without crashing the UI.
  • Parallelizing a 4-person sprint: Coordinating four developers in under 24 hours required locking down shared data schemas early so the frontend, calculator, and API layers could be built simultaneously.

Accomplishments that we're proud of

  • Shipping a fully functional, zero-setup sustainability platform in under 24 hours.

  • Turning raw user inputs into structured, deterministic UI components directly from live LLM responses.

  • Delivering a clean division of labor across four distinct engineering and product roles.

What we learned

We gained hands-on experience with structured JSON prompting in LLMs, optimizing client-side API calls, and managing rapid, parallel team development under a tight hackathon deadline.

What's next for EcoPulse

  • Backend Proxy & Auth: Moving Gemini API calls behind a lightweight backend proxy so users don't have to supply their own API keys, alongside user accounts to track long-term progress.
  • Localized Emission Factors: Integrating regional grid intensity and local transit data to make carbon estimates more accurate by city and country.
  • Community Challenges: Adding shareable 7-day green challenges and leaderboards to turn individual habits into group accountability.

Built With

Share this project:

Updates

Submission history