DEV Community

Cover image for 🌍 EarthTwin AI – See the Future You're Creating
Aditya
Aditya

Posted on

🌍 EarthTwin AI – See the Future You're Creating

DEV Weekend Challenge: Earth Day

This is a submission for Weekend Challenge: Earth Day Edition


🚀 What I Built

I built EarthTwin AI — a real-time, AI-powered simulation that shows how your daily lifestyle choices shape the future of our planet.

Most tools tell you your carbon footprint.
EarthTwin shows you what that actually means.

It creates a living digital twin of Earth that evolves based on your habits.

With EarthTwin, you can:

  • 🌍 Simulate your environmental impact in real-time
  • 🔮 See how Earth evolves in 2035 based on your lifestyle
  • ⚖️ Compare your current lifestyle vs an improved one
  • 🤖 Get AI-powered suggestions to reduce your impact
  • 📸 Share your personalized Earth snapshot

The goal was simple:
👉 Make climate impact visual, emotional, and impossible to ignore


🎥 Demo

YouTube Video: https://youtu.be/KApbgxSSwGs

Image1

Image2

Image3

Image4

🌍 Live Simulation

  • Enter your lifestyle (e.g., frequent flyer, online shopping)
  • Watch your EarthTwin generate instantly

🔮 Future Mode

  • Click “See 2035”
  • View a realistic AI-generated future scenario

⚖️ Compare Mode

  • Compare:

    • Current You 🌑
    • Improved You 🌱
  • See real-time environmental differences

🤖 AI Coach

  • Ask: “How can I improve?”
  • Get personalized sustainability suggestions

📸 Share Feature

  • Capture and share your EarthTwin snapshot

💻 Code

GitHub Repo:
-> https://github.com/TheCoderAdi/EarthTwin
-> https://github.com/TheCoderAdi/EarthTwin-Backend


⚙️ How I Built It

🧠 AI Layer (Google Gemini)

I used Google Gemini API to:

  • Convert natural language input → environmental metrics
  • Generate future climate projections (2035 scenarios)
  • Provide personalized eco-coaching

🌍 Simulation Engine

A custom impact engine transforms:

  • Carbon score
  • Water usage
  • Waste index

Into:

  • 🌡️ Temperature rise
  • 🌫️ Pollution levels
  • 🌳 Forest density
  • ❄️ Ice cap condition

These values directly control the Earth visualization.


🎨 Frontend Experience

  • Built with React + Tailwind + Three.js
  • Real-time 3D Earth rendering using WebGL
  • Smooth animations and transitions
  • Dynamic UI driven by simulation data

⚡ Backend

  • Node.js + Express API architecture
  • Gemini integration for AI processing
  • Robust error handling + fallback responses
  • Clean, scalable API design

🏆 Prize Categories

✅ Best Use of Google Gemini

  • Natural language → environmental analysis
  • AI-generated future simulations
  • Personalized sustainability coaching

✅ Best Use of GitHub Copilot

  • Accelerated development of APIs and UI
  • Faster iteration and debugging

🌱 Why This Matters

Climate change is hard to grasp because it's invisible.

Numbers don’t change behavior.
Experiences do.

EarthTwin AI makes the invisible visible.

👉 It shows you the future you're actively creating.

By turning climate impact into a living, interactive Earth, users can:

  • See consequences instantly
  • Understand long-term effects
  • Make better decisions

This is not just a tool —
it’s a mirror of our planetary future.


🚀 What’s Next

  • 📱 Mobile version (React Native)
  • 🧠 Smarter AI predictions using real datasets
  • 🎮 Gamification of sustainable behavior

🙌 Final Thought

If we can see the future,
we might finally change it.

🌍💚

Top comments (0)