Inspiration

Up to 40% of the world's crops are lost to pests and diseases every year, according to the FAO. What struck us is that most of those problems are already understood. A farmer nearby has usually fixed the same thing. A researcher at a nearby university studies it. An extension factsheet explains it. The farmer who needs the answer today can't reach any of them in time.

We wanted to build the missing connection: one place where a farmer describes a problem once and gets an answer, plus the people who can help. What pushed us to build it was realizing that this gap isn't a technology problem. The science exists and the farmers exist. Nothing connects them while the crop is still in the ground.

What it does

FarmLine has two sides.

Farmers describe a crop problem in their own words, by typing or speaking. FarmLine returns:

  • A plain summary and safe first steps
  • A suggested solution written from extension articles and research, with every source linked
  • Real cases from other growers found on the web
  • Extension experts they can contact, with a drafted message
  • Farmers on FarmLine who solved the same problem
  • Researchers who study it, and the papers they published

Researchers see cases sent to them and open cases that match their work. They can reply with advice, offer to test a solution on the farmer's field, or ask for a sample. They can also list trials they want to run on real farms.

When a farmer marks a problem as solved, it becomes a shared experience that the next farmer with the same problem will find.

How we built it

  • Backend: Python with FastAPI and a SQLite database
  • Frontend: plain JavaScript, HTML, and CSS with no framework, designed to work on a phone
  • AI: for summaries, solutions, and live web search
  • Article library: a reader that collects extension pages, respects robots.txt, and searches them by text similarity (TF-IDF)
  • Research: the OpenAlex API for papers and their authors
  • Messaging: Twilio and email for summaries, plus a phone line that is built but not yet tested on a live number

We used Claude as a coding assistant throughout the build.

Challenges we ran into

  • Getting AI to search and return structured answers. When we asked the model to search the web and return a strict format in one step, it failed or answered in loose prose. We split it into two steps: search and write freely, then structure the result.
  • Free-tier limits. Rate limits and "model overloaded" errors hit us mid-testing. We added retries, fallbacks, and a seconds counter so the app never looks frozen.
  • Made-up sources. AI can invent links. We now drop any link the AI was not actually given by our library, the research database, or its own search results.
  • Demo reliability. A live AI demo can fail at the worst moment. We built a saved answer for one demo case, and the screen labels it clearly whenever it is shown in place of a live answer.
  • Two users in one browser. Signing in as a researcher in a second tab silently switched the farmer tab too. We moved to per-tab sign-in so both sides can be shown side by side.

Accomplishments that we're proud of

  • Both sides work end to end. A farmer sends a case, the researcher's screen updates on its own. If a researcher inputs a trial test, farmers can access this if they have a similar problem to the test to help with research. Farmers can send their experience and mark what fixed their problems so other farmers with similar problems can see.

Built With

Share this project:

Updates

Submission history