Integrating Technology for a Sustainable Future
RANTAI 3C is a Web3-based carbon management platform that integrates cloud infrastructure monitoring, AI-powered carbon emission analysis, and blockchain certification for environmental transparency and accountability. With decentralized storage (IPFS), NFT certificates, tokenized carbon credits, and dual payment options (crypto & PayPal), RANTAI 3C offers a comprehensive solution for businesses and individuals committed to sustainability.
RANTAI 3C dirancang untuk memberikan individu dan organisasi antarmuka yang seamless untuk memantau dan mensertifikasi jejak karbon mereka menggunakan infrastruktur cloud yang scalable dikombinasikan dengan kekuatan blockchain yang immutable.
Platform ini melayani bisnis yang peduli lingkungan, analis keberlanjutan, dan organisasi yang ingin mengoptimalkan pelaporan dampak lingkungan mereka.
- Manual Upload: Import data konsumsi energi melalui CSV/JSON files
- Automated Data Pulling: Integrasi dengan cloud providers (AWS, Google Cloud, Azure)
- Cloud Infrastructure Dashboard: Real-time metrics untuk storage, processing, dan scalability
- Data Validation System: Quality scoring dengan detailed error detection
- Template Downloads: Sample CSV & JSON templates dengan data Indonesia
- Carbon Footprint Calculation: Estimasi emisi berbasis data konsumsi energi
- AI-Powered Insights: 4 tipe analisis (Pattern Analysis, Efficiency Optimization, Predictive Analytics, Benchmarking)
- Interactive Visualizations: Bar, Pie, dan Line charts dengan drill-down capabilities
- Historical Tracking: Progress monitoring over time dengan trend analysis
- Smart Recommendations: Actionable steps dengan priority classification
- Multiple Export Options: PDF, CSV, Excel, JSON formats
- SIWE Authentication: Secure Sign-In With Ethereum
- Smart Contract Integration: Multiple contracts (Carbon Records, NFT Certificates, Carbon Credits, DAO Governance)
- Immutable Records: Permanent carbon footprint certification on Sepolia testnet
- NFT Achievement Certificates: Blockchain-verified NFTs for sustainability milestones
- IPFS Storage: Decentralized storage for carbon data and certificates
- ERC-20 Carbon Credit Tokens: Tokenized carbon credits for businesses
- DAO Governance: Community voting on offset projects and platform decisions
- Real-time Oracle Integration: Live market data for carbon credit pricing
- View-Only Mode: Educational blockchain content without wallet requirement
- Certificate Downloads: JSON certificates for compliance
- Verified Indonesian Projects: 4 sustainability initiatives (Reforestation, Solar, Mangrove, CCUS)
- Flexible Offset Amounts: Purchase any amount of carbon offsets (0.01 - 1000 tons)
- Dual Payment System: Crypto payments (ETH) and PayPal integration for accessibility
- Dynamic Pricing: Real-time cost calculation with live market rates
- NFT Rewards: Every offset purchase includes a blockchain-verified NFT certificate
- Net-Zero Tracking: Visual progress toward carbon neutrality
- Transparent Pricing: $12-25 per ton CO₂ with live updates
- Impact Metrics: Specific environmental impact per project
- Achievement System: NFT badges for sustainability milestones
- Data Quality Scoring: 0-100 quality metrics dengan improvement recommendations
- Interactive Charts: Click, filter, sort dengan enhanced tooltips
- Historical Trends: LocalStorage persistence dengan percentage change tracking
- Professional Reports: Executive-ready PDF exports dengan visual metrics
- Sustainability Levels: Eco Champion, Carbon Conscious, Environmental Explorer
- Achievement Badges: Carbon Tracker, Data Collector, Blockchain Pioneer, Offset Champion
- Progress Goals: Visual tracking menuju sustainability targets
- Framework: Next.js 14 (App Router)
- Language: TypeScript (Strict Mode)
- Styling: Tailwind CSS
- UI Components: ShadCN UI (Radix UI primitives)
- Charts: Recharts
- Icons: Lucide React
- Wallet Integration: ethers.js v6
- Authentication: SIWE (Sign-In With Ethereum)
- Network: Ethereum Sepolia Testnet
- Smart Contracts:
- Carbon Records (0x874378E56D92a0C4633b27A1730AD0CF8e7b4891)
- NFT Achievement Certificates (ERC-721)
- Carbon Credit Tokens (ERC-20)
- DAO Governance Contract
- Carbon Offset Contract with dual payments
- Decentralized Storage: IPFS integration for data and certificates
- Oracle: Chainlink-style price feeds for real-time market data
- CSV Parsing: PapaParse
- PDF Generation: jsPDF
- Excel Export: xlsx (SheetJS)
- Crypto Payments: ETH payments via MetaMask
- PayPal Integration: Traditional payment option for wider accessibility
- Payment Modal: Unified interface for payment method selection
- Local Storage: Historical data persistence
- React Hooks: useState, useEffect, useCallback
- Node.js 18+
- npm or yarn
- MetaMask or compatible Web3 wallet (optional)
- Clone the repository
git clone https://github.com/yourusername/rantai-3c.git
cd rantai-3c- Install dependencies
npm install
# or
yarn install- Run development server
npm run dev
# or
yarn dev- Open in browser
http://localhost:3000
- Navigate to "About" tab to understand the platform
- Click "Try Demo Data" for instant exploration
- Explore features across all 6 tabs
- Go to "Cloud" tab
- Click "Choose File" dan upload CSV/JSON
- View data validation results dan quality score
- Proceed to "Climate" tab untuk analysis
- Navigate to "Auto Pull" tab
- Select cloud provider (AWS/GCP/Azure)
- Enter API credentials (simulated)
- Choose date range
- Click "Pull Data" untuk automated import
- "Climate" tab shows calculated emissions
- Interact with charts (click, filter, sort)
- Review AI insights dan recommendations
- View historical trends
- Export reports (PDF/CSV/Excel)
- Go to "Offset" tab
- Review net-zero progress
- Browse verified Indonesian projects
- Select project dan purchase offsets
- Track achievement badges
- Navigate to "Chain" tab
- View Mode: Learn about blockchain benefits
- Certify Mode: Connect MetaMask wallet
- Sign SIWE message
- Store carbon record on Sepolia
- Download JSON certificate
rantai-3c/
├── src/
│ ├── app/
│ │ ├── page.tsx # Main application page
│ │ ├── layout.tsx # Root layout
│ │ └── globals.css # Global styles
│ ├── components/
│ │ ├── ui/ # ShadCN UI components
│ │ ├── AboutApp.tsx # About section
│ │ ├── DataUpload.tsx # Cloud tab - manual upload
│ │ ├── AutomatedDataPulling.tsx # Auto pull tab
│ │ ├── CarbonAnalysis.tsx # Climate analysis
│ │ ├── BlockchainCertification.tsx # Chain certification
│ │ ├── CarbonOffsetMarketplace.tsx # Offset marketplace
│ │ ├── DataValidation.tsx # Validation system
│ │ ├── InteractiveCharts.tsx # Advanced charts
│ │ ├── HistoricalTrends.tsx # Progress tracking
│ │ └── ExportManager.tsx # Export utilities
│ ├── lib/
│ │ └── utils.ts # Utility functions
│ └── types/
│ └── index.ts # TypeScript interfaces
├── public/ # Static assets
├── package.json
├── tsconfig.json
├── tailwind.config.ts
└── README.md
# Development server
npm run dev
# Production build
npm run build
# Start production server
npm start
# Linting
npm run lint- TypeScript strict mode enabled
- ESLint configured
- Zero console errors
- Mobile-responsive design
- Accessibility best practices
- Create component in
src/components/ - Define TypeScript interfaces in
src/types/ - Import dan integrate in
src/app/page.tsx - Test across devices dan browsers
https://sepolia.infura.io/v3/f8d248f838ec4f12b0f01efd2b238206
Address: 0x874378E56D92a0C4633b27A1730AD0CF8e7b4891
Functions:
storeRecord(string dataHash, uint256 carbonValue): Store carbon record with IPFS hashgetRecord(uint256 recordId): Retrieve record detailstotalRecords(): Get total records count
Events:
RecordStored(uint256 recordId, address user, uint256 carbonValue, string dataHash)
Purpose: Mint NFT certificates for sustainability achievements and offset purchases
Functions:
mintAchievement(address to, string achievementType): Mint achievement NFTmintOffsetCertificate(address to, uint256 offsetAmount): Mint offset NFT with metadatatokenURI(uint256 tokenId): Get NFT metadata from IPFS
Features:
- On-chain achievement tracking
- IPFS metadata storage
- Permanent proof of contribution
- Every offset purchase includes an NFT certificate
Purpose: Tokenized carbon credits for businesses
Functions:
mint(address to, uint256 amount): Issue new carbon creditsburn(uint256 amount): Retire carbon creditstransfer(address to, uint256 amount): Transfer credits
Token Details:
- Symbol: CRB
- Decimals: 18
- 1 CRB = 1 ton CO₂ equivalent
Purpose: Democratic voting on offset projects and platform decisions
Functions:
createProposal(string description, uint256 votingPeriod): Create new proposalvote(uint256 proposalId, bool support): Vote on proposalexecuteProposal(uint256 proposalId): Execute passed proposal
Features:
- Token-weighted voting
- Transparent proposal system
- On-chain execution
Purpose: Handle dual payment system (Crypto + PayPal)
Functions:
purchaseOffsetCrypto(uint256 offsetAmount, uint256 projectId): Pay with ETHrecordPayPalPurchase(address buyer, uint256 offsetAmount, string paypalId): Record PayPal paymentmintOffsetNFT(address buyer, uint256 offsetAmount): Auto-mint NFT after purchase
Features:
- Flexible offset amounts (0.01 - 1000 tons)
- Dynamic pricing with Oracle integration
- Automatic NFT certificate minting
- Payment tracking for both crypto and fiat
date: Date of consumption (YYYY-MM-DD, DD/MM/YYYY, or MM/DD/YYYY)category: Energy category (Office, Manufacturing, Data Center, Vehicle, HVAC, Lighting)consumption: Energy consumption in kWh
location: Geographic location (e.g., Jakarta, Surabaya)source: Energy source (Grid, Solar, Wind, Diesel)
- CSV: Comma-separated values
- JSON: Array of objects
date,category,consumption,location,source
2024-01-15,Office,450,Jakarta,Grid
2024-01-16,Manufacturing,1200,Surabaya,Grid[
{
"date": "2024-01-15",
"category": "Office",
"consumption": 450,
"location": "Jakarta",
"source": "Grid"
}
]- Primary: Green shades (sustainability theme)
- Secondary: Blue tones (technology theme)
- Accent: Orange/Yellow (energy theme)
- Neutral: Gray scale
- Font: System fonts (optimized for performance)
- Headings: Bold weights
- Body: Regular weights
- ShadCN UI for consistency
- Custom carbon-themed components
- Responsive grid layouts
- Interactive charts dan visualizations
- Push code to GitHub
- Import repository in Vercel
- Configure environment variables (if needed)
- Deploy
- Netlify
- AWS Amplify
- Digital Ocean App Platform
npm run build.next
Contributions are welcome! Please follow these steps:
- Fork the repository
- Create feature branch (
git checkout -b feature/AmazingFeature) - Commit changes (
git commit -m 'Add some AmazingFeature') - Push to branch (
git push origin feature/AmazingFeature) - Open Pull Request
- Follow TypeScript strict mode
- Maintain code quality
- Write descriptive commit messages
- Test across devices
- Update documentation
This project is licensed under the MIT License - see the LICENSE file for details.
Developed by: mrbrightsides
Website: rantai.elpeef.com
- Manual data upload
- Carbon footprint calculation
- Blockchain certification
- Basic visualizations
- AI-powered insights
- Historical tracking
- Interactive charts
- Multiple export formats
- Data quality validation
- Automated data pulling (simulated)
- Carbon offset marketplace
- Gamification system
- Professional PDF reports
- NFT achievement certificates (ERC-721)
- IPFS decentralized storage
- ERC-20 Carbon Credit Tokens
- DAO governance system
- Real-time Oracle integration
- Dual payment system (Crypto + PayPal)
- Flexible offset amounts
- NFT rewards for every purchase
- Real API integrations (AWS, GCP, Azure)
- Backend database (PostgreSQL/MongoDB)
- User authentication system
- Multi-user/team features
- Role-based access control
- Payment processing untuk offsets
- API layer untuk external integrations
- Mainnet deployment (Base blockchain)
- Real ML models untuk predictions
- Mobile app (React Native)
- Advanced analytics suite
- Regulatory compliance templates
- Public transparency dashboard
For questions, issues, or feature requests:
- GitHub Issues: Create an issue
- GitHub Repository: github.com/mrbrightsides/3c
- Telegram: @khudriakhmad
- Discord: @khudri_61362
- Email: support@rantai.elpeef.com
- Website: rantai.elpeef.com
- Next.js Team: For amazing React framework
- ShadCN: For beautiful UI components
- Ethereum Foundation: For blockchain infrastructure
- Indonesian Sustainability Projects: For verified offset opportunities
- Open Source Community: For incredible tools dan libraries
- Total Lines of Code: ~5,000+
- Components: 20+ custom components
- Features: 40+ major features
- Supported Formats: CSV, JSON, PDF, Excel
- Blockchain Network: Ethereum Sepolia Testnet
- Smart Contracts: 5 deployed contracts
- Carbon Projects: 4 verified Indonesian initiatives
- Payment Methods: 2 (Crypto & PayPal)
- NFT Types: Achievement badges & offset certificates
- ESG compliance reporting
- Carbon footprint monitoring
- Sustainability goal tracking
- Stakeholder reporting
- Data-driven decision making
- Progress tracking over time
- Identify high-emission areas
- Carbon offset planning
- Client demonstrations
- Carbon audit tools
- Report generation
- Advisory services
- Environmental awareness
- Blockchain education
- Sustainability training
- Data analysis teaching
RANTAI 3C aims to contribute to:
- UN Sustainable Development Goals: Climate Action (SDG 13)
- Paris Agreement: Net-zero emissions by 2050
- Indonesian Climate Targets: 29% emission reduction by 2030
- Corporate ESG Goals: Transparent environmental reporting
Built with ❤️ for a sustainable future
🌱 RANTAI 3C - Integrating Technology for a Sustainable Future 🌍