Designing agricultural supply-chain software for 3G and SMS

← Blog
  • agritech
  • edge-computing
  • architecture
  • astro

Most marketplace software assumes buyers and sellers sit on stable broadband with desktop screens. In highland vegetable and rural farming clusters across the Philippines, cooperative coordinators work in direct sunlight on budget Android phones over congested 3G towers.

When we built the Farmyra Agritech Platform — recognized as an awardee in the Department of Agriculture Young Farmers Challenge (DA YFC) — the technical architecture had to bend to field reality.

Payloads under 30 KB

Every kilobyte of JavaScript increases the chance of a stalled handshake on high-latency cellular links. I built the field-facing web interface with static-first Astro routes deployed on Cloudflare Workers at the edge, stripping client bundles down to essential form state and keeping initial HTML responses under 30 KB.

Structured SMS & low-bandwidth harvest intake

Before institutional buyers can bid on upcoming harvests, cooperatives need a fast way to log crop volume, grade, and target harvest dates from the field:

  • Single-screen intake: Rather than multi-step wizards that lose state when a connection drops, harvest declarations submit as a single atomic payload cached in localStorage until acknowledged.
  • SMS fallback syntax: For barangays where data packets time out completely, compact SMS codes update lot availability against the same PostgreSQL supply ledger that powers the web marketplace.
  • Sunlight-legible contrast: We replaced low-contrast gray labels with stark ink-on-paper typography and 44px touch targets so coordinators can log lots outdoors without mis-taps.

Outcome

By matching harvest schedules to commercial buyer demand before crops leave the farm gate, Farmyra reduces post-harvest spoilage and gives smallholder cooperatives direct pricing power without middlemen markups.