Inspiration

Independent colleges, training centers, non-profits, small businesses, and individual learners often buy the exact same laptops, lab kits, and hardware separately at full retail prices—missing out on 15–25% institutional bulk discounts simply because they don't know other communities need the same thing at the same time.

NEEDBRIDGE was built around one core principle: "Your needs are individual. Your purchasing power is collective."

What it does

NEEDBRIDGE is an end-to-end AI demand intelligence and collective procurement network with four role-based portals (Individual Buyer, Organization Buyer, Supplier, and Platform Administrator):

  • AI Semantic Demand Discovery & Matching: Users submit natural-language requirements (e.g., "Need 40 programming laptops for CS students"). Our AI pipeline extracts technical specs (RAM, storage, CPU, warranty), compares compatibility across regions and timelines, and explains every match with shared attributes, differences, and projected savings.
  • Demand Liquidity Scoring (0–100): Aggregates compatible requirements into clusters and scores collective purchasing viability across 6 factors (buyer density, volume mass, supplier availability, geographic alignment, price competitiveness, and historical momentum).
  • 7-Agent Autonomous Orchestration: Runs specialized agents for Demand Intelligence, Community Discovery, Procurement Optimization, Alternative Products, Financial Intelligence, Risk & Trust (anti-dumping/KYC checks), and Procurement Coordination—with an auditable execution timeline.
  • Supplier Bidding & PayPal Sandbox Escrow: Verified suppliers submit tiered bulk RFQ quotes. Buyers approve proposals, authorize contributions via PayPal Sandbox (/api/payments/create-order & /api/payments/capture-order), and audit every dollar in a transparent procurement ledger comparing Individual Retail Baseline vs. Actual Collective Landed Cost.

How we built it

  • Frontend: React, TypeScript, Vite, Tailwind CSS v4, Lucide React, and Recharts (deployed on Vercel at https://needbridge-sigma.vercel.app/).
  • Backend: Python FastAPI with Pydantic validation, JWT + PBKDF2-HMAC-SHA256 role-based authentication, and a 19-table relational SQLite schema (deployed as a Vercel FastAPI service and on Render at https://needbridge-backend.onrender.com/docs).
  • AI Engine: Custom 7-agent Python orchestrator (backend/app/ai/) featuring domain-synonym tokenization, cosine similarity matching, heuristic liquidity indexing, and configurable Gemini/OpenAI API key support with deterministic fallback.
  • Payments: PayPal Sandbox order creation, escrow authorization/capture, duplicate-capture protection, and refund workflows integrated with the transparent financial ledger.

Challenges we ran into

  • Serverless Cold-Start & Read-Only Filesystems: Deploying FastAPI with SQLite onto serverless infrastructure initially caused 500 errors because the deployment directory is read-only. We solved this by routing serverless SQLite storage to /tmp/needbridge.db and adding idempotent startup/request initialization middleware.
  • Schema Alignment Across Live & Fallback Modes: Keeping the frontend resilient when backend services cold-start required aligning every client fallback payload (/analytics/overview, /clusters/, /ledger/campaign/{id}, /agents/activity) with the exact backend TypeScript contracts so zero views break.
  • Explainable Matching vs. Blind Clustering: Ensuring the AI never treats two products as identical without explicitly surfacing specification differences and requiring buyer approval before joining a campaign.

Accomplishments that we're proud of

  • Built a complete 22+ view full-stack fintech + AI SaaS application—not a static mockup—covering demand submission, pre-flight AI analysis, cluster liquidity analytics, supplier RFQ comparison, PayPal Sandbox escrow checkout, and cryptographic-style audit ledgers.
  • Implemented all 7 specialized AI agents with live latency tracking (ms) and inspectable JSON outputs in the Agent Activity Center.
  • Deployed both the frontend and FastAPI backend live with one-click persona switching (Individual, Org Buyer, Supplier, Admin) for instant evaluation.

What we learned

  • Designing multi-agent workflows where every automated decision (compatibility %, liquidity score, supplier selection, risk verdict) is transparent, explainable, and auditable builds real trust in collective finance.
  • Handling serverless cold starts, database seeding idempotency, and graceful client-side fallbacks makes full-stack hackathon deployments dramatically more reliable.

What's next for NEEDBRIDGE

  • Connecting managed PostgreSQL + pgvector for large-scale vector similarity search across thousands of live requisitions.
  • Expanding live LLM multimodal spec extraction (via Gemini/OpenAI) to parse uploaded PDF spec sheets and vendor catalogs automatically.
  • Integrating live carrier shipping APIs for automated split-shipment dispatch across participating campuses and community hubs.

Built With

Share this project:

Updates

Submission history