Installation
Get Weaverse installed and running in your Shopify Hydrogen project quickly and easily.
🚀 New to Weaverse? Try our 5-Minute Quickstart for the fastest setup experience.
Prerequisites
- Node.js 18+ - Download here
- A Shopify store - Development store or paid plan
- Basic terminal knowledge - For running commands
Installation Methods
Method A: Via Weaverse App (Recommended)
Best for: New users, quick setup, guided experience
- Install Weaverse App: Visit https://apps.shopify.com/weaverse
- Create Project: Open app → "Get Started" → Choose theme (Pilot recommended)
- Run Generated Command: Copy and run the custom CLI command provided
Example command:
npx @weaverse/cli@latest create --template=pilot --project-id=abc123 --project-name=my-store
This automatically downloads the theme, installs dependencies, configures environment, and starts development server.
Method B: Direct CLI Installation
If you have a Weaverse Project ID:
# Create projectnpx @weaverse/cli@latest create --template=pilot --project-id=your-project-id --project-name=my-store
# Start developmentcd my-store && npm run dev
Available templates: pilot
, naturelle
, minimal
Method C: GitHub Clone
For developers who want git history:
git clone https://github.com/Weaverse/pilot.git my-storecd my-store && npm installcp .env.example .env# Edit .env with your configurationnpm run dev
Configuration
Required Environment Variables
# Your Shopify store domain (without https://)PUBLIC_STORE_DOMAIN=your-store.myshopify.com
# Storefront API tokenPUBLIC_STOREFRONT_API_TOKEN=your_storefront_api_token
# Weaverse project IDWEAVERSE_PROJECT_ID=your-weaverse-project-id
# Session secretSESSION_SECRET=your-random-session-secret
Getting API Tokens
For paid stores: Install Hydrogen app (https://apps.shopify.com/hydrogen) then run npx shopify hydrogen env pull
For development stores: Use Headless app (https://apps.shopify.com/headless) or create a custom app with Storefront API access
Session Secret: Generate with node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
Verification
After installation:
- Start server:
npm run dev
- Check storefront: Visit
http://localhost:3456
- Access Studio: Go to
https://studio.weaverse.io/projects/your-project-id
- Test editing: Make changes in Studio and verify they appear
Common Issues
CLI Command Fails
- Ensure Node.js 18+ installed:
node --version
- Clear npm cache:
npm cache clean --force
Studio Preview Not Loading
- Verify dev server runs on port 3456
- Check browser console for errors
- Ensure no firewall blocks the port
Environment Variables Not Working
- Ensure
.env
file is in project root - Restart dev server after changes
- Check variable names are exact (case-sensitive)
Component Development Basics
After installation, you can start building custom sections. Here's a simple example:
// app/sections/Hero.tsximport { forwardRef } from 'react';
export type HeroProps = { heading: string; description: string; className?: string;};
export let schema = { title: 'Hero Section', type: 'hero', settings: [ { group: 'Content', inputs: [ { type: 'text', name: 'heading', label: 'Heading', defaultValue: 'Welcome' }, { type: 'textarea', name: 'description', label: 'Description' } ] } ]};
export let Hero = forwardRef<HTMLElement, HeroProps>((props, ref) => { let { heading, description, className = '' } = props; return ( <section ref={ref} className={`py-12 px-4 max-w-7xl mx-auto ${className}`}> <div className="text-center"> <h1 className="text-4xl font-bold">{heading}</h1> <p className="mt-6 text-lg text-gray-600">{description}</p> </div> </section> );});
Development Workflow
- Create component in
app/sections/
orapp/components/
- Define schema with configurable properties
- Register in
weaverse.config.ts
- Test in Studio at
https://studio.weaverse.io/projects/your-project-id
Next Steps
- Core Concepts - Understand how Weaverse works
- Development Guide - Build custom sections
- API Reference - Complete API documentation