AI-Powered Renewable Energy Planning & Optimization Platform
Empowering Communities with Smart Site Selection, Carbon Modeling, and Real-Time Energy Insights
GenShakti is an AI-driven web platform aimed at solving the problem of unreliable and unsustainable energy access in communities around the world. By leveraging advanced geospatial analysis and machine learning, GenShakti provides optimal site recommendations, carbon emission simulations, and real-time integration of environmental and energy data.
๐ฅ Aligns with UN SDG 7 (Affordable and Clean Energy) & SDG 13 (Climate Action)
- ๐ง Smart Site Selection โ AI-powered renewable energy site recommendations with interactive map visualization. Validates coordinates for India region with real-time error handling.
- ๐บ Personalized Energy Roadmaps โ Generate 7-10 step action plans to reduce electricity bills with cost estimates in Indian currency (โน).
- ๐ฑ Carbon Modeling โ Estimate and visualize carbon emission reductions with detailed analytics.
- ๐ Real-Time Data Integration โ Weather and energy usage data for accurate insights and forecasting.
- ๐ก Sustainable Suggestions โ Get 5 personalized energy-saving tips based on transport, energy, and waste inputs.
- ๐ Geospatial AI โ Map-based location analytics using Leaflet with coordinate validation and bounds checking.
- ๐ ๏ธ Cost Savings Dashboard โ Track investment planning and savings with AI-generated recommendations.
- โก Renewable Capacity Analysis โ Real-time recommendations for solar, wind, hydro, geothermal, and biomass energy sources.
- ๐ Visual Roadmaps โ Interactive flow diagrams using ReactFlow for energy transition planning.
| Technology | Purpose |
|---|---|
| React 18.3.1 + Vite 6.0.1 | Frontend framework with hot reload |
| Tailwind CSS | Styling and UI |
| JavaScript (ES6+) | Core programming |
| HuggingFace Inference API | AI-powered recommendations using Llama-3.2-3B-Instruct |
| Leaflet + React Leaflet | Interactive map visualization |
| ReactFlow | Visual roadmap generation |
| Firebase | Deployment and hosting |
- Node.js 18.x or higher
- npm or yarn package manager
- HuggingFace API key (Get one here)
-
Clone the repository
git clone https://github.com/URAYUSHJAIN/genshkati2.0.git cd genshkati2.0 -
Install dependencies
npm install
-
Configure environment variables
Create a
.envfile in the root directory:VITE_HF_API_KEY=your_huggingface_api_key_here
โ ๏ธ Important: Never commit.envto version control. It's already in.gitignore. -
Start development server
npm run dev
The app will be available at
http://localhost:5173 -
Build for production
npm run build
Output will be in the
dist/directory.
GenShakti/
โโโ public/ # Static assets
โโโ src/
โ โโโ assets/
โ โ โโโ img/ # Images and logos
โ โโโ components/ # Reusable UI components (Header, Footer)
โ โโโ pages/ # Feature pages
โ โ โโโ ai.jsx # Energy reduction roadmap
โ โ โโโ siteSelection.jsx # Smart site selection with maps
โ โ โโโ Sustainable-Suggestions.jsx # Sustainability recommendations
โ โ โโโ Roadmap.jsx # Visual energy roadmap
โ โ โโโ Renewable Capacity.jsx # Energy capacity dashboard
โ โ โโโ Cost Saving.jsx # Cost analysis
โ โ โโโ ...more pages
โ โโโ utils/
โ โ โโโ aiProvider.js # Centralized AI utility (HuggingFace)
โ โโโ App.jsx # Main app component with routing
โ โโโ main.jsx # Entry point
โโโ .env # Environment variables (not in git)
โโโ .gitignore
โโโ index.html
โโโ tailwind.config.js
โโโ vite.config.js # Vite config with HF API proxy
โโโ package.json
src/utils/aiProvider.js: Centralized AI utility using HuggingFace's Llama-3.2-3B-Instruct model for all AI-powered featuresvite.config.js: Includes proxy configuration to handle CORS during development.env: Stores sensitive API keys (VITE_HF_API_KEY)
- User Input โ Energy type, location, usage, etc.
- AI Analysis โ Optimal site detection using geospatial data.
- Roadmap Generation โ Electricity bill reduction strategies.
- Carbon Modeling โ Emissions simulation and dashboard.
- Sustainability Insights โ Tailored green energy tips.
- ๐ Live App: genshaakti.web.app
- ๐ฅ Demo Video: YouTube Channel
- ๐ Pitch Deck: View Canva Presentation
- ๐ฑ Flutter Mobile App with Google Maps & real-time energy insights.
- ๐ Expanded Energy Types: Enhanced hydro & biomass modeling.
- ๐ง Advanced AI Models: Experiment with larger LLMs for more precise recommendations.
- ๐ IoT Integration: Smart home devices for automated energy optimization.
- ๐ค Strategic Partnerships: Energy firms, governments, NGOs for wider adoption.
- ๐ Multilingual Support: Reach non-English speaking communities.
- ๐ฎ Gamification: Reward users for achieving sustainability milestones.
- ๐ Analytics Dashboard: Historical tracking and predictive modeling.
- ๐ User Authentication: Save and track personal energy goals over time.
- 401 Unauthorized: Check if
VITE_HF_API_KEYis correctly set in.env - CORS Errors: Make sure Vite dev server is running (proxy handles CORS)
- Model Errors: The app uses
meta-llama/Llama-3.2-3B-Instructwhich is deployed on HuggingFace router
- Clear cache:
rm -rf node_modules dist && npm install - Check Node version:
node -v(should be 18.x or higher)
- Verify Leaflet CSS is included in your HTML
- Check browser console for coordinate validation errors
| Variable | Description | Required |
|---|---|---|
VITE_HF_API_KEY |
HuggingFace API key for AI features | โ Yes |
๐ก Tip: For production deployment on Vercel/Netlify, add environment variables in their dashboard.
- Push code to GitHub
- Connect repository to Vercel/Netlify
- Add environment variable:
VITE_HF_API_KEY - Build command:
npm run build - Output directory:
dist
npm run build
firebase deployContributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is open source and available for educational and research purposes.
- HuggingFace for providing the Inference API
- React and Vite communities for excellent tooling
- Leaflet for map visualization capabilities
- All contributors and supporters of sustainable energy initiatives
