A modular, mobile-first platform that promotes eco-friendly actions through gamification, token rewards, NFTs, and social engagement.
$PLASTIC is a comprehensive platform that incentivizes environmental actions through blockchain technology, gamification, and AI-powered personalization. Users earn $PLASTIC tokens for verified eco-actions, collect NFTs, compete on leaderboards, and participate in community challenges.
This is a monorepo built with:
- Backend: Encore.ts (TypeScript REST API framework)
- Frontend: React with TypeScript, Tailwind CSS, shadcn/ui
- Database: PostgreSQL (via Encore.ts SQL Database)
- Blockchain: Solana integration for tokens, NFTs, and payments
- 💰 Wallet & Payments (Solana Pay + fiat)
- 🌍 Eco-Action Tracking with verification
- 🎮 Gamification & Token Rewards
- 🏆 Leaderboards & Challenges
- 📊 Analytics Dashboard
- 📱 Mobile-first responsive design
- Token: $PLASTIC
- Total Supply: 18.44 billion
- Utility: Rewards, NFT minting, staking, governance
- Distribution: Community rewards, development, partnerships
- 🤖 AI-powered personalized recommendations
- 🔄 Offline-first with sync capabilities
- 🎯 Real-time notifications
- 🛡️ Fraud detection and security
- 📈 Predictive analytics
``` /backend/ # Encore.ts backend services /user/ # User management service /wallet/ # Wallet and payment service /actions/ # Eco-action tracking service /rewards/ # Rewards and gamification service /leaderboard/ # Leaderboard service /nft/ # NFT management service /ai/ # AI services /analytics/ # Analytics service
/frontend/ # React frontend application /components/ # Reusable UI components /pages/ # Application pages /hooks/ # Custom React hooks /types/ # TypeScript type definitions /utils/ # Utility functions /constants/ # Application constants /context/ # React context providers
/shared/ # Shared utilities and types ```
- Node.js 18+
- Encore CLI
-
Install Encore CLI: ```bash curl -L https://encore.dev/install.sh | bash ```
-
Run the application: ```bash encore run ```
-
Access the application:
- Backend API: http://localhost:4000
- Frontend: http://localhost:3000
- Encore Dashboard: http://localhost:9400
Configure secrets in the Encore dashboard (Infrastructure tab):
SolanaRPCURL
: Solana RPC endpointOpenAIKey
: OpenAI API key for AI servicesPaymentGatewayKey
: Payment gateway API key
- User Service: Profile management and authentication
- Wallet Service: Solana wallet integration and payments
- Actions Service: Eco-action tracking and verification
- Rewards Service: Token distribution and gamification
- Leaderboard Service: Rankings and competitions
- NFT Service: NFT minting and management
- AI Service: Personalized recommendations and analytics
- Dashboard: Overview of tokens, NFTs, and progress
- Actions: Track and verify eco-friendly activities
- Leaderboard: Global and friend rankings
- Wallet: Manage tokens and payments
- Profile: User settings and achievements
- Challenges: Participate in community events
- Solana: Blockchain for tokens and NFTs
- AI Services: OpenAI for personalized recommendations
- Payment Gateways: Fiat payment processing
- Analytics: User behavior and platform metrics
Allocation | Percentage | Amount (Billions) |
---|---|---|
Community Rewards | 40% | 7.376 |
Team/Advisors | 20% | 3.688 |
Partners & NGOs | 15% | 2.766 |
Platform Development | 15% | 2.766 |
Reserve & Liquidity | 10% | 1.844 |
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests
- Submit a pull request
MIT License - see LICENSE file for details
- Mobile app (React Native)
- Advanced AI features
- IoT device integration
- Merchant partnerships
- Governance token features
- Cross-chain compatibility
Built with 💚 for a sustainable future