explaingit

deeppakhare/farmgpt-ai-foundation

Analysis updated 2026-05-18

4TypeScriptAudience · developerComplexity · 4/5LicenseSetup · hard

TLDR

A multi-agent AI chat app that helps Indian smallholder farmers diagnose crop diseases, check weather, and plan their farms.

Mindmap

mindmap
  root((farmgpt))
    What it does
      Diagnoses crop diseases from photos
      Gives weather and irrigation advice
      Explains government farm schemes
      Generates season farm plans
    Tech stack
      TypeScript
      React
      TanStack Start
      Supabase
      Cloudflare Workers
    Use cases
      Scan a leaf for disease
      Check mandi market prices
      Plan fertilizer schedule
      Ask about farm subsidies
    Audience
      Smallholder farmers
      Developers learning agents
      Hackathon reviewers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Upload a photo of a crop leaf to get a disease diagnosis and treatment plan.

USE CASE 2

Ask for a weather-based recommendation on whether to irrigate or spray today.

USE CASE 3

Generate a full season farm plan for a specific crop.

USE CASE 4

Look up eligibility and application steps for government farming schemes.

What is it built with?

TypeScriptReactTanStack StartSupabaseCloudflare WorkersTailwind

How does it compare?

deeppakhare/farmgpt-ai-foundation0labs-in/vision-linkalfons-fhl/cursor-plan2api
Stars444
LanguageTypeScriptTypeScriptTypeScript
Setup difficultyhardmoderatemoderate
Complexity4/53/53/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1h+

Requires Supabase, a Gemini API key via Lovable AI Gateway, and Cloudflare Workers deployment setup.

Licensed under MIT, which allows free use, modification, and commercial use as long as the copyright notice is kept.

In plain English

FarmGPT AI is a chat based assistant built to help smallholder farmers in India, where most farms are under two hectares. The README explains that these farmers usually face the same recurring questions each season: what disease is damaging their crop, whether to irrigate today, what the market price is nearby, whether they qualify for government support programs, and how much fertilizer to apply. Existing options like local advisory offices, input dealers, generic weather apps, and government portals each fall short in some way, so this project tries to combine everything into one tool. The core idea is a multi agent system. When a farmer types or asks a question, an Intent Router figures out what kind of question it is and passes it to one of six specialist assistants covering crop disease, weather, market prices, government schemes, fertilizer planning, or general questions. Each specialist uses Google's Gemini 3 Flash model to generate answers, and results are shown as structured cards rather than plain text, such as weather panels or price tables. The app includes a dashboard, a camera based disease scanner that gives a diagnosis and treatment steps after a farmer uploads a leaf photo, a farm planner that produces a season long crop plan, a market intelligence section for selling decisions, and a weather section tailored to farming tasks like spraying or harvesting. On the technical side, the project uses TypeScript, React, and TanStack Start, is deployed on Cloudflare Workers for fast loading even on weaker connections, and stores data in Supabase with row level security so each farmer only sees their own information. Authentication supports Google and email sign in. The interface is built with shadcn and Tailwind and supports both light and dark themes. This is a student or hackathon style capstone project rather than a polished commercial product, built for a Kaggle AI agents competition, and would mainly interest developers curious about multi agent AI systems or anyone exploring agricultural technology. The full README is longer than what was shown.

Copy-paste prompts

Prompt 1
Explain how the Intent Router decides which specialist AI agent handles a farmer's question.
Prompt 2
Help me set up this project locally with Supabase and Cloudflare Workers.
Prompt 3
Walk me through how the crop disease scanner processes an uploaded photo.
Prompt 4
Show me how row-level security is used to keep each farmer's data private.

Frequently asked questions

What is farmgpt-ai-foundation?

A multi-agent AI chat app that helps Indian smallholder farmers diagnose crop diseases, check weather, and plan their farms.

What language is farmgpt-ai-foundation written in?

Mainly TypeScript. The stack also includes TypeScript, React, TanStack Start.

What license does farmgpt-ai-foundation use?

Licensed under MIT, which allows free use, modification, and commercial use as long as the copyright notice is kept.

How hard is farmgpt-ai-foundation to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is farmgpt-ai-foundation for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.