Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
dc09b81
Rename project from 'GREEN KARMA' to 'GREEN LEGACY'
LeagueStar Aug 31, 2026
01950f0
Rename 'GREEN KARMA' to 'GREEN LEGACY' and update points
LeagueStar Aug 31, 2026
56c2b4e
Rename 'Green Points' to 'Green Credits' in audio.js
LeagueStar Aug 31, 2026
3f1b5df
Rename GREEN KARMA to GREEN LEGACY in comments
LeagueStar Aug 31, 2026
e12e3f7
Refactor confetti.js to remove ConfettiManager and add styles
LeagueStar Aug 31, 2026
588aad9
Change GP to GC in Citizen Dashboard
LeagueStar Aug 31, 2026
717c7d5
Rename Green Points to Green Credits in formatters.js
LeagueStar Aug 31, 2026
5038514
Update project name from 'Karma' to 'Legacy'
LeagueStar Aug 31, 2026
4e321ba
Update terminology from Green Points to Green Credits
LeagueStar Aug 31, 2026
22b0954
Rename Green Karma to Green Legacy and update user data
LeagueStar Aug 31, 2026
e54f5a3
Change branding from GREEN KARMA to GREEN LEGACY
LeagueStar Aug 31, 2026
70b7f47
Rename 'Green Karma' to 'Green Legacy' in institutionPortal
LeagueStar Aug 31, 2026
fa4e67b
Change 'Green Points' to 'Green Credits' throughout
LeagueStar Aug 31, 2026
1a6f4e5
Change 'GP' to 'GC' in leaderboard.js
LeagueStar Aug 31, 2026
d8db15b
Rename 'Green Points' to 'Green Credits' in tracking
LeagueStar Aug 31, 2026
067280b
Update project name in CSS comment
LeagueStar Aug 31, 2026
66934fa
Update project name in mapHelper.js comments
LeagueStar Aug 31, 2026
fdc6b8f
Change green points label and add demo reset feature
LeagueStar Aug 31, 2026
1857441
Update terminology from 'Green Points' to 'Green Credits'
LeagueStar Aug 31, 2026
05f4a65
Update project name in responsive.css comments
LeagueStar Aug 31, 2026
4ab1896
Rename Green Points to Green Credits in rewardsWallet.js
LeagueStar Aug 31, 2026
2d90d19
Rename platform from 'GREEN KARMA' to 'GREEN LEGACY'
LeagueStar Aug 31, 2026
f93d3aa
Update title and startup message to GREEN LEGACY
LeagueStar Aug 31, 2026
72ef7e0
Rename Green Points to Green Credits throughout code
LeagueStar Aug 31, 2026
68c2b77
Update terminology from 'GP' to 'GC' in workerPortal.js
LeagueStar Aug 31, 2026
1d2ca8e
Add files via upload
LeagueStar Sep 1, 2026
d3836fe
Delete adminDashboard.js
LeagueStar Sep 1, 2026
5457f31
Delete animations.css
LeagueStar Sep 1, 2026
d97c301
Delete workerPortal.js
LeagueStar Sep 1, 2026
5834967
Delete state.js
LeagueStar Sep 1, 2026
7e5ff97
Delete rewardsWallet.js
LeagueStar Sep 1, 2026
77a228d
Delete responsive.css
LeagueStar Sep 1, 2026
0bc9ddf
Delete reportWaste.js
LeagueStar Sep 1, 2026
f957512
Delete profile.js
LeagueStar Sep 1, 2026
3aedbfb
Delete mapHelper.js
LeagueStar Sep 1, 2026
2cfad96
Delete app.js
LeagueStar Sep 1, 2026
049b649
Delete main.css
LeagueStar Sep 1, 2026
0635ebf
Delete liveTracking.js
LeagueStar Sep 1, 2026
751dc43
Delete leaderboard.js
LeagueStar Sep 1, 2026
09a3b3a
Delete audio.js
LeagueStar Sep 1, 2026
2d9599e
Delete landing.js
LeagueStar Sep 1, 2026
07ef117
Delete institutionPortal.js
LeagueStar Sep 1, 2026
f4bf3c9
Delete impactDashboard.js
LeagueStar Sep 1, 2026
1881e8b
Delete illegalDumping.js
LeagueStar Sep 1, 2026
62db2d9
Delete glassmorphism.css
LeagueStar Sep 1, 2026
f64ce4a
Delete formatters.js
LeagueStar Sep 1, 2026
f898dcc
Delete dashboard.js
LeagueStar Sep 1, 2026
a18cebb
Delete confetti.js
LeagueStar Sep 1, 2026
8de279c
Delete components.css
LeagueStar Sep 1, 2026
e74eed7
Rename project from Green Legacy to CleanCred
LeagueStar Sep 1, 2026
4a225f9
Update batch file title and startup message
LeagueStar Sep 1, 2026
1a58d56
Add files via upload
LeagueStar Sep 1, 2026
ff1e1db
Update README.md
LeagueStar Sep 1, 2026
9884b72
Update README with project structure details
LeagueStar Sep 1, 2026
6849cf4
Update README with additional JS files and modules
LeagueStar Sep 1, 2026
c4ac231
feat: migrate map implementation from Leaflet to Google Maps API
Sep 1, 2026
80e89ee
chore: add google maps api key
Sep 1, 2026
4f71cf5
Fix Google Maps development error by switching to Leaflet
Sep 1, 2026
9d8f1e7
Update basemap to MapTiler
Sep 1, 2026
9ed861e
Fix MapTiler tile configuration to use 256px raster tiles
Sep 1, 2026
e5200e2
Update MapTiler API key
Sep 1, 2026
1f502aa
Update map API from Leaflet to Google Maps
LeagueStar Sep 1, 2026
647f581
Add files via upload
LeagueStar Sep 1, 2026
4eec94b
Update index.html
LeagueStar Sep 1, 2026
b5ff64b
Update map integration to use Leaflet
LeagueStar Sep 1, 2026
b559bf8
Update map tile layer to standard OpenStreetMap tiles
LeagueStar Sep 1, 2026
a2dd2b0
Revise SECURITY.md for version support and reporting
LeagueStar Sep 2, 2026
69653f7
Add copyright notice to COPYRIGHT file
LeagueStar Sep 2, 2026
c8cc4e0
Revise project authorship and contribution guidelines
LeagueStar Sep 2, 2026
da8c3a7
Change vulnerability reporting from email to LinkedIn
LeagueStar Sep 2, 2026
497a736
Add files via upload
LeagueStar Sep 12, 2026
88b5cf1
Revise README for clarity and additional details
LeagueStar Sep 12, 2026
70d2ffa
Add files via upload
LeagueStar Sep 12, 2026
501016e
Add files via upload
LeagueStar Sep 12, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions COPYRIGHT
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright (c) 2026 GreenLegacy

