White-Label E-Commerce Platform
Fashion Commerce Platform
A white-label e-commerce platform for established fashion houses: one shared codebase, one deployment per brand, each dressed through a brand pack rather than a fork. Israel-first, with Hebrew and RTL, shekel pricing and VAT, on Medusa 2.0, a GraphQL BFF and PostgreSQL. In active development.
Project Overview
Fashion Commerce Platform is an e-commerce platform for established fashion houses, multi-generational businesses with decades of trading behind them rather than startups. It is built once and deployed once per brand. Every house runs its own single-tenant installation from the same shared code, and nothing in that code belongs to any one of them. It is ultra-premium by design and Israel-first: Hebrew and right-to-left, prices in shekels with VAT included, and local payment and delivery providers.
A brand is data, never a fork. Each deployment receives its brand as a brand pack: a palette and typefaces, a name, logo and metadata, copy in the message catalogues, and its own catalogue of products. Shared code may not contain a brand literal of any kind, so changing a brand by editing shared files counts as a fork and is not allowed. The design system enforces this mechanically. Components use only role-named colour tokens (surface, ink, accent) that map onto whichever palette is active, a lint rule rejects literal and palette-named colours in class names, and a contrast gate in CI checks every text colour against every surface in every theme at WCAG AA before a palette can ship. The platform carries its own default luxury theme of obsidian, charcoal and gold, which a brand pack replaces.
The storefront never talks to the commerce engine, the CMS or search directly. Every read goes through a GraphQL BFF built on GraphQL Yoga, so caching, currency, locale and authorisation are enforced in one place. Behind it, Medusa 2.0 on PostgreSQL and Redis is the order and inventory system, with Sanity for editorial content, Algolia for search and a Next.js 15 storefront to follow in later phases. The BFF already serves products, product lists, collections and navigation. It validates both its own arguments and Medusa's responses with Zod, refuses to show a price that is not VAT-inclusive, and requires alt text on every image. Its unit tests cover 100% of statements and branches, and an integration suite of more than 50 tests runs it against a real Medusa and Postgres.
Money is never a float. Prices are integer agorot from end to end, held in a dedicated money package, with banker's rounding only at display time and BigInt taking over where a calculation would leave the safe-integer range. Medusa stores prices as decimals, so the single conversion between the two works on the decimal digits rather than on arithmetic, and it refuses rather than guesses: a fraction of an agora, an exponent form or a foreign currency throws instead of producing a plausible wrong number. The VAT rate is configuration with no default anywhere. Stock reservations are safe against overselling across processes: with Medusa's default in-memory lock, four separate processes racing for the last unit all got it, and with the lock moved to Redis exactly one wins. A race test checks that on every round.
Observability arrived before the storefront. OpenTelemetry traces follow a request from the BFF through Medusa into Postgres, and a redacting exporter strips secrets before any span leaves the process: request headers, publishable keys and SQL literals, each of which turned up in a real trace. Sentry reports errors from both services. The AWS platform (VPC, ECS Fargate, Aurora Serverless v2, ElastiCache, S3 and Secrets Manager) is written and validated in Terraform but deliberately not applied yet, so development runs on a zero-cost local stack with Cloudflare R2 for uploaded media. CI runs formatting, lint, type checks, tests, a dependency audit and Semgrep security scanning on every pull request, and the same suites run locally in Linux containers, so a local pass means a CI pass.
The build is driven by structured AI agent workflows against a binding, machine-readable architecture blueprint. Every stack choice, invariant and task, with its definition of done, is written down before any code is generated. Phases run strictly in order, and each change is reviewed against that written specification rather than against intuition. The commerce core, catalogue, inventory, BFF read path and design-system seam are in place, and the storefront comes next.
Architecture & Engineering
- Single-tenant by design: one deployment per brand from shared code, with each brand supplied as a brand pack
- Medusa 2.0 (TypeScript) as the order and inventory system, on PostgreSQL 16 and Redis
- GraphQL Yoga BFF as the storefront's only route to commerce, CMS and search, validated with Zod
- Turborepo and pnpm monorepo with shared money, contracts, design-token and config packages
- Semantic colour roles and themes on Tailwind v4, with a CI contrast gate and a lint ban on literal colours
- OpenTelemetry tracing and Sentry from the BFF through Medusa to Postgres, and AWS infrastructure in Terraform
Key Features & Highlights
- White-label theming: a brand pack replaces palette, type, name and logo without touching shared code
- Hebrew-first, right-to-left architecture that allows logical CSS properties only, enforced by lint
- Exact shekel pricing in integer agorot, VAT-inclusive, with the VAT rate held as configuration
- Stock reservations that cannot oversell under concurrency, proven by a multi-process race test
- Catalogue of per-size and per-colour variants, categories and collections, with colour-linked galleries
- Planned: the Next.js storefront, Israeli payment gateways with instalments, local carriers and pickup lockers
Technology Stack
- TypeScript
- Medusa 2.0
- GraphQL
- PostgreSQL
- Redis
- Terraform
Screenshots & Visual Artifacts
No screenshots available to display
Project Repository & Delivery
This repository is private due to client confidentiality, enterprise credentials, or proprietary intellectual property.