- π± CarbonX - AI-Powered Carbon Credit Trading Platform
- π Live Demo
- β¨ Features
- π οΈ Technology Stack
- π Quick Start
- π± Application Structure
- π€ AI Features
- π API Documentation
- π Environmental Impact
- π€ Contributing
- π License
- π¨βπ» Developer
- π Acknowledgments
- π Project Stats
- β¨ Contributors
Next-generation sustainability platform combining AI tools, carbon credit trading, and blockchain technology for environmental impact management.
π Visit CarbonX Platform (Running locally)
- AI Carbon Calculator - Instant carbon footprint analysis with emission calculations and credit recommendations
- AI Plastic Footprint - Smart plastic waste analysis with reduction strategies and sustainable alternatives
- Sustainable Event Planner - AI-powered eco-friendly event planning with carbon tracking
- FAQ Chatbot - Intelligent assistant powered by Google Gemini AI for instant platform support
- Secure Trading Platform - Buy and sell verified carbon credits from certified projects
- Portfolio Management - Track carbon credit investments and environmental impact
- Real-time Analytics - Live market data and sustainability metrics
- Cryptocurrency Integration - Support for carbon-related crypto investments and green tokens
- Smart Contracts - Ethereum-based carbon credit tokenization and trading
- MetaMask Integration - Secure wallet connectivity and transaction management
- ThirdWeb Integration - Simplified Web3 development and deployment
- Modern Dark Theme - Professional, accessible design with smooth animations
- Responsive Design - Optimized for desktop, tablet, and mobile devices
- Interactive Navigation - Mega menu with organized feature categories
- Developer Hub - Real-time GitHub integration with contribution charts
- Framework: Next.js 14.2.5 with App Router
- Language: TypeScript 5.0
- Styling: Tailwind CSS 3.4 + Framer Motion
- UI Components: Lucide React Icons + Custom Components
- AI Integration: Google Generative AI (Gemini 1.5-flash)
- Backend: Next.js API Routes + FastAPI (Python)
- Database: PostgreSQL (planned)
- Authentication: NextAuth.js
- Blockchain: Ethereum + EVM-compatible networks
- Smart Contracts: Solidity + Hardhat
- Web3 Library: ThirdWeb + Ethers.js
- Wallet: MetaMask integration
- Containerization: Docker + Docker Compose
- Development: Hot reload for all services
- Production: Multi-stage builds with optimization
- Orchestration: Service networking and health checks
Prerequisites: Docker and Docker Compose
# Clone repository
git clone https://github.com/AkshitTiwarii/carbonx.git
cd carbonx
# Set up environment
cp .env.example .env.local
# Add your API keys to .env.local
# Start entire stack
docker-compose -f docker-compose.dev.yml up -d
# Access application
open http://localhost:3000Prerequisites: Node.js 18+, Python 3.8+
- Install dependencies
npm install
cd backend && pip install -r requirements.txt
cd ../smart_contracts && npm install- Set up environment
cp .env.example .env.local
# Add your API keys- Start services
# Terminal 1: Blockchain
cd smart_contracts && npx hardhat node
# Terminal 2: Backend
cd backend && uvicorn main:app --reload
# Terminal 3: Frontend
npm run devcarbonx/
βββ src/
β βββ app/ # Next.js App Router pages
β β βββ ai-calculator/ # AI Carbon Calculator
β β βββ plastic-calculator/ # AI Plastic Footprint
β β βββ event-planner/ # Sustainable Event Planner
β β βββ faqs/ # FAQ with AI Chatbot
β β βββ developer/ # Developer Hub
β β βββ trading/ # Carbon Credit Trading
β β βββ portfolio/ # Investment Portfolio
β β βββ api/ # API Routes
β βββ components/ # Reusable UI Components
β βββ hooks/ # Custom React Hooks
β βββ lib/ # Utility Libraries
β βββ types/ # TypeScript Definitions
βββ smart_contracts/ # Ethereum Smart Contracts
βββ backend/ # Python FastAPI Backend
βββ public/ # Static Assets
- Real-time emission calculations using AI models
- Personalized carbon credit recommendations
- Integration with verified offset projects
- Comprehensive plastic waste impact analysis
- AI-powered reduction strategy suggestions
- Sustainable product alternative recommendations
- Sustainable event planning with AI assistance
- Carbon footprint estimation for events
- Eco-friendly vendor and location suggestions
- 24/7 platform support powered by Google Gemini
- Comprehensive knowledge base about CarbonX features
- Natural language understanding for user queries
POST /api/ai-calculator
Content-Type: application/json
{
"transport": "car",
"energy": "electricity",
"waste": "recycling",
"consumption": "moderate"
}GET /api/trading/prices
Response: Array of carbon credit prices and market dataGET /api/crypto/prices?category=all
Response: Real-time cryptocurrency and carbon token pricesCarbonX is committed to sustainability:
- Carbon Neutral Platform: All operations offset through verified projects
- Transparency: Open-source codebase and public impact metrics
- Education: Free tools and resources for carbon footprint awareness
- Innovation: Advancing Web3 solutions for environmental challenges
We welcome contributions from the community! Whether you're fixing bugs, adding features, or improving documentation, your help is appreciated.
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
For detailed contribution guidelines, code standards, and best practices, please read our Contributing Guide.
- Follow TypeScript best practices
- Use Tailwind CSS for styling
- Write tests for new features
- Update documentation as needed
- Create an issue before working on major features
This project is licensed under the MIT License - see the LICENSE.md file for full details.
You are free to use, modify, and distribute this project in accordance with the license terms.
Akshit Tiwari
- π GitHub: @AkshitTiwarii
- πΌ LinkedIn: akshit-tiwarii
- π§ Email: akshittiwari29@gmail.com
- Google AI for Gemini AI integration
- ThirdWeb for Web3 development tools
- Vercel for Next.js framework
- Tailwind CSS for styling system
- Open source carbon data providers and environmental organizations
- Languages: TypeScript, Python, Solidity
- Framework: Next.js 14 with App Router
- AI Integration: Google Gemini 1.5-flash
- Blockchain: Ethereum smart contracts
- UI/UX: Modern dark theme with responsive design
See full list of contributor contribution Contribution Graph
π± Building a sustainable future with AI and blockchain technology
β Star this repository if you find it helpful!