Live Site: teambuildgames.net
The office arcade — tiny browser multiplayer games for team calls. Open a room, share one link, and play Arena PvP, Overrun, Squid, or Road Madness with up to eight coworkers. Sign in to vote on the next game, upload a player avatar, and check out merch from the trophy shop.
- Framework: Astro 5 (server output) + React islands
- Games: Phaser 4 + Trystero WebRTC (P2P rooms) with optional Wix Realtime signaling
- Wix Integration: Wix Managed Headless — hosted and deployed via the Wix CLI
- Wix Business Solutions:
- Wix CMS (Data) — game catalog, likes, pitches, scores, merch orders, arena skins
- Wix Members — sign-in, avatars, owned skins
- Wix Media — avatar uploads, hosted game audio assets
- Wix Realtime — multiplayer signaling (
/api/signal,/api/rt-publish) - Wix Stores + Wix eCommerce — Score Tee merch, arena skin products, hosted checkout
- Wix Redirects — checkout redirect sessions
- Wix SEO — product and collection pages
- Styling: Tailwind CSS v4
- Language: TypeScript
- Deployment: Wix CLI (
wix build/wix release)
team-build-games/
├── public/ # Favicons, game screenshots, static assets
├── src/
│ ├── components/ # Layout, merch UI, game cabinets, like buttons
│ ├── game/ # Arena, Overrun, Squid, Road Madness (Phaser + net)
│ ├── lib/wix/ # Stores cart, checkout, CMS helpers, members
│ ├── pages/
│ │ ├── games/ # Per-game lobby and play pages
│ │ ├── shop/ # Merch product + checkout flow
│ │ └── api/ # Likes, avatars, checkout, signaling, scores
│ └── styles/
├── scripts/ # Optional Wix CLI helpers (e.g. arena skin products)
├── docs/ # Internal game and integration notes
├── .env.example # TURN relay, arena skin product IDs, media URLs
└── wix.config.json # Reference only — generated locally via init
- Node.js v20.11.0+ (project targets Node 24.x)
- A Wix account
- Wix CLI:
npm install -g @wix/cliImportant: All commands below must be run from inside the
team-build-games/folder, not the monorepo root.
- Sparse-clone just this folder from the monorepo:
git clone --filter=blob:none --sparse https://github.com/wix-incubator/headless-day.git
cd headless-day
git sparse-checkout set team-build-games
cd team-build-games- Install dependencies:
npm install- Log in and connect to your own Wix site:
wix login
npm create @wix/new@latest initThis provisions a new Wix site and writes a local wix.config.json (gitignored). Do not run wix init — that command does not exist.
-
Install Wix apps on your site: Wix Stores, Wix Members, and seed CMS collections / products as needed. Copy
.env.exampleto.env.localand set TURN credentials for cross-device WebRTC play (see comments in.env.example). -
Run locally:
npm run dev- Build and deploy:
npm run build
npm run release- Create a Wix Managed Headless project:
npm create @wix/new@latest -- headless - Add Astro 5 +
@wix/astro,@wix/astro-pages, Tailwind, Phaser, and Trystero - Wire Members for auth, Data for game metadata and likes, Stores/eCommerce for merch checkout, Realtime for signaling
- Deploy with
wix release
See Quick Start with the Wix CLI.
This is a Wix Headless project created for demonstration purposes only. Cloning or copying this repository is encouraged, but is done on the responsibility of the user.