Skip to main content

How Weaverse Works

Weaverse seamlessly integrates with Shopify Hydrogen to provide a visual page building experience without compromising developer control or performance.

Architecture Overview

The Weaverse Workflow

1. Developer Experience

Code Components Once
Register Components Each component module is imported as a namespace (so Weaverse can read both the default export and its schema) and added to the components array in app/weaverse/components.ts:

2. Merchant Experience

Visual Editing
  • Merchants drag components onto pages
  • Real-time preview across all devices
  • Intuitive settings panels for customization
  • No code required
Content Management
  • Create and manage pages visually
  • Organize content with sections and components
  • Preview changes before publishing

3. Runtime Performance

No Page-Builder Runtime for Shoppers
  • Pages are server-rendered by Hydrogen on each request, using the page data loaded from Weaverse
  • The Studio editing bridge only loads in design mode, not on the live storefront
  • Only your component logic ships to browsers
Optimized Builds
  • Automatic image optimization
  • Code splitting by route
  • Server-side rendering with Hydrogen

Key Concepts

Components vs Sections

Components are reusable UI elements:
  • Buttons, cards, forms
  • Configured through props
  • Can be used multiple times per page
Sections are page-level building blocks:
  • Headers, hero areas, footers
  • Container multiple components
  • Define page structure

Schema-Driven Configuration

Every Weaverse component includes a schema that defines:
This schema automatically generates:
  • Visual editor controls
  • Validation rules
  • Default values

Data Flow

  1. Build Time: Schemas define available components
  2. Edit Time: Merchants configure component instances
  3. Request Time: Hydrogen loads the page data from Weaverse and server-renders the HTML
  4. Hydration: Interactive components become functional

Integration with Hydrogen

Weaverse leverages Hydrogen’s architecture:
  • React Router v7: Route modules with loaders and type-safe route config
  • Streaming SSR: Fast initial page loads with deferred non-critical data
  • Shopify APIs: Native product and cart integration
  • Performance: Optimized for Core Web Vitals

Development Modes

Local Development

  • Hot reload for instant feedback
  • Weaverse Studio runs alongside your app
  • Real-time component updates

Production

  • Components are pre-built and optimized
  • Merchants edit through hosted Weaverse Studio
  • Changes deploy through your CI/CD pipeline

Benefits

For Developers:
  • Full control over component logic
  • Modern React development experience
  • No vendor lock-in
  • Standard deployment workflows
For Merchants:
  • Visual page building
  • No technical knowledge required
  • Real-time preview
  • Mobile-responsive editing
For Customers:
  • Fast loading pages
  • Mobile-optimized experiences
  • Consistent brand presentation
  • Accessible by default

Next Steps