climate-co2-tracker Tailwind Templates

Climate Co2 Tracker

An open-source, interactive, and beautiful COβ‚‚ data visualization tool built with Next.js, TypeScript, Tailwind CSS, and Recharts.

🌍 COβ‚‚ Emissions Explorer

An open-source, interactive, and beautiful COβ‚‚ data visualization tool built with Next.js, TypeScript, Tailwind CSS, and Recharts.

Explore historical COβ‚‚ emissions trends, growth, and energy insights by country. Designed to inform, engage, and empower users with real-time, dynamic visual data β€” all while contributing to global climate awareness.


πŸŽ₯ How the Platform Works

Here’s a video showing how the platform works:

Watch the video


πŸš€ Features

  • πŸ” Country Selector – Easily search and select from 200+ countries and regions.
  • πŸ“ˆ Interactive Line Charts – Compare COβ‚‚ emissions, growth trends, and other greenhouse gases over time.
  • πŸ“Š Summary Statistics – Key metrics like per capita emissions, global share, GDP, and energy consumption.
  • 🎨 Dark Themed UI – Clean, modern interface styled with Tailwind CSS.
  • ⚑ Fast & Optimized – Blazing fast thanks to Next.js and static JSON data processing.
  • 🧠 Typed & Reliable – Built with TypeScript and type-safe components.
  • πŸ“¦ Modular & Extendable – Easily plug in new datasets or chart types.
  • πŸ‘ Open Source – Built with ❀️ for the community and climate.

πŸ“ Project Structure

.
β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ page.tsx              # Main Chart Page
β”‚   └── components/
β”‚       └── SummaryStats.tsx  # Summary metrics section
β”œβ”€β”€ data/
β”‚   └── owid-co2-data.json    # Raw CO2 data (from Our World In Data)
β”œβ”€β”€ lib/
β”‚   └── data.ts               # Data utility functions (filtering, sorting, etc.)
β”œβ”€β”€ public/
β”‚   └── assets/               # Images and static assets
β”œβ”€β”€ styles/
β”‚   └── globals.css           # Global Tailwind styles
β”œβ”€β”€ types/
β”‚   └── co2.ts                # CO2 data TypeScript types
β”œβ”€β”€ README.md                 # You're here!
β”œβ”€β”€ package.json
└── tsconfig.json

πŸ“Š Data Source


🧠 Technologies Used

Tech Description
Next.js 15+ App directory, Server Components
TypeScript Strong typing across the app
Tailwind CSS Utility-first modern styling
Recharts Beautiful data visualization
React Select Dropdown country filter
OWID COβ‚‚ JSON Open-source data format

πŸ› οΈ Installation

1. Clone the repo

git clone https://github.com/ndalo-ben/climate-co2-tracker.git
cd climate-co2-tracker

2. Install dependencies

npm install
# or
yarn install

3. Run the development server

npm run dev
# or
yarn dev

Open your browser at http://localhost:3000


🌐 Deployment

We recommend Vercel for instant deployment:

npx vercel

Or deploy with any platform that supports Next.js 14+.


βœ… Hackathon Goals

  • πŸ“‘ Make climate data accessible, interactive, and open-source
  • 🧩 Build a fully extendable platform that can support more environmental data sets in the future
  • πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦ Empower individuals, governments, and NGOs with insights
  • πŸ’š Drive climate education through design and technology

πŸ™‹β€β™€οΈ Contributing

We welcome contributions from the community! Here’s how you can help:

πŸ“¦ Add features

  • 🌟 Add bar charts, pie charts, or heatmaps
  • 🌍 Add map-based visualizations using D3 or Leaflet
  • πŸ“… Add date range filtering and zooming
  • πŸ“ˆ Add comparisons between multiple countries

πŸ› Report or fix bugs

  • Found a bug or performance issue? Please open an issue

πŸ“˜ Improve Documentation

  • Help make this README or in-app descriptions even better.

πŸ” License

MIT License Β© 2025 Benard Ouma

Data is licensed under CC BY 4.0


πŸ“£ Shoutouts

  • 🌐 Our World In Data for the original dataset.
  • 🎨 Inspiration from clean UI dashboards.
  • 🀝 Everyone contributing to open source for climate.

πŸ† Let’s Win the Hackathon!

We’re building this with the intent to educate, inspire, and spark change. If you believe in open data, climate transparency, and using technology for good β€” star the repo, contribute, and help us make an impact.

πŸ’¬ Questions, ideas, or partnerships? Reach out via GitHub Discussions or open an issue.


⭐️ Show Your Support

If you like the project:

  • ⭐️ Star this repo
  • 🍴 Fork it
  • πŸ§‘β€πŸ’» Use it in your climate tech stack
  • πŸ’¬ Share it on social media using #CO2Explorer

Let’s build for the planet. One line of code at a time.

🌿


Top categories

tailwind logo

Need a Tailwind website built?

Hire a professional TailwindCSS developer today.
Loading Svelte Themes