Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

720 B
Raw Blame
#!/bin/bash

echo " three.ws Forge, Production Launcher"
echo "================================"
echo

# Check Node.js
if ! command -v node &> /dev/null; then
    echo "[ERROR] Node.js is not installed or not in PATH."
    echo "        Download it from https://nodejs.org"
    exit 1
fi

# Install dependencies if node_modules is missing
if [ ! -d "node_modules" ]; then
    echo "[1/2] Installing dependencies..."
    npm install || { echo "[ERROR] npm install failed."; exit 1; }
    echo
fi

# Build if out/ is missing
if [ ! -d "out" ]; then
    echo "[2/2] Building the app..."
    npm run build || { echo "[ERROR] Build failed."; exit 1; }
    echo
fi

# Launch
echo "Launching three.ws Forge..."
npm run preview