Spaces gives Hack Clubbers a development environment in the browser, so anyone can build projects no matter what computer they have. Each space is its own cloud machine running one of eight tools: VS Code, Blender, KiCad, FreeCAD, Onshape, Godot, LÖVE or Ren'Py. Files stay in the space between sessions.
It runs at spaces.hackclub.com. Spaces is a Hack Club project maintained by Wally, and previously by Ivie Fonner and Arnav.
The website and the API deploy to Vercel from this repo. Every space is a Vercel Sandbox: a small virtual machine whose disk is kept when it stops. A sign-in server inside each space only lets people in with a one-time ticket from the dashboard. Data lives in PostgreSQL.
docs/architecture.md explains the pieces, the space types and how signing in works.
You need Node.js 24, PostgreSQL (or Docker, to use the included docker-compose.yml), and a separate Vercel project to create sandboxes in.
cp .env.example .env # then fill it in
docker compose up -d # optional: a local PostgreSQL
npm install
npm run db:migrate
npm run db:seed # sample users, spaces and roles
npm run dev # API on http://localhost:3000, website on http://localhost:5173CONTRIBUTING.md has the details: signing in as a sample user, running the tests, and the code style.
| Folder | What it is |
|---|---|
apps/api |
The Express API, its tests, and the database migrations and seeds |
apps/web |
The website (Svelte 5 and Vite), including the LÖVE playground |
apps/space-runtime |
What runs inside a space: the sign-in servers and the files that build each space's image |
docs |
Architecture, the API reference and operations |
| Command | What it does |
|---|---|
npm run dev |
Migrate, then run the API and website with reload |
npm test |
Run the API and website tests |
npm run lint, npm run format, npm run typecheck |
Check and format the code |
npm run build |
Build the website |
npm run db:migrate, db:rollback, db:seed, db:make |
Manage the database |
