What it does

Monoflux is an intelligent urban and suburban commute cost matrix and AI strategy platform. Key features include: Multi-Modal Efficiency Calculator: Calculates instant daily, monthly, and annual side-by-side cost comparisons between Driving (Gas & EV), Public Transit, Park-and-Ride, Rideshare, and Active Micro-mobility (E-bike/Scooter). Time-Value & Carbon Analytics: Factors in personalized hourly value of time and incorporates U.S. EPA emission benchmarks ( ) to reveal true financial and carbon footprints. Corridor Strategy Engine (AI-Powered): Uses Google Gemini AI to analyze bottlenecks, peak travel windows, weather contingency plans, and multi-modal recommendations. Smart Commute AI Advisor: An interactive conversational assistant that acts as a personal transportation strategist, tailoring advice based on regional fares, work-from-home schedules, and budget goals. Cloud Persistence & Route Bookmarking: Allows authenticated users to save custom route scenarios, store profile preferences, and benchmark regional rates using Google Cloud Firestore.

How we built it

Frontend: Built with React 18, TypeScript, and Tailwind CSS, featuring an expressive high-contrast design system, responsive charts, and Motion layout transitions. Backend: Express.js Node server hosting server-side API proxy routes (/api/chat, /api/analyze-route) to keep API keys completely secure. Database & Authentication: Integrated Google Cloud Firestore for persistent user data, saved commute routes, and live regional cost benchmarks, alongside Firebase Authentication. AI Engine: Powered server-side by Google Gemini 2.5/3.6 Flash for fast corridor analysis and interactive commuting advice.

Challenges we ran into

Modeling True Variable Costs: Capturing realistic costs meant going beyond simple fuel calculations to include vehicle maintenance wear-and-tear overhead, tiered parking rates, tolls, and public transit fare structures. Reliable API Fallbacks: Ensuring the application stays 100% resilient and operational even when network requests experience latency or missing credentials, by crafting robust server-side fallback engines. Data Provenance Transparency: Clearly conveying where all underlying numbers come from so users can verify formulas against federal standards and regional transit authorities.

Accomplishments that we're proud of

Sub-Second Multi-Modal Matrix: Instant re-calculation of 5 distinct transit modes with zero lag when adjusting distance, gas prices, or parking costs. Seamless Firestore Synchronization: Instant route bookmarking and user preference loading backed by real cloud database security rules. Actionable AI Insights: Delivering plain-English, actionable commute optimizations rather than raw numbers. Data Sources Transparency Hub: A built-in live database status and data provenance modal verifying cloud connections and federal benchmark formulas in real time. What we learned How to combine mathematical cost models with AI language models to generate tailored, human-understandable advice. Best practices for server-side API security using Express proxy routes with Vite development middleware. Designing high-contrast, distraction-free user interfaces that present dense mathematical and environmental metrics clearly across all devices.

What's next for Monoflux

Live Traffic & Transit API Integration: Incorporating live Google Maps Routes and real-time public transit delays (GTFS feeds). Employer Commuter Benefit Calculator: Helping businesses calculate employee transit subsidy savings and corporate Scope 3 carbon reduction. Carpool & Vanpool Matchmaker: Connecting commuters along shared corridors to split driving expenses.

Built With

Share this project:

Updates