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 Once2. 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
Zero Runtime Overhead- Components are pre-rendered at build time
- No client-side JavaScript for page building
- Only your component logic ships to browsers
- Automatic image optimization
- Code splitting by page
- 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
- TypeScript types
- Validation rules
- Default values
Data Flow
- Build Time: Schemas define available components
- Edit Time: Merchants configure component instances
- Runtime: Pre-rendered HTML serves to visitors
- Hydration: Interactive components become functional
Integration with Hydrogen
Weaverse leverages Hydrogen’s architecture:- React Router v7: File-based routing with type safety
- Server Components: Fast initial page loads
- 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