Quickstart
Using hosted Virvi? Sign in at virvi.io and skip to Next steps.
Option 1: Docker (recommended)
You need Docker with Compose and openssl.
git clone https://github.com/virvi-xr/virvi.gitcd virvi
# Secrets for the Compose file (it reads .env in this folder)printf 'JWT_SECRET=%s\nPOSTGRES_PASSWORD=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 16)" > .env
# Build and start Postgres + Virvidocker compose -f docker-compose.single.yml up -d --build
# Check it (wait for the build and first start)curl -s http://localhost:3010/api/healthOpen http://localhost:3010 and sign up. The first account becomes the instance admin.
This works at localhost:3010. To serve it at your own address, see Your own domain.
Option 2: Local development
You need Node.js 20 or newer, pnpm 9 (corepack enable) and Docker (for Postgres).
git clone https://github.com/virvi-xr/virvi.gitcd virvi
# Postgres, Redis and MinIOdocker compose -f docker-compose.dev.yml up -d
# Install and build every packagepnpm installpnpm turbo build
# Create the database tables (once, and again after schema changes)cd apps/serverDATABASE_URL="postgresql://vlm:vlm_dev@localhost:5432/vlm" npx drizzle-kit push
# Start the API server on :3010 (restarts on changes)DATABASE_URL="postgresql://vlm:vlm_dev@localhost:5432/vlm" \JWT_SECRET="dev-secret" \pnpm devIn another terminal, start the dashboard on http://localhost:3000:
cd apps/webNEXT_PUBLIC_API_URL=http://localhost:3010 \NEXT_PUBLIC_WSS_URL=ws://localhost:3010 \pnpm devThe server doesn’t create tables on its own outside Docker: run drizzle-kit push first, or every request fails.
Option 3: A cloud host
The repo has files for Railway (.railway/railway.ts), Render (render.yaml) and Fly.io (fly.toml). Each needs a Postgres database and a few variables. See Where to run it.
Next steps
- Core Concepts: scenes, presets and elements.
- Images & Video and 3D Models: upload what your scene will show.
- Decentraland Setup: connect a Decentraland scene.
- Hyperfy Setup: connect a Hyperfy world.