Inspiration

Anyone who has built a 3D printer, drone, or industrial robotics arm knows the heartbreak of ordering a motor driver, buck converter, or microcontroller that burns out on first boot because of subtle voltage mismatches, incompatible logic levels, or unverified pinouts. Electronics procurement has remained stuck in manual PDF datasheet reading and disconnected checkout carts. We built PartsPilot to bring autonomous multimodal AI reasoning and server-authoritative PayPal commerce together into an agentic engineering copilot.

What It Does

  1. Multimodal Diagnostic Intake: Upload component photos or enter MPNs. Google Gemini 3.5 multimodal vision extracts silkscreen markings, IC package types, electrical operating ranges, and physical thermal damage.
  2. Authoritative Neon PostgreSQL Catalogue: Validates AI findings against verified manufacturer datasheets stored in Neon Serverless PostgreSQL with pgvector semantic similarity.
  3. Deterministic Compatibility Engine: Evaluates hard engineering constraints (operating voltage, peak current, logic voltage, bus protocols) with zero hallucination.
  4. Interactive BOM & One-Click Sourcing: Resolves complex bills of materials into live purchasable inventory.
  5. Server-Authoritative PayPal Orders v2 Agentic Commerce: Implements server-side integer-cent pricing, 15-minute atomic inventory reservation leases, idempotency protection, and automated stock capture upon approval.

How We Built It

  • Frontend: Next.js 15 App Router, React 19, TypeScript, Tailwind CSS, Lucide Icons, and @paypal/react-paypal-js.
  • Backend & APIs: Next.js Route Handlers with atomic database transactions, integer-cent currency calculations, and HMAC SHA-256 webhook signatures.
  • AI Vision: Google Gemini 3.5 Multimodal via official @google/genai SDK with multi-model fallback resilience.
  • Database: Neon Serverless PostgreSQL with Prisma ORM.
  • Testing & Production: 80 automated unit/integration tests with Vitest, deployed live on Render with Cloudflare Edge CDN.

Challenges We Overcame

  • Zero Price Tampering: Ensuring clients can never modify prices, quantities, or currency on the frontend by enforcing strictly server-authoritative integer-cent calculations.
  • Zero Hallucination Compatibility: Guaranteeing that AI vision findings never override hard electrical physics—authoritative datasheet constraints always take absolute precedence.
  • Atomic Inventory Leasing: Implementing 15-minute reservation leases to prevent double-spending or race conditions during high-concurrency checkouts.

Accomplishments That We're Proud Of

  • Passing 80/80 comprehensive unit and integration tests verifying zero pricing discrepancies, race condition prevention, and strict compatibility evaluation.
  • Flawless end-to-end integration from photo upload to authorized PayPal payment in under 2 minutes.

Built With

Share this project:

Updates

Submission history