PerishOpt

Dispatch by Biology, not by queue.

Wild BugsShipped October 15, 2026#general#climate
Visit Repo
PerishOpt banner

About

## The problem it solves

### 1. The Post-Harvest Food Waste Crisis

In India, over 11% to 15% of all harvested fruits and vegetables rot before ever reaching a consumer. This translates to billions of rupees in losses for farmers and packhouse operators, wasted fuel and refrigeration energy, and tons of edible food ending up in landfills. ────── ### 2. The Flaw in Existing Supply Chains: Blind Dispatching

Most agricultural supply chains still rely on Naive FIFO (First-In, First-Out)—shipping out whatever arrived at the warehouse first, without considering how long the journey takes or how fast the produce is spoiling:

• Shipping Produce to Its Death: A packhouse might load a truck with tomatoes that only have 18 hours of life left and send them on a 14-hour highway journey to a distant city. By the time the truck arrives and unloads at the wholesale market, the entire shipment has turned to mush. • Ignoring Heat and Delays: Refrigerated trucks frequently suffer cooling hiccups, and highways face monsoon delays and traffic jams. Traditional logistics systems have no awareness of how heat and extra hours destroy fresh food. • The "All-or-Nothing" Pricing Trap: When produce arrives close to expiry, sellers either demand full price until it rots unsold, or throw it away because they have no proactive way to offer discounts and sell it quickly. ────── ### 3. What perishOpt Does

perishOpt is an intelligent dispatch brain for perishable cold chains:

1. Matches Shelf Life to the Right Journey: It ensures fragile, near-expiry produce is dispatched only to close, high-demand local markets, while sturdy, fresh produce is assigned to longer routes. 2. Proactive Price Markdowns: Instead of letting aging produce rot, it automatically triggers targeted discounts (like 15% or 30% off) at nearby markets to clear inventory rapidly while it is still fresh. 3. Adapts to Disruptions in Real Time: When highway landslides, road gridlock, or refrigeration failures occur, it instantly reroutes trucks to prevent spoilage before the produce leaves the facility. ────── ### 4. The Direct Impact

• Zero Transit Spoilage: Stops shipments from rotting en route, cutting transit food waste down to 0%. • More Food on Tables: Saves thousands of kilograms of fresh food per harvest cycle that would have otherwise been dumped. • Substantially Higher Profits: Eliminates expensive disposal penalties and freight wasted on rotted stock, more than doubling net profits for supply chain operators.

## Challenges we ran into

The initial challenge was implementing dynamic pricing updates within the markdown generation pipeline. The system required a mechanism to incorporate real-time price changes, which proved difficult to integrate seamlessly with the existing static content. Early attempts to inject prices directly during markdown rendering resulted in performance bottlenecks, especially with large datasets, and a separate service for fetching dynamic data needed to be integrated. The eventual solution involved pre-processing markdown with placeholders, then asynchronously updating with the price from separate data source. To optimize pricing quickly, discrete discount tiers with capped demand were implemented to ensure linear calculations. This approach enabled rapid solver re-optimization. A pre-flight biological filter was created to prevent produce rot during transit, disqualifying routes where shelf life would be compromised. The system addresses inconsistent agricultural data through an automated fuzzy parsing and conversion layer to handle errors and inconsistencies. Specific Challenges We Ran Into ────── ### 1. Dynamic Discounts Made the Math Non-Linear

• The Problem: In economics, when you lower a price, customer demand increases. But multiplying changing prices by changing demand volumes creates non-linear math curves. Non-linear solvers are notoriously slow, taking seconds or even minutes to run—which would make interactive dashboard sliders laggy and unusable. • How We Solved It: Instead of continuous pricing curves, we structured markdowns into fixed decision tiers (Full Price, 15% Clearance, and 30% Urgent Salvage) with predefined demand caps. This kept the problem strictly linear, allowing our solver to re-calculate complete multi-city logistics in under 2 milliseconds whenever a user adjusts a slider. ────── ### 2. Factoring in Heat and Spoilage Before Trucks Leave

• The Problem: Produce spoils twice as fast for every 10°C increase in temperature. If our dispatch system only looked at market prices, it would mistakenly choose a distant, high-paying market without realizing the transit heat and traffic would spoil the food before arrival. • How We Solved It: We built a "pre-flight" biological filter. Before the allocation engine touches any data, it calculates the exact hours of shelf life each batch will lose during transit and market handling. Any route that the produce cannot safely survive with at least a 2-hour buffer is disqualified upfront, ensuring rotted goods are never loaded onto trucks. ────── ### 3. Dirty, Inconsistent Real-World Agricultural Data

• The Problem: Indian wholesale mandi spreadsheets and judge test files are filled with inconsistencies. Column headers varied wildly (e.g., mandi, target_market, destination), units were mixed up (metric tons vs. kilograms, days vs. hours), some rows had accidental negative inventory numbers, and GPS coordinates were often missing. • How We Solved It: We built a resilient fuzzy ingestion engine with automated alias matching, unit conversion (auto-converting metric tons to kg and days to hours), and safety clamping that fixes negative values to zero. We also built an APMC coordinate lookup covering 15 major Indian markets with automatic pin-jittering so map markers never stack directly on top of each other. ────── ### 4. Neumorphic UI Text Overflows on Smaller Screens • The Problem: When we redesigned the frontend into a black-and-white Neumorphic theme with tactile inset shadows, the cards had very strict visual bounding boxes. On standard laptop screens, large currency numbers (like ₹8,17,500), percentage badges, and disruption status chips were overflowing outside their cards and getting clipped. • How We Solved It: We overhauled the layout using responsive CSS grids and flexbox wrapping, added intelligent text truncation with hover tooltips, and paired distinct typography (Space Grotesk for bold figures, Inter for clean labels, and JetBrains Mono for solver metrics) so all information fits cleanly within its card boundaries on any screen size. ────── ### 5. Monorepo Cloud Deployment Roadblocks (Vercel & Render)

• The Problem:

• Vercel Build Failure: Our repository contained a Python backend at the root and a React frontend in a /frontend subfolder. When Vercel tried to auto-deploy from GitHub, it searched for a package.json at the root, couldn't find one, and immediately crashed with error code 254. • Render Cold Starts: Render’s free-tier backend hibernates after 15 minutes of inactivity, causing a 45-second delay on the very first request. • How We Solved It: • We created a root workspace script and updated vercel.json with an explicit build command targeting frontend/dist, allowing Vercel to auto-build and deploy cleanly in 21 seconds. • On the frontend, we configured a 30-second

Screenshots

PerishOpt screenshot 1

Team

From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.