Krishi Sahayak
React.jsNext.jsGemini APIGenkit SDKTailwind CSSMongoDBQdrantDB

Krishi Sahayak

Krishi Sahayak is an AI-powered agricultural assistant built with Next.js, Genkit, and modern React. It provides multilingual query understanding, image-based crop diagnosis, and text-to-speech features for farmers and agricultural officers.

Features

  • Multilingual chat (English, Hindi, etc.)
  • Image-based crop diagnosis
  • Text-to-speech (TTS) for AI responses
  • Voice input (speech-to-text)
  • Forward queries to senior officers
  • Modern, responsive UI with Tailwind CSS

Prerequisites

  • Node.js (v18 or later recommended)
  • npm (v9 or later)
  • [Optional] Genkit CLI for AI development

Getting Started

  1. Clone the repository:

    git clone https://github.com/sonu-dpu/ai-farmer.git
    cd ai-farmer
    
  2. Install dependencies:

    npm install
    
  3. Set up environment variables:

    • Copy .env.sample to .env and fill in any required values.
    cp env.sample .env
    # Edit .env as needed
    
  4. Run the development server:

    npm run dev
    

    The app will be available at http://localhost:9002 by default.

Scripts

  • npm run dev — Start Next.js in development mode
  • npm run build — Build for production
  • npm start — Start production server
  • npm run lint — Lint code

Tech Stack

  • Next.js 15
  • React 19
  • Genkit AI
  • Tailwind CSS
  • Radix UI
  • TypeScript

License

MIT