AgriChain is a comprehensive agricultural ecosystem platform that connects farmers directly with consumers, eliminates middlemen, and leverages modern technology to improve agricultural practices.
- Farmers lose 30-40% profit to middlemen
- Consumers pay inflated prices
- Lack of transparency in supply chain
- Limited access to government schemes
- Crop diseases reduce yield by 20-30%
A one-stop platform combining:
- π Direct farmer-to-consumer marketplace
- π¬ AI-powered crop disease detection
- π¦ Blockchain-based supply chain tracking
- π± Real-time chat & notifications
- π³ Integrated payment gateway
- ποΈ Government scheme recommendations
- Direct buying/selling between farmers and consumers
- Real-time product search & filters
- Location-based product discovery
- Dynamic pricing with discount support
- Wishlist & cart management
- AI/ML-powered image analysis
- Instant disease identification
- Treatment recommendations
- Preventive measures
- Downloadable PDF reports
- Blockchain-inspired transparency
- Real-time order tracking
- 6-stage delivery monitoring
- QR code verification
- Immutable transaction records
- Auto-fetched latest schemes
- Eligibility checker
- Application guidance
- Deadline notifications
- Multi-language support
- Dynamic farmer ratings
- Consumer reviews
- Reputation badges (Elite, Top Rated, Trusted)
- Quality incentivization
- Razorpay integration
- UPI, Cards, Wallets
- Cash on Delivery (COD)
- Secure transactions
- Payment history tracking
- WebSocket-based messaging
- Farmer-Consumer communication
- Online/offline status
- Message notifications
- Chat history
- Installable on mobile/desktop
- Offline support
- Push notifications
- Native app-like experience
- Fast loading (Service Worker caching)
- English & Hindi (more coming soon)
- Real-time language switching
- Localized content
- Farmer-friendly interface
- Sales/purchase trends
- Revenue tracking
- Visual charts (Recharts)
- Product performance
- Order statistics
- Framework: React 18 + TypeScript
- Styling: Tailwind CSS
- Routing: React Router v6
- Icons: Lucide React
- Charts: Recharts
- i18n: react-i18next
- Build: Vite
- PWA: Service Workers, Web Manifest
- Framework: FastAPI (Python)
- WebSockets: FastAPI WebSockets
- Authentication: JWT tokens
- Scheduling: APScheduler
- HTTP: Requests library
- Data: JSON storage (PostgreSQL-ready)
- Payment: Razorpay
- PDF Generation: jsPDF, html2canvas
- Web Scraping: BeautifulSoup4
- ML/AI: TensorFlow.js (future)
- Python 3.8+
- Node.js 16+
- npm or yarn
git clone https://github.com/yourusername/agrichain.git
cd agrichaincd backend
pip install -r requirements.txt
python main.pyβ
Backend runs on http://localhost:8000
cd frontend
npm install
npm run devβ
Frontend runs on http://localhost:5173
Open browser: http://localhost:5173
RAZORPAY_KEY_ID=rzp_test_your_key_id
RAZORPAY_KEY_SECRET=your_secret_key
DATABASE_URL=postgresql://localhost/agrichain- Core marketplace functionality
- AI crop disease detection
- Blockchain supply chain
- Payment gateway integration
- Real-time chat
- PWA implementation
- Multi-language support
- Mobile app (React Native)
- PostgreSQL migration
- ML model training pipeline
- Blockchain smart contracts
- IoT sensor integration
- Weather forecast integration
- Soil testing recommendations
Contributions are welcome! Please follow these steps:
- Fork the repository
- Create feature branch (
git checkout -b feature/AmazingFeature) - Commit changes (
git commit -m 'Add AmazingFeature') - Push to branch (
git push origin feature/AmazingFeature) - Open Pull Request
This project is licensed under the MIT License - see LICENSE file for details.
- Farmers who inspired this project
- Open source community
- All contributors
Project Link: https://github.com/yourusername/agrichain
Live Demo: https://agrichain-demo.com
Email: your-email@example.com




