# vaur.io publishing guidelines

**Version 1.0.** vaur.io hosts browser games for free. Every game gets its own address, `https://<your-game>.vaur.online/`, and a store page in the vaur.io library. Any language, engine or framework is fine, and so is any amount of AI help. You just say honestly how the game was made.

This document is written for both people and AI coding assistants. You can paste the whole thing into ChatGPT, Claude, Gemini or any other assistant together with your game idea or project, and ask it to build or convert the game to follow these rules.

## How publishing works

1. **Sign in** with Google or Microsoft, and **apply as a developer** (takes a minute).
2. In the **Studio**, create a game and pick its hosting type: **Static** or **Container**.
3. **Upload a .zip** of the game and fill in the store page (title, short description, description in Markdown, tags, images, vibe level).
4. **Submit for review.** An automatic pre-screen runs first, then a moderator plays the game. You can talk with the moderator in the conversation panel.
5. When it is approved, the game goes live at `https://<your-game>.vaur.online/`. Later updates go through the same review while the approved version stays live.

## Content guidelines {#content-guidelines}

These are common sense. A game that breaks them is refused and cannot be resubmitted.

- **No sexual content or pornography.**
- **Nothing that sexualises, endangers or harms children**, in any form. This is reported to the authorities.
- **No hate, harassment or targeting** of real people or groups.
- **No realistic graphic violence against real people**, no glorifying real-world atrocities, terrorism or self-harm. Ordinary game violence (fantasy, cartoon, action) is fine.
- **No malware or abuse:** no crypto miners, phishing, fake login pages, credential collection, spam, attacks on other services or hidden tracking.
- **No real-money gambling** and no scams.
- **Only content you have the rights to:** your own code, art, music and text, or properly licensed material.
- **Be honest about AI.** Pick the vibe level that matches how the game was made: Handmade, Assisted, Blended, Vibed or Pure vibe. Every level is welcome.
- **Respect players' privacy.** Don't collect personal data. If the game stores anything beyond the browser, say so on the store page.

## Choose a hosting type

| | **Static** | **Container** |
|---|---|---|
| What it is | HTML, CSS and JavaScript files only | Your own server in a Docker container |
| Good for | Clickers, puzzles, canvas/WebGL/WASM games, Unity WebGL and Godot Web exports | Multiplayer, WebSockets, server logic |
| Zip must contain | `index.html` at the root | `Dockerfile` at the root |
| Price | **Always free** | Free during beta |
| Sloplight (front page spotlight) | No | Yes |

If the game does not need a server, choose **Static**. It's simpler, free, and starts instantly.

## Static games {#static-games}

**Requirements**

- `index.html` is at the **root of the zip**, not inside a folder.
- All paths are **relative** (`./game.js`, `assets/hero.png`). No links to `localhost`, your own machine or absolute file paths.
- Everything the game needs is in the zip. No server-side code: PHP, Node or Python files will not run.
- Saving progress: use `localStorage` or `IndexedDB`. Each game has its own origin, so its data is not shared with other games.
- Limits: 50 MB zip, 300 MB unpacked, 5000 files.
- Supported out of the box: `.wasm`, `.data` (Unity/Emscripten), `.mjs`, images, audio and fonts.

**Zip layout**

```text
my-game.zip
├── index.html
├── style.css
├── game.js
└── assets/
```

**Test locally** from the folder that contains `index.html`:

```bash
python -m http.server 8080
```

Then open `http://localhost:8080/`. Opening `index.html` directly from disk is not enough, because many browsers block loading files that way.

## Container games {#container-games}

Any language works (Node.js, Python, .NET, Go, Rust, Java, Nginx…), as long as the result is **one Linux/amd64 Docker image** that serves a browser game on **one HTTP port**.

**Hosting contract**

| ID | Requirement |
|---|---|
| C1 | `Dockerfile` at the **root of the zip**; builds for `linux/amd64` |
| C2 | Starts by itself with `CMD` / `ENTRYPOINT`; no manual commands after start |
| C3 | Listens on **`0.0.0.0:8080`** |
| C4 | The playable game is served at **`GET /`** |
| C5 | **`GET /healthz`** returns HTTP 200 with body `ok`, also when nobody is playing |
| C6 | Pages, API and WebSockets use the **same host and port**. Use relative URLs and build the WebSocket URL from `location` (`wss://` on HTTPS) |
| C7 | **No hard-coded** `localhost`, `127.0.0.1`, LAN IPs or dev ports in browser code |
| C8 | Everything is built into the image; nothing is downloaded or installed when the container starts |
| C9 | **One container only.** No Docker Compose, no separate database or Redis container |
| C10 | Runs within the chosen tier (below); no busy simulation when there are no players |
| C11 | **Reconnects** after a dropped connection and resyncs the game state |
| C12 | No privileged mode, Docker socket, host files, root requirement or secrets |

