KisaanCredit is a full-stack 'Soil to Sale' ecosystem that digitizes and democratizes the carbon farming market for India's smallholder farmers. We combine a user-friendly mobile app with the immutable trust of blockchain and the scientific precision of AI-powered remote sensing to create a transparent, scalable, and profitable bridge between grassroots climate action and the global carbon economy.
The carbon market has enormous potential, but it has historically failed the very people who are the primary stewards of our land: smallholder farmers. They are locked out by four key problems:
- Profitability: Verification costs are too high, making it unprofitable for small plots.
- Data Quality: Onboarding is complex, and getting consistent, accurate data from the field is difficult.
- Trust: The market is opaque, with concerns about credit authenticity and double-counting.
- Management: Overseeing hundreds of fragmented, individual projects is a logistical nightmare for FPOs and NGOs.
Our platform integrates four innovations into a seamless ecosystem:
-
Profitability — AI-Powered "Digital Assessor"
Replaces expensive manual soil sampling with a low-cost, AI-driven model fusing satellite data (GEE, Bhuvan) with farmer-reported activities. Profitable even for single small plots. -
Onboarding & Data Quality — "Map, Motivate, Mentor"
- 🗺️ Map: Simple onboarding lets farmers draw their land to get instant earnings estimates.
- 🏆 Motivate: Gamified logging with leaderboards and badges.
- 🤖 Mentor: Agentic RAG chatbot provides instant, context-aware support.
-
Trust & Fraud — Unbreakable "Digital Chain of Custody"
CreditLedger.sol smart contract on a public blockchain ensures immutable, transparent, and auditable history for every credit. -
Fragmented Management — "Portfolio Command Center"
Web dashboard aggregates all projects, allowing managers to verify farmer data efficiently before credits are minted.
| Component | Technology |
|---|---|
| 📱 Mobile App | Flutter, Dart, Vosk (Offline Hindi STT), Google STT/gTTS APIs, Image Recognition |
| 🌐 Web Client | React, Vite, Tailwind CSS, Shadcn UI, Aadhaar service APIs |
| ⚙️ Backend | Node.js, Express.js, MongoDB, JWT, Multer, Cloudinary |
| 🧠 AI/ML | Python, FastAPI, XGBoost, Scikit-learn, RAG chatbot |
| 🔗 Blockchain | Solidity, Hardhat, Ethers.js |
| 🛰️ GIS | Google Earth Engine (GEE), ISRO's Bhuvan & Bhoonidhi platforms |
KisaanCredit/
├── app/ # Flutter Mobile App
│ └── lib/
│ ├── assets/ # Vosk speech models
│ ├── pages/ # Screens (login, daily log, calculator)
│ └── main.dart # Entry point
│
├── blockchain/ # Smart Contracts
│ └── contracts/
│ ├── CreditLedger.sol
│
├── client/ # React Web Dashboard
│ └── src/
│ ├── components/ # Reusable UI
│ ├── pages/ # Project Pages
│ ├── lib/ # Helpers (Aadhaar, Auth)
│ └── App.jsx # Main Component
│
├── server/ # Node.js Backend
│ └── src/
│ ├── controllers/
│ ├── models/
│ ├── routes/
│ ├── services/ # GIS Integrations
│ └── app.js # Express setup
│
└── server-fast_api/ # Python AI/ML Microservice
└── app/
├── routes.py
└── services.py # RAG chatbot & XGBoost
- Node.js & npm
- Flutter SDK
- Python & pip
- Hardhat development environment
- Clone the repo
git clone https://github.com/rakheOmar/KisaanCredit.git
cd KisaanCredit- Setup Node.js Server
cd server
npm install
npm run dev
- Setup React Client
cd ../client
npm install
npm run dev
- Setup Flutter App
cd ../app
flutter pub get
flutter run
- Setup Python AI/ML Server
cd ../server-flask
uv venv
.venv/Scripts/activate
uv pip install -r requirements.txt
uvicorn chatbot:app --reload --host 0.0.0.0 --port 5000
- Deploy Blockchain Contracts
cd ../blockchain
npm install
npx hardhat compile
npx hardhat run scripts/deploy.js --network localhost
Fork the Project
- 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)
Distributed under the MIT License. See LICENSE for more information.