Skip to main content

Build Your First Weaverse Hydrogen Store

This tutorial walks through building a modern Shopify Hydrogen storefront with visual customization capabilities. By the end, you’ll have a live store that you and your team can edit through Weaverse Studio.

What You’ll Build

  • Modern Shopify storefront with React Router v7 and React 19
  • Visual editing capabilities through Weaverse Studio
  • Custom components with schema-driven configurations
  • Production-ready deployment on Shopify Oxygen

Prerequisites

Before starting, ensure you have:
  • Node.js 22.12 or newer (required by the current Pilot project; check with node --version)
  • Shopify store (any plan, development store works fine)
  • Basic knowledge of React, TypeScript, and Shopify concepts
  • Time to configure your Shopify credentials, customize the theme, and deploy it
New to these technologies? Review these resources first:

Part 1: Quick Start (5 minutes)

Install Weaverse Studio

  1. Go to Shopify App Store: Visit Weaverse on Shopify App Store
  2. Install the app on your Shopify store
  3. Open Weaverse from your Shopify admin dashboard

Create Your First Project

  1. Click “Create Project” in Weaverse Studio
  2. Choose the Pilot theme (recommended starter theme)
  3. Name your project (e.g., “My Store”)
  4. Click “Create”
Weaverse Studio Project Creation 🎉 Success! You now have a Weaverse project with the Pilot theme. You can see the visual editor with pre-built sections ready to customize.

Part 2: Local Development Setup (10 minutes)

Set Up Your Development Environment

  1. Clone the Pilot theme:
  2. Install dependencies:
  3. Set up environment variables: Create a .env file in your project root:
    Update .env with your store details:
    Where to find these values:
    • WEAVERSE_PROJECT_ID: Copy from Weaverse Studio project settings
    • PUBLIC_STORE_DOMAIN and PUBLIC_STOREFRONT_API_TOKEN:
      • Stores on a Shopify plan: install the Hydrogen sales channel (https://apps.shopify.com/hydrogen), create one Hydrogen storefront project, then run npx shopify hydrogen env pull or copy values from Hydrogen sales channel → Storefront Settings → Environments and variables.
      • Development stores or stores without a Shopify plan: install the Headless sales channel (https://apps.shopify.com/headless), then copy the Storefront API values into .env or give them to your AI agent to handle.
    • SESSION_SECRET: Generated automatically by the Weaverse CLI/agent setup. For manual setup, generate with openssl rand -hex 32.
  4. Start the development server:
    Your store will be available at: http://localhost:3456

Connect to Weaverse Studio

  1. Open Weaverse Studio in another browser tab
  2. Go to Project Settings → Preview URL
  3. Set Preview URL to http://localhost:3456
  4. Save changes
Change or manage preview control in Weaverse Studio Manage previews dialog with local development URL ✅ Checkpoint: You should now see your local development server in Weaverse Studio’s preview panel. Changes in Studio should appear immediately in your local site.

Part 3: Understanding Weaverse Architecture (5 minutes)

How Weaverse Works

Weaverse Studio: Visual editor where you and your team create content Your Code: React components with schemas that define what’s editable Production: Shopify Oxygen hosting your fast, static-generated site

Key Concepts

Components: React components that render sections of your store Schemas: Define what users can edit in Studio (text, images, colors, etc.) Loaders: Fetch data from Shopify (products, collections, etc.) Studio: No-code visual editor for content creators

Part 4: Build Your First Component (15 minutes)

Let’s create a customizable Hero Banner that showcases your products.

Create the Component

  1. Create the component file:
  2. Add the Hero Banner component:

Register the Component

  1. Add to components registry:

Test Your Component

  1. Go to Weaverse Studio
  2. Click “Add Section”
  3. Select “Hero Banner”
  4. Customize the content using the settings panel
  5. Upload a background image
  6. See changes appear instantly in your local preview
Hero Banner in Weaverse Studio 🎯 Achievement Unlocked: You’ve created your first Weaverse component with full visual editing capabilities!

Part 5: Advanced Features (10 minutes)

Add Dynamic Product Data

Let’s enhance our Hero Banner to feature a specific product.
  1. Create a product loader:
  2. Update component to use product data:
  3. Add product selector to schema:

Performance Optimization

  1. Add caching to your loader:
✨ Pro Tips:
  • Always cache Shopify API calls for better performance
  • Use TypeScript for better development experience
  • Test components with different data states (empty, loading, error)

Part 6: Deployment (5 minutes)

Deploy to Shopify Oxygen

  1. Build your project:
  2. Deploy using Shopify CLI:
  3. Follow the prompts to connect your Shopify store
  4. Update Weaverse Studio:
    • Go to Project Settings
    • Update Preview URL to your Oxygen deployment URL
    • Save changes

Production Checklist

Before going live, ensure:
  • Environment variables are set correctly
  • Images are optimized and loading properly
  • All sections work as expected
  • Mobile responsive design looks good
  • Performance is measured on the deployed site (run Lighthouse and check Core Web Vitals)
  • SEO metadata is configured

Go Live

  1. Set your Oxygen deployment as your primary domain in Shopify admin
  2. Test thoroughly on the live site
  3. Train your team on using Weaverse Studio
🚀 Congratulations! Your Weaverse Hydrogen store is now live and ready for visual editing.

Next Steps

Expand Your Store

Add More Components:
  • Product grids with filtering
  • Customer testimonials
  • Newsletter signup forms
  • Collection showcases
Advanced Features:
  • Multi-language support
  • B2B customer groups
  • Advanced search and filtering
  • Custom checkout experiences
Performance Optimization:
  • Image optimization strategies
  • Caching best practices
  • Core Web Vitals improvements

Learning Resources

Common Issues

Component Not Showing in Studio?
  • Check component is exported correctly
  • Verify schema syntax
  • Ensure component is registered in components.ts
Preview Not Updating?
  • Check development server is running
  • Verify Preview URL in Studio settings
  • Clear browser cache
Deployment Issues?
  • Ensure all environment variables are set
  • Check build logs for errors
  • Verify Shopify app permissions

What You’ve Accomplished

In just 45 minutes, you’ve: ✅ Built a modern Shopify storefront with React Router v7
✅ Created custom components with visual editing capabilities
✅ Connected Shopify data dynamically to your components
✅ Deployed to production on Shopify Oxygen
✅ Set up a workflow for continuous development and content updates
Your store is now ready for your team to manage visually through Weaverse Studio, while you focus on building amazing shopping experiences. Ready to build something amazing? Join our Slack community and show us what you create!