Skip to content

🌾 Farm to Table Marketplace with AI, Blockchain & Real-time Features

Notifications You must be signed in to change notification settings

Tyagirohan/agrichain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌾 AgriChain - Farm to Table Marketplace

AgriChain Logo

Empowering Farmers with AI & Blockchain Technology

Live Demo License GitHub Stars


πŸ“– About AgriChain

AgriChain is a comprehensive agricultural ecosystem platform that connects farmers directly with consumers, eliminates middlemen, and leverages modern technology to improve agricultural practices.

🎯 Problem Statement

  • 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%

✨ Our Solution

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

πŸš€ Features

1. Marketplace πŸ›οΈ

  • Direct buying/selling between farmers and consumers
  • Real-time product search & filters
  • Location-based product discovery
  • Dynamic pricing with discount support
  • Wishlist & cart management

2. Crop Disease Detection πŸ”¬

  • AI/ML-powered image analysis
  • Instant disease identification
  • Treatment recommendations
  • Preventive measures
  • Downloadable PDF reports

3. Supply Chain Tracking πŸ“¦

  • Blockchain-inspired transparency
  • Real-time order tracking
  • 6-stage delivery monitoring
  • QR code verification
  • Immutable transaction records

4. Government Schemes πŸ›οΈ

  • Auto-fetched latest schemes
  • Eligibility checker
  • Application guidance
  • Deadline notifications
  • Multi-language support

5. Rating & Reputation System ⭐

  • Dynamic farmer ratings
  • Consumer reviews
  • Reputation badges (Elite, Top Rated, Trusted)
  • Quality incentivization

6. Payment Gateway πŸ’³

  • Razorpay integration
  • UPI, Cards, Wallets
  • Cash on Delivery (COD)
  • Secure transactions
  • Payment history tracking

7. Real-time Chat πŸ’¬

  • WebSocket-based messaging
  • Farmer-Consumer communication
  • Online/offline status
  • Message notifications
  • Chat history

8. Progressive Web App (PWA) πŸ“±

  • Installable on mobile/desktop
  • Offline support
  • Push notifications
  • Native app-like experience
  • Fast loading (Service Worker caching)

9. Multi-language Support 🌐

  • English & Hindi (more coming soon)
  • Real-time language switching
  • Localized content
  • Farmer-friendly interface

10. Analytics Dashboard πŸ“Š

  • Sales/purchase trends
  • Revenue tracking
  • Visual charts (Recharts)
  • Product performance
  • Order statistics

πŸ› οΈ Tech Stack

Frontend

  • 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

Backend

  • Framework: FastAPI (Python)
  • WebSockets: FastAPI WebSockets
  • Authentication: JWT tokens
  • Scheduling: APScheduler
  • HTTP: Requests library
  • Data: JSON storage (PostgreSQL-ready)

Integrations

  • Payment: Razorpay
  • PDF Generation: jsPDF, html2canvas
  • Web Scraping: BeautifulSoup4
  • ML/AI: TensorFlow.js (future)

πŸ“¦ Installation

Prerequisites

  • Python 3.8+
  • Node.js 16+
  • npm or yarn

Quick Start

1. Clone Repository

git clone https://github.com/yourusername/agrichain.git
cd agrichain

2. Backend Setup

cd backend
pip install -r requirements.txt
python main.py

βœ… Backend runs on http://localhost:8000

3. Frontend Setup

cd frontend
npm install
npm run dev

βœ… Frontend runs on http://localhost:5173

4. Access Application

Open browser: http://localhost:5173


πŸ” Environment Setup

Backend .env (Optional)

RAZORPAY_KEY_ID=rzp_test_your_key_id
RAZORPAY_KEY_SECRET=your_secret_key
DATABASE_URL=postgresql://localhost/agrichain

πŸ“Έ Screenshots

Homepage

Homepage

Marketplace

Marketplace

Crop Detection

Crop Detection

Supply Chain Tracking

Supply Chain

Farmer Dashboard

Dashboard


🎯 Roadmap

  • 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

🀝 Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository
  2. Create feature branch (git checkout -b feature/AmazingFeature)
  3. Commit changes (git commit -m 'Add AmazingFeature')
  4. Push to branch (git push origin feature/AmazingFeature)
  5. Open Pull Request

πŸ“„ License

This project is licensed under the MIT License - see LICENSE file for details.


πŸ‘¨β€πŸ’» Authors


πŸ™ Acknowledgments

  • Farmers who inspired this project
  • Open source community
  • All contributors

πŸ“ž Contact

Project Link: https://github.com/yourusername/agrichain

Live Demo: https://agrichain-demo.com

Email: your-email@example.com


Made with ❀️ for Farmers

Farmer Tech

About

🌾 Farm to Table Marketplace with AI, Blockchain & Real-time Features

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published