All rights reserved.

This source code is proprietary and confidential. No part of this software may be copied, reproduced, distributed, published, or modified, in whole or in part, in any form or by any means, without the prior written, explicit permission of the copyright owner.

Unauthorized copying of this file, via any medium, is strictly prohibited.
206 changes: 205 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,205 @@
# GREEN-LEGACY
<div align="center">

# 🌍 CleanCred
### Verified Waste Action & Green Credits Platform

**Smart India Hackathon 2026** · Problem Statement **SIH26195** · Team **GreenLegacy** (ID: GSIH26015)
Theme: *Clean & Green Technology* · Category: *Software*

[![Live Demo](https://img.shields.io/badge/Live-Demo-059669?style=for-the-badge&logo=googlechrome&logoColor=white)](https://leaguestar.github.io/CleanCred/)
[![SIH 2026](https://img.shields.io/badge/SIH-2026-0891B2?style=for-the-badge)](#-about)
[![License](https://img.shields.io/badge/License-Proprietary-0F172A?style=for-the-badge)](#%EF%B8%8F-license--copyright)

[🌐 Live Website](https://leaguestar.github.io/CleanCred/) · [✨ Features](#-features--portals) · [⚙️ How It Works](#%EF%B8%8F-how-it-works) · [🛠️ Tech Stack](#%EF%B8%8F-technology-stack) · [🚀 Setup](#-installation--local-setup) · [👥 Team](#-team-greenlegacy)

</div>

---

## 📖 About

**CleanCred** is a **proof-backed waste management and collection platform** built for Smart India Hackathon 2026. Instead of rewarding citizens for simply *reporting* waste, CleanCred only issues **Green Credits** once an action is independently **verified** — turning municipal waste tracking into a closed-loop, auditable system.

Every claimed action is checked against multiple independent signals before a credit is minted, which means the credit ledger reflects real, confirmed cleanup activity rather than self-reported claims. This gives municipalities a trustworthy dataset for monitoring, accountability, and planning — while giving citizens a transparent, gamified reason to participate.

> **Report → Verify → Collect → Record → Earn**

## 🚨 The Problem

Most civic waste-reporting apps stop at "report" — a citizen submits a complaint or photo, and there's no reliable way to confirm the waste was actually segregated, collected, or resolved. This creates:

- Reward systems that can be gamed with fake or duplicate submissions
- No verifiable link between a citizen's claimed action and the outcome on the ground
- Municipalities with reporting data but no confidence in its accuracy

## 💡 Our Solution

CleanCred closes that gap with **multi-signal verification** — a claim only becomes a credit once it clears every checkpoint in the pipeline:

| Signal | What It Confirms |
| :--- | :--- |
| 🤖 **AI Segregation Check** | Whether the submitted waste is properly segregated |
| 📍 **GPS Proximity** | That the citizen was actually at the reported location |
| ⏱️ **Timestamp Verification** | That the action happened when it was claimed to |
| 🔳 **QR-Based Collection** | Sanitation staff confirm physical collection at source |

### Why It's Different

- **Proof-backed action** — every credit is tied to verifiable evidence, not a self-report
- **Multi-signal verification** — AI + GPS + QR + timestamp working together, not any single check alone
- **Closed-loop accountability** — a full Report → Verify → Collect → Record cycle, not a one-way complaint box
- **Behaviour-linked rewards** — credits are issued *after* verification, never merely for submitting
- **Municipal visibility** — the same verified event doubles as clean data for monitoring and analytics

## ✨ Features & Portals

CleanCred is a multi-portal ecosystem, with a dedicated experience for every stakeholder in the waste-management lifecycle:

| Portal / Module | Description |
| :--- | :--- |
| 🧑‍🤝‍🧑 **Citizen Dashboard** | Login, profile, and a central home to track activity and impact |
| 📝 **Waste & Dumping Reporting** | Report standard waste or flag illegal dumping sites with geolocation |
| 🎁 **Rewards Wallet** | Verified green actions earn Green Credits, with confetti + audio feedback |
| 🏆 **Leaderboard** | Community rankings that drive friendly competition and engagement |
| 🗺️ **Live Tracking & Mapping** | Real-time view of collection routes and worker deployment |
| 🔳 **Smart QR Integration** | QR generation and in-browser scanning for smart-bin and collection verification |
| 🧹 **Worker Portal** | Sanitation staff view assigned tasks and mark bins/sites as cleared |
| 🏢 **Institution Portal** | Institutions manage local sustainability goals and participation |
| 📊 **Admin & Impact Analytics** | System-wide metrics, verified-report oversight, and environmental impact tracking |

## ⚙️ How It Works

```
┌────────────┐ ┌─────────────┐ ┌────────────┐ ┌────────────┐ ┌──────────┐
│ 1. REPORT │ ──▶ │ 2. VERIFY │ ──▶ │ 3. COLLECT │ ──▶ │ 4. RECORD │ ──▶ │ 5. EARN │
└────────────┘ └─────────────┘ └────────────┘ └────────────┘ └──────────┘
Citizen submits AI + GPS + Sanitation staff Verified event Green Credits
evidence of a Timestamp check confirm pickup logged for city- minted to the
segregated/ the claim via QR scan wide analytics citizen's wallet
disposed action
```

1. **Report** — A citizen submits evidence (photo + location) of waste segregation, disposal, or an illegal dumping site.
2. **Verify** — The system checks AI-based segregation quality, GPS proximity to the reported site, and timestamp authenticity.
3. **Collect** — A waste collector arrives and confirms pickup by scanning a QR code, closing the loop physically.
4. **Record** — The verified event is logged into city-wide monitoring and impact-analytics dashboards.
5. **Earn** — Only now are Green Credits issued to the citizen's Rewards Wallet.

## 🛠️ Technology Stack

CleanCred uses a lightweight, dependency-light stack chosen for a smooth UI and rapid, judge-friendly deployment:

| Layer | Technology |
| :--- | :--- |
| **Structure** | Semantic HTML5 |
| **Styling** | Tailwind CSS (utility layer) + custom `main.css`, `components.css`, `animations.css`, `responsive.css` |
| **Application Logic** | Modular Vanilla JavaScript — a lightweight client-side router and global state manager |
| **Interactivity** | Custom utilities for QR generation/scanning, live-map rendering, confetti, and audio feedback |
| **Backend / Local Server** | Python (`server.py`) — a zero-dependency HTTP server for local hosting and API endpoints |
| **Deployment** | Static hosting via GitHub Pages |

## 📂 Project Structure

```bash
CleanCred/
├── index.html # Main entry point & app shell
├── server.py # Python local dev / API server
├── start.bat # Windows one-click startup script
├── css/
│ ├── main.css # Global styles & design tokens
│ ├── components.css # Component-level styling
│ ├── animations.css # Transitions & keyframes
│ └── responsive.css # Mobile / tablet responsiveness
└── js/
├── app.js # App router & controller
├── state.js # Global state management
├── components/ # One module per portal/view
│ ├── dashboard.js # Citizen dashboard
│ ├── reportWaste.js # Waste reporting flow
│ ├── illegalDumping.js # Illegal dumping reports
│ ├── rewardsWallet.js # Green Credits wallet
│ ├── leaderboard.js # Community leaderboard
│ ├── liveTracking.js # Live collection map
│ ├── workerPortal.js # Sanitation worker portal
│ ├── institutionPortal.js # Institution portal
│ ├── adminDashboard.js # Admin controls
│ ├── impactDashboard.js # Analytics & impact
│ ├── profile.js # User profile
│ └── landing.js # Landing page
└── utils/ # Shared helpers
├── qrCode.js # QR code generation
├── qrScanner.js # In-browser QR scanning
├── mapHelper.js # Map rendering utilities
├── confetti.js # Reward celebration effects
├── audio.js # Sound feedback
└── formatters.js # Shared formatting helpers
```

## 🚀 Installation & Local Setup

**Prerequisites:** [Python 3.x](https://www.python.org/downloads/) installed on your system.

1. **Clone the repository**
```bash
git clone https://github.com/LeagueStar/CleanCred.git
cd CleanCred
```

2. **Launch the server**

- **Windows** — double-click `start.bat`, or run it from the command line
- **macOS / Linux / manual** —
```bash
python3 server.py
```

3. **Open the app**

Navigate to `http://localhost:8081` (or the port printed in the server output).

No build step, no package manager, no external services required — clone and run.

## 🧭 Usage Workflow

| Role | What They Do |
| :--- | :--- |
| **Citizens** | Log in, report waste or dumping sites with photo evidence, and track Green Credits and leaderboard rank in the Rewards Wallet |
| **Sanitation Workers** | Open the Worker Portal to view assigned tasks, follow live collection routes, and confirm pickup via QR scan |
| **Institutions** | Manage local sustainability goals and monitor participation from the Institution Portal |
| **Admins** | Use the Admin & Impact Dashboards to verify reports, oversee credit distribution, and analyze city-wide environmental impact |

## 🗺️ Roadmap

- [ ] Live backend integration for persistent credit ledger and user accounts
- [ ] Production AI model for automated segregation-quality scoring
- [ ] Municipal-grade analytics exports for civic bodies
- [ ] Native mobile app for on-the-go citizen reporting

## 🤝 Contributing

This project was developed exclusively for the **Smart India Hackathon 2026**. Outside contributions, pull requests, and forks are not accepted, in order to preserve the integrity of the submission.

## 🛡️ License & Copyright

**Copyright © 2026 Team GreenLegacy. All Rights Reserved.**

This project was developed by **Team GreenLegacy** for the Smart India Hackathon (SIH) 2026. This source code is proprietary and confidential. No part of this software, code, or design may be copied, reproduced, distributed, published, or modified — in whole or in part, in any form or by any means — without the prior written, explicit permission of the copyright owners.

Unauthorized copying, cloning, or use of this project is strictly prohibited.

## 👥 Team GreenLegacy

| Member | GitHub |
| :--- | :--- |
| **Kartik Devdhawala** | [@LeagueStar](https://github.com/LeagueStar) |
| **Harshprit Bagga** | — |
| **Shivansh Prajapati** | — |
| **Suraj Singh** | — |
| **Satyam Gupta** | — |
| **Kreya Patel** | — |

<div align="center">

**🌐 [Live Website](https://leaguestar.github.io/CleanCred/)** · Built with 💚 for a cleaner tomorrow

</div>
23 changes: 23 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Security Policy

## Supported Versions

We currently provide security updates for the following versions of CleanCred:

| Version | Supported |
| ------- | ------------------ |
| > 1.0.0 | :white_check_mark: |
| < 1.0.0 | :x: |

## Reporting a Vulnerability

Please do not report security vulnerabilities through public GitHub issues.

If you believe you have found a security vulnerability in CleanCred, please report it privately through LinkedIn.

**What to include:**
* A description of the vulnerability and its potential impact.
* Detailed steps to reproduce the issue.
* Any relevant logs, screenshots, or code snippets.

We will acknowledge receipt of your vulnerability report within [e.g., 48 hours] and strive to send you regular updates about our progress. If the vulnerability is confirmed, we will release a patch as quickly as possible.
Loading