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 Onceschema) 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
- 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
- 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
- Headers, hero areas, footers
- Container multiple components
- Define page structure
Schema-Driven Configuration
Every Weaverse component includes a schema that defines:- Visual editor controls
- Validation rules
- Default values
Data Flow
- Build Time: Schemas define available components
- Edit Time: Merchants configure component instances
- Request Time: Hydrogen loads the page data from Weaverse and server-renders the HTML
- 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
- Visual page building
- No technical knowledge required
- Real-time preview
- Mobile-responsive editing
- Fast loading pages
- Mobile-optimized experiences
- Consistent brand presentation
- Accessible by default
Next Steps
- Learn about Project Structure
- Start building with the Development Guide
- Explore the API Reference for advanced usage