**Port 8080 examples:** Node `server.listen(8080, "0.0.0.0")` · ASP.NET Core `ASPNETCORE_URLS=http://0.0.0.0:8080` · Python `uvicorn app:app --host 0.0.0.0 --port 8080` · Nginx `listen 8080;`

**Resource tiers**

| Tier | CPU | Memory | For |
|---|---:|---:|---|
| **S** | 0.5 vCPU | 1 GiB | default, most games |
| **M** | 1 vCPU | 2 GiB | multiplayer with server logic |
| **L** | 2 vCPU | 4 GiB | heavy simulation |

Design for **S** unless you have a real reason not to.

**Sleep and wake-up:** an idle game is suspended after a few minutes and woken up when the next player arrives. Memory may be restored, but **open connections are not**. Your client must reconnect, and the server must not assume that timers kept running while it slept. vaur.io does not provide a database, cloud saves or secret storage. Keep shared state in memory or use `localStorage` on the client, and accept that a new version or a restart can reset server state.

**Network:** outgoing internet access from the container is blocked. Don't call external APIs or download anything at runtime.

**Zip layout**

```text
my-game.zip
├── Dockerfile
├── .dockerignore
├── README.md
└── <source code, lockfiles, build config>
```

Don't include `.git/`, `node_modules/`, virtual environments, caches or `.env` files. The image is built from source on our side.

**Test locally:**

```bash
docker build --platform linux/amd64 -t vaurio-test .
docker run --rm -p 8080:8080 --cpus=0.5 --memory=1g vaurio-test
curl -i http://localhost:8080/healthz
```

Expect `200 ok`, then play at `http://localhost:8080/`. For multiplayer, open two browser windows, then stop and start the server and check that both clients reconnect.

**Sloplight (optional):** container games can be featured on the Sloplight channel, where everyone plays the same game for 55 minutes and it then changes. On the channel your game runs inside a frame, so don't block framing. Two minutes before the change, and again when it happens, the channel sends your page a message you can use to wrap up a round:

```js
addEventListener("message", (e) => {
  if (e.data?.source !== "vaur.sloplight") return;
  if (e.data.type === "ending") showRoundEndsIn(e.data.secondsLeft); // about 120
  if (e.data.type === "ended") saveAndSayGoodbye();
});
```

WebSocket origin checks keep working as usual: behind vaur.online, the `Origin` of your own page always matches the `Host` your server sees.

## Store page

- **Title** and a **short description** (one line, up to 90 characters) are shown in the library.
- The **description** supports Markdown: headings, lists, **bold**, links and tables. Raw HTML is not allowed.
- **Tags** help players find the game. Mark it as **Multiplayer** if it is one.
- A **cover image** (16:10 works best) and up to **6 screenshots**, each PNG, JPEG, GIF or WebP, max 5 MB.
- The **vibe level**, plus an optional note on where AI was used.

## Instructions for AI coding assistants

If you are an AI assistant and a user gave you this document:

1. Ask (or decide from the project) whether the game needs a server. If not, build a **Static** game. Otherwise build a **Container** game.
2. Follow every requirement above for the chosen type. For an existing project, keep its gameplay and look, and change only what hosting requires.
3. Never add secrets, API keys, external databases, analytics or calls to outside services.
4. Produce a project folder that can be zipped as-is, with `index.html` (Static) or `Dockerfile` (Container) at its root, plus a short `README.md` covering controls, how to run it, the chosen tier and known limitations.
5. Follow the content guidelines.
6. If you can run the tests above, run them. If you cannot, say clearly that the result is untested. Never claim it works without testing.
7. If the project is a native desktop game with no web build, explain what porting it needs. Docker alone does not make it playable in a browser.
8. At the end, tell the user which hosting type and tier to pick in the vaur.io Studio, and suggest a title, a one-line description, tags and an honest vibe level for the store page.
