Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Sichere ProgrammierungMCP Tool Poisoning: A Name Allowlist Is Not Enough(22.09.2026 um 18:56 Uhr)
Sichere ProgrammierungGiggleGigs: A Job Board That Actually Uses AI Where It Helps(22.09.2026 um 18:57 Uhr)
Sichere ProgrammierungThe Bootstrapped SaaS Flywheel: How to Hit $10k MRR Without VC Capital(22.09.2026 um 19:05 Uhr)
Sichere ProgrammierungThe container was running software nobody built(22.09.2026 um 19:08 Uhr)
Sichere ProgrammierungYour Terminal Tasks, Everywhere: Introducing Tasku Cloud(22.09.2026 um 19:08 Uhr)
Sichere ProgrammierungMCP Tool Poisoning: A Name Allowlist Is Not Enough(22.09.2026 um 18:56 Uhr)
Sichere ProgrammierungGiggleGigs: A Job Board That Actually Uses AI Where It Helps(22.09.2026 um 18:57 Uhr)
Sichere ProgrammierungThe Bootstrapped SaaS Flywheel: How to Hit $10k MRR Without VC Capital(22.09.2026 um 19:05 Uhr)
Sichere ProgrammierungThe container was running software nobody built(22.09.2026 um 19:08 Uhr)
Sichere ProgrammierungYour Terminal Tasks, Everywhere: Introducing Tasku Cloud(22.09.2026 um 19:08 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

EcoSense AI: Know Your Carbon Footprint in 60 Seconds

This is a submission for Weekend Challenge: Earth Day Edition What I Built EcoSense AI is an AI-powered carbon footprint analyzer that helps people understand their environmental impact through a simple, beautiful 4-step…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

This is a submission for Weekend Challenge: Earth Day Edition






What I Built



EcoSense AI is an AI-powered carbon footprint analyzer that helps people understand their environmental impact through a simple, beautiful 4-step questionnaire.



Users answer questions about their:




  • 🚗 Transportation — commute method & distance

  • 🍽️ Diet — from heavy meat to vegan

  • Home Energy — fossil fuels to 100% renewable

  • 🛍️ Shopping — fast fashion to minimal/second-hand



Then Google Gemini 2.0 Flash analyzes their habits and returns:




  • An eco score (0-100) with letter grade


  • Estimated annual CO₂ in kg (compared to global average)


  • Impact breakdown by category with visual indicators


  • 5 personalized tips to reduce their footprint

  • A shareable Earth Day pledge they can copy and post



The goal: make carbon awareness accessible and actionable — not preachy, but practical.






Demo



🌍 Live: https://ecosense-ai.pages.dev



Try it right now — takes about 60 seconds!






Code







GitHub logo

x-tahosin
/
ecosense-ai



EcoSense AI - Carbon Footprint Analyzer powered by Google Gemini. Built for Earth Day 2026.







EcoSense AI 🌍



AI-Powered Carbon Footprint Analyzer — Built for Earth Day 2026



What It Does



Answer 4 quick questions about your daily habits (transport, diet, energy, shopping) and EcoSense AI uses Google Gemini to:



  • Calculate your estimated annual carbon footprint

  • Grade your eco-friendliness (A+ to F)

  • Show impact breakdown by category

  • Give 5 personalized tips to reduce your footprint

  • Generate a shareable Earth Day pledge



Live Demo



https://ecosense-ai.pages.dev



Tech Stack






  • Next.js 16 (static export)


  • Tailwind CSS (custom Earth Day theme)


  • Google Gemini 2.0 Flash (AI analysis via server-side proxy)


  • Cloudflare Pages (hosting + serverless functions)


  • Lucide React (icons)



Architecture




Browser → Static HTML/JS (Cloudflare Pages)

/api/generate (Cloudflare Function — server-side only)

Google Gemini API (key never exposed to client)


Setup





npm install
npm run build
# Deploy: wrangler pages deploy out
# Set GEMINI_API_KEY in Cloudflare Pages environment variables




Built for




DEV Weekend Challenge: Earth Day Edition







Key files:





  • app/page.tsx — Full React UI with step wizard, score visualization (SVG donut chart), and results display


  • functions/api/generate.js — Cloudflare Function that proxies Gemini API (key never reaches browser)


  • app/globals.css — Custom Earth Day green theme






How I Built It






Tech Stack





  • Next.js 16 with static export — zero server needed for the frontend


  • Tailwind CSS — custom green/earth color palette


  • Google Gemini 2.0 Flash — the AI brain that analyzes habits and generates personalized results


  • Cloudflare Pages — hosting with unlimited bandwidth + serverless functions


  • Lucide React — clean, consistent iconography






Architecture Decision: Security First



The #1 rule: the API key never touches the browser.




Browser → /api/generate (Cloudflare Function) → Google Gemini
↑ API key lives here only






The frontend sends a structured prompt to /api/generate. The Cloudflare Function adds the Gemini API key server-side, calls the Gemini REST API, and returns only the generated text. Users can inspect network traffic all day — they'll never see the key.






How Gemini Powers It



I send Gemini a structured prompt with the user's selections and ask for a specific JSON response. Gemini analyzes the environmental science behind each choice (e.g., gas car at 40km/day vs. public transit) and returns calibrated scores, actionable tips, and a personalized pledge.



The prompt engineering was key — I needed Gemini to return consistent JSON every time, with realistic CO₂ estimates. After testing, temperature: 0.7 gave the best balance of variety and accuracy.






UI Highlights





  • Step wizard with progress bar — keeps it feeling quick


  • SVG donut chart for the eco score — visually satisfying


  • Color-coded impact badges (red → green) on each option


  • Category breakdown bars on results


  • Copy-to-clipboard Earth Day pledge for social sharing






Prize Categories



Best Use of Google Gemini — Gemini is the core engine that transforms 4 simple inputs into a comprehensive environmental analysis with personalized recommendations. It's not just a wrapper — the prompt engineering produces calibrated, science-informed results that feel genuinely useful.

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten EcoSense AI: Know Your Carbon Footprint in 60 Seconds

Thematisch verwandte Begriffe: EcoSense, Know, Your, Carbon · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-75517 | Novu provides an API for sending notifications through multiple channels…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick