Building a Multi-Vendor Fashion Marketplace with ERP and Biometric Sizing

Brands.online set out to build something ambitious: a fashion marketplace that connects brands directly with consumers and wholesale traders across Europe, while giving each brand its own branded storefront on a custom subdomain. This was not a simple multi-vendor shop. It was five interconnected systems that needed to work as one - consumer marketplace, branded storefronts, B2B wholesale ordering, multi-warehouse inventory management, and biometric avatar sizing.

The vision was clear: create a platform where a fashion brand could sign up, get their own subdomain storefront, sell to consumers and wholesalers, manage inventory across multiple warehouses, track production through delivery, and let customers virtually try on clothes using biometric data. Building each of these capabilities individually would be a significant project. Building them as a unified platform required enterprise-grade architecture and meticulous planning.

Project: brands.online

The Challenge

The core challenge was managing complexity without sacrificing usability. Five distinct user roles needed to coexist on the same platform, each with fundamentally different workflows and permissions. The data model had to support multi-tenancy (each brand's data isolated from others), cross-domain authentication (users moving between brand storefronts), and real-time inventory synchronisation across warehouses.

The five interconnected systems we needed to build:

Five user roles with distinct permissions and workflows:

Our Solution

We architected the platform as an enterprise multi-tenant system using React, TypeScript, and Supabase, with over 30 Edge Functions handling business logic at the edge. The multi-tenant architecture ensures each brand's data is isolated while sharing the underlying infrastructure for authentication, payments, and platform features.

Subdomain Storefronts

Each brand receives a custom subdomain ([brand].brands.online) that renders their products, branding, and content. The subdomain system uses dynamic routing to resolve the brand from the URL and serve the appropriate storefront configuration. Brands customise their logo, colour palette, featured collections, and landing page layout through their dashboard. Customers browsing a brand's subdomain see a fully branded experience, but the underlying cart, checkout, and authentication systems are shared across the platform. Cross-domain authentication means a customer who logs in on one subdomain stays authenticated when visiting another.

B2B Wholesale System

The wholesale system operates as a parallel commerce layer. Traders see different product views with quantity-based pricing tiers. Brands configure wholesale pricing separately from consumer pricing, with minimum order quantities and volume discounts. A Trader can place a bulk order spanning multiple product lines, and the system calculates tiered pricing automatically. Wholesale orders have their own fulfilment workflow, with packing lists optimised for bulk shipments rather than individual consumer orders.

Biometric Avatar Sizing

The biometric sizing system is one of the platform's most distinctive features. Customers enter their body measurements, and the system generates a virtual avatar showing how specific garments will fit their body type. The system supports five categories - Ladies, Gentlemen, Kids, Babies, and Pets - each with measurement sets appropriate to their category. Garment dimensions are mapped against the customer's measurements to predict fit, with visual indicators for areas that may be tight or loose. This feature directly addresses one of fashion e-commerce's biggest pain points: the high return rate caused by sizing uncertainty.

Multi-Warehouse Inventory and ERP

Brands with multiple offices or warehouses can manage independent stock levels for each location. The inventory system tracks stock counts per warehouse, with real-time synchronisation to prevent overselling. When stock needs to move between locations, a transfer request initiates an audited workflow: the request is created with quantities and justification, approved by the appropriate role, and tracked from origin departure to destination arrival. Every transfer is logged with full accountability.

The ERP layer tracks the entire product lifecycle from production to delivery. Brands can log production batches, assign stock to warehouses, track orders through fulfilment, and monitor delivery status. This gives brands complete visibility into their supply chain within a single platform rather than juggling spreadsheets and separate logistics tools.

Edge Functions Architecture

With over 30 Supabase Edge Functions, the platform's business logic runs at the edge for low-latency operations. Edge Functions handle pricing calculations, inventory checks, stock transfer approvals, subdomain resolution, webhook processing, email notifications, and analytics aggregation. This architecture keeps the frontend lean while ensuring complex business rules are enforced server-side where they cannot be bypassed.

The Results

Brands.online launched as a fully integrated fashion marketplace that serves brands, consumers, and wholesale traders from a single platform. The scope of what was delivered represents the equivalent of building five separate applications - unified under one architecture.

Technology Stack

TechnologyPurpose
React + TypeScriptType-safe frontend with multi-tenant component architecture
SupabaseMulti-tenant database, auth, storage, and Edge Functions runtime
Multi-Tenant ArchitectureData isolation per brand with shared infrastructure
Biometric Sizing EngineVirtual avatar generation with garment fit prediction
B2B Ordering SystemQuantity-based pricing, bulk orders, and wholesale catalogues
30+ Edge FunctionsServer-side business logic for pricing, inventory, and workflows
Cross-Domain AuthSeamless authentication across brand subdomains

The architectural decision to use Supabase Edge Functions as the business logic layer was critical. With five distinct user roles, multi-tenant data isolation, real-time inventory synchronisation, and cross-domain authentication all in play, keeping complex logic on the server ensures consistency and security. The frontend remains fast and focused on presentation, while Edge Functions handle the heavy lifting of pricing calculations, permission checks, and workflow orchestration.