{"id":28715507,"url":"https://github.com/chinmayeegithubid/carbon-footprint-calculator","last_synced_at":"2026-04-30T06:34:58.310Z","repository":{"id":295327724,"uuid":"989815335","full_name":"chinmayeegithubid/carbon-footprint-calculator","owner":"chinmayeegithubid","description":"A Streamlit-based AI-powered Carbon Footprint Calculator that estimates annual CO₂ emissions based on transportation, electricity, diet, and waste inputs. Includes visual charts, personalized eco tips using Gemini AI, and real-time climate insights.","archived":false,"fork":false,"pushed_at":"2025-05-24T23:01:42.000Z","size":2169,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-05-24T23:47:25.615Z","etag":null,"topics":["ai","carbon-footprint","carbon-footprint-calculator","climate","generative-ai","google-gemini","html-css-javascript","imagesegmentation","machine-learning","python-3","streamlit","sustainability"],"latest_commit_sha":null,"homepage":"https://carbon-app.streamlit.app","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chinmayeegithubid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-24T22:08:49.000Z","updated_at":"2025-05-24T23:09:21.000Z","dependencies_parsed_at":"2025-05-26T12:15:33.765Z","dependency_job_id":null,"html_url":"https://github.com/chinmayeegithubid/carbon-footprint-calculator","commit_stats":null,"previous_names":["chinmayeegithubid/carbon-footprint-calculator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chinmayeegithubid/carbon-footprint-calculator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chinmayeegithubid%2Fcarbon-footprint-calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chinmayeegithubid%2Fcarbon-footprint-calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chinmayeegithubid%2Fcarbon-footprint-calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chinmayeegithubid%2Fcarbon-footprint-calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chinmayeegithubid","download_url":"https://codeload.github.com/chinmayeegithubid/carbon-footprint-calculator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chinmayeegithubid%2Fcarbon-footprint-calculator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259910742,"owners_count":22930713,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","carbon-footprint","carbon-footprint-calculator","climate","generative-ai","google-gemini","html-css-javascript","imagesegmentation","machine-learning","python-3","streamlit","sustainability"],"created_at":"2025-06-15T02:10:16.055Z","updated_at":"2026-04-30T06:34:53.269Z","avatar_url":"https://github.com/chinmayeegithubid.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌿 AI-Powered Carbon Footprint Calculator\n\nA **Streamlit-based web application** that calculates your annual carbon footprint based on your lifestyle habits — including transportation, electricity use, dietary preferences, and household waste. Built with **Google Gemini AI** integration for smart eco tips and real-time climate insights.\n\n[🌐 Live Demo → Click to try the app](https://carbon-app.streamlit.app)\n\n## 💡 What This App Does\n\n🔍 **Estimate your CO₂ emissions** across key areas:\n- 🚗 **Transportation**: Based on daily commute distance  \n- 💡 **Electricity**: Based on average kWh usage  \n- 🍽️ **Diet**: Type of meals and frequency  \n- 🗑️ **Waste**: Approximate household waste levels\n  \n📊 **Visual Insights:**\n- Pie charts for emissions by category\n- Tree equivalence (how many trees needed to offset)\n- Gemini AI-powered personalized sustainability suggestions\n  \n🌦️ **Extra Features:**\n- Real-time climate change data\n- Downloadable emission reports\n- Built-in Gemini chatbot for eco-advice\n---\n## 🛠️ Tech Stack\n\n| Component      | Technology            |\n|----------------|------------------------|\n| Frontend       | Streamlit              |\n| AI Integration | Google Gemini via `generativeai` |\n| ML Model       | `MLPRegressor` (Scikit-learn) |\n| Data Handling  | CSV, Pandas, Matplotlib |\n| Styling        | Custom CSS \u0026 HTML      |\n---\n## 🚀 How to Run Locally\n\n1. **Clone the Repository**\n   ```bash\n   git clone https://github.com/chinmayeegithubid/carbon-footprint-calculator.git\n   cd carbon-footprint-calculator\n2. **Create \u0026 Activate Virtual Environment**\n```bash\npython -m venv venv\nvenv\\Scripts\\activate  # For Windows\nsource venv/bin/activate  # For Mac/Linux\n\n3.Install Dependencies: \npip install -r requirements.txt\n\n4.Set Google API Key: \nCreate a .env file in the root folder and add:\nGOOGLE_API_KEY=your_actual_key_here\n\n5.Run the App\nstreamlit run app.py\n## 🌟 Stay in Touch\nThank you for exploring this project! 🌱  \nThis AI-powered Carbon Footprint Calculator is part of my personal initiative to use technology for a greener future.  \nI’d love to hear your feedback or collaborate on ideas to make this tool even better.\n\n📬 **Connect with me on LinkedIn:** [Chinmayee Nayak](https://www.linkedin.com/in/chinmayee-n-134388187/)  \n📢 If you found this helpful, feel free to share it or support the project!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchinmayeegithubid%2Fcarbon-footprint-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchinmayeegithubid%2Fcarbon-footprint-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchinmayeegithubid%2Fcarbon-footprint-calculator/lists"}