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 22.12+ - 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
--dev. For a deterministic next step, run:
Method B: Direct CLI Installation
If you have a Weaverse Project ID:pilot, naturelle, aspen, maison
Method C: GitHub Clone
For developers who want git history:Configuration
Required Environment Variables
Getting API Tokens
For stores on a Shopify plan: Install the Hydrogen sales channel (https://apps.shopify.com/hydrogen), create one Hydrogen storefront project, then runnpx shopify hydrogen env pull. If the CLI cannot pull yet, copy values from Hydrogen sales channel → Storefront Settings → Environments and variables.
For development stores or stores without a Shopify plan: Install the Headless sales channel (https://apps.shopify.com/headless), copy the Storefront API values, and add them to .env manually or give them to your AI agent to handle.
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 22.12+ 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
.envfile 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:Development Workflow
-
Create component in
app/sections/orapp/components/ -
Define schema with
createSchema()and configurable properties -
Register it in
app/weaverse/components.tsby adding the module to thecomponentsarray: -
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