CROP

Platform Overview

CROP architecture and how the pieces fit together

Platform Overview

CROP is a parts lookup platform built as a microservices ecosystem. Here's how the main components connect:

Architecture

┌─────────────────────────────────────────────────────────┐
│                      Clients                             │
│   CROP Front (Next.js)  │  Admin Panel  │  CROP Form    │
└────────────┬────────────┴───────┬───────┴───────┬───────┘
             │                    │               │
             ▼                    ▼               ▼
┌─────────────────────────────────────────────────────────┐
│                   Cloudflare / Vercel                     │
│              (CDN, DNS, Edge Functions)                   │
└────────────┬────────────────────┬───────────────────────┘
             │                    │
             ▼                    ▼
┌──────────────────────┐  ┌──────────────────────┐
│   Parts Services     │  │  Delivery Services   │
│  (GCP Cloud Run)     │  │  (GCP Cloud Run)     │
│                      │  │                      │
│  ├─ Search Service   │  │  ├─ UPS Integration  │
│  ├─ Catalog Service  │  │  └─ Rate Quoting     │
│  ├─ Payment Service  │  │                      │
│  ├─ User Service     │  └──────────────────────┘
│  └─ Analytics        │
└──────────┬───────────┘


┌──────────────────────┐  ┌──────────────────────┐
│    Databases         │  │   AI/ML Pipeline     │
│                      │  │                      │
│  ├─ MongoDB Atlas    │  │  ├─ PDF Parser       │
│  ├─ Typesense        │  │  ├─ CLIP/Embeddings  │
│  └─ Weaviate         │  │  ├─ RAG Pipelines    │
│                      │  │  └─ Schematics ML    │
└──────────────────────┘  └──────────────────────┘

Key Flows

  1. User enters search query in CROP Front
  2. Request goes to Search Service (Typesense-backed)
  3. Results include parts data, images, pricing
  4. Clerk JWT authenticates dealer-specific pricing

Order Flow

  1. User adds parts to cart
  2. Payment Service handles Stripe checkout
  3. Delivery Service quotes shipping via UPS API
  4. Order confirmation and tracking

Data Ingestion

  1. PDF Parser extracts parts from manufacturer catalogs
  2. CLIP service generates image embeddings
  3. Data flows into MongoDB and Typesense indexes
  4. Admin panel provides data quality monitoring

Authentication

All services use Clerk for authentication:

  • Frontend: Clerk React SDK with JWT tokens
  • Backend: JWT verification middleware
  • Role-based access: admin, dealer, user

See Authentication docs for details.

On this page