Understanding the Cart Architecture

A look at how Cart 2.0's modular layers fit together and what each one does.

Last updated About 2 months ago

  • Time — 10 minutes

  • Difficulty — Intermediate

What You'll Learn: A solid understanding of Cart 2.0's layered architecture, from the customer-facing storefront down to the API, so you can make informed decisions about which layers to adopt based on your team's setup and business needs.

Prerequisites:

  • An active Upmind account.

  • Basic familiarity with Cart 2.0.

  • A general understanding of how storefronts and checkout flows work.

  • Some awareness of frontend concepts (helpful but not required for Beginner readers).

The modular adoption philosophy

Cart 2.0 is designed to be flexible and modular. You don’t have to commit to a fully hosted or fully custom setup all at once. Instead, you can adopt Upmind’s commerce stack in layers, at your own pace.

What this means in practice

  • Use the hosted Cart and Portal when you want a complete, production-ready storefront and client area with fast launch and built-in payments, taxes, and scaling.

  • Adopt Client Vue and Upmind UI when you want to reuse Upmind's app shell and component set for a custom branded portal while still relying on Upmind logic.

  • Move to Headless with Vue composables and XState when you need full control over UI and flow but still want Upmind's commerce rules and orchestration.

  • Use the raw REST API if you need to integrate Upmind into an existing enterprise platform or centralised multi-brand system and are prepared to manage sequencing and state yourself.

Each step builds on the same underlying system.

Why this matters

  • Early-stage users can launch quickly.

  • Growing users can customise safely.

  • Mature teams can fully control UX

  • No migration is wasted work

This philosophy reduces long-term risk while accelerating time to revenue. Many customers mix approaches.

Example: Cart 2.0 for public sales and headless for enterprise portals.

The Upmind modular stack

  1. Top layer (Customer Browser): This is where buyers interact with your store and complete their purchase. Depending on your setup, this can be through the ready-made cart and checkout, or a fully custom user interface (UI). Regardless of approach, customers experience a consistent and guided buying journey.

  2. Experience layer: This layer defines how the cart and checkout are presented to customers, allowing teams to choose the level of control that best fits their needs.

  • Ready-made Cart & Checkout provides a complete, out-of-the-box storefront and checkout flow with minimal setup.

  • Custom UI (Headless) enables full control over the user experience while reusing Upmind’s commerce logic.

  1. Upmind Client (Vue): UI foundation that is used by the cart. It provides consistent components, styling patterns, and interaction behaviour, ensuring a unified experience across all customer-facing surfaces.

  2. Headless Logic Layer: This layer handles core checkout orchestration using Vue composables and XState. It manages state, flow progression, validation, and transitions independently of how the UI is rendered.

  3. Upmind API: The central source of truth for products, pricing, cart state, orders, payments, taxes, and customer data. All UI layers interact with the same APIs to ensure consistent and reliable commerce behaviour.

  4. UI Metadata: Configuration that controls layout, visibility, copy, and behaviour across all UI surfaces. This allows teams to adjust and evolve the user experience without making code changes.

Summary table

Options

What it is

Setup Effort

UX Flexibility

Typical Use

Cart

Fully hosted, ready-made storefront and checkout with Upmind-managed UI and flow.

Low

Medium

Launch a complete checkout fast with minimal setup.

Upmind UI

The shared visual layer used by the cart, driven by UI metadata.

Low–Medium

Medium–High

Control layout, copy, visibility, and branding without code.

Client Vue

Upmind’s frontend client framework that renders cart, and UI states.

Medium

High

Extend or embed Upmind UI in more tailored experiences.

Headless

Full control over checkout UI using Vue composables and XState logic.

High

Very High

Build a fully custom checkout and product flow.

API

Direct access to all commerce primitives (products, pricing, cart, orders, payments).

Very High

Maximum

Deep platform integrations or non-UI use cases.