# Arcadible Manifest

The manifest describes your game: its identity, its store page, and how to build it. Most of its values are computed from files your project already has, so the store page is versioned and reviewed alongside your code.

A typical `arcadible.toml` is short:

```toml title="arcadible.toml"
[game]
id = "3f0c9a52-8d1e-4f7b-9a26-5b1c0e7d4a18"
handle = "star-drift"
version = "1.0.0"
genres = ["arcade", "action"]
audience = "everyone"
ai = "unused"
orientation = "landscape"
inputs = ["keyboard", "gamepad"]
visibility = "unlisted"
```

## Sources

The CLI builds the manifest by merging these sources, in order. A field set in a later source overrides the same field from an earlier one.

| # | Source | Provides |
| --- | --- | --- |
| 1 | `README.md` (or `arcadible.md` if present) | [`title`](https://developer.arcadible.com/references/arcadible-manifest#game.title), [`short_title`](https://developer.arcadible.com/references/arcadible-manifest#game.short_title), [`tagline`](https://developer.arcadible.com/references/arcadible-manifest#game.tagline), [`bio`](https://developer.arcadible.com/references/arcadible-manifest#game.bio), [`description`](https://developer.arcadible.com/references/arcadible-manifest#game.description) |
| 2 | `.arcadible/` | [`icon`](https://developer.arcadible.com/references/arcadible-manifest#game.icon), [`cover`](https://developer.arcadible.com/references/arcadible-manifest#game.cover), [`banner`](https://developer.arcadible.com/references/arcadible-manifest#game.banner), [`poster`](https://developer.arcadible.com/references/arcadible-manifest#game.poster), [`splash`](https://developer.arcadible.com/references/arcadible-manifest#game.splash), their `_video` variants, and [`gallery`](https://developer.arcadible.com/references/arcadible-manifest#game.gallery) |
| 3 | `package.json`, if present | [`version`](https://developer.arcadible.com/references/arcadible-manifest#game.version) and [`workflow.build`](https://developer.arcadible.com/references/arcadible-manifest#workflow.build) |
| 4 | `arcadible.toml` | Everything else |

If your project uses a `package.json`, the CLI reads its `version`, and builds with its `build` script, so you don't have to keep a second version number in `arcadible.toml`.

To leave an optional field unset, leave it out. An empty value, such as `tagline = ""` or `genres = []`, fails validation. The exception is [`build`](https://developer.arcadible.com/references/arcadible-manifest#workflow.build), where `build = ""` or `build = []` means there's no build step, even if `package.json` has one.

Arcadible ignores fields and tables it doesn't know: they're left out of what [`arc inspect`](https://developer.arcadible.com/references/arcadible-cli/arc-inspect) prints and what's deployed. [`arc validate`](https://developer.arcadible.com/references/arcadible-cli/arc-validate#warnings) warns about each, with the name it might mean when one is close, without failing.

To see the result, run [`arc inspect`](https://developer.arcadible.com/references/arcadible-cli/arc-inspect). It prints the fully resolved manifest, which is exactly what [`arc validate`](https://developer.arcadible.com/references/arcadible-cli/arc-validate) checks and what gets deployed.

```sh
arc inspect               # the whole manifest, as TOML
arc inspect game.title    # a single value
arc inspect --json        # machine-readable
arc validate              # check it against the rules on this page
```

The `[game]` and `[client]` tables are published with the build, and so is `[function]`, without its `main`. The `[workflow]` table is only used locally and in CI.

## Media files

Media is read from the `.arcadible/` directory. Art uses fixed file names, so you don't need to reference it anywhere, and the gallery's [screenshots](https://developer.arcadible.com/publish/screenshots) are picked up by name:

```text
.arcadible/
├── icon.png            icon_video.mp4
├── cover.png           cover_video.mp4
├── banner.png          banner_video.mp4
├── poster.png          poster_video.mp4
├── splash.png          splash_video.mp4
└── gallery/
    ├── screenshot_01.png
    └── boss_fight.mp4
```

Each piece of art has a fixed aspect ratio and a range of allowed sizes:

![Media aspect ratios drawn to scale: icon 1:1, cover 3:2, banner 2:1, poster 2:3, and splash 16:9](https://developer.arcadible.com/assets/images/arcadible-manifest-media.640ce68d.svg)

| Field | File | Ratio | Dimensions |
| --- | --- | --- | --- |
| [`icon`](https://developer.arcadible.com/references/arcadible-manifest#game.icon) | `icon.png`, `icon_video.mp4` | 1:1 | Minimum: 512 × 512<br />Maximum: 2048 × 2048 |
| [`cover`](https://developer.arcadible.com/references/arcadible-manifest#game.cover) | `cover.png`, `cover_video.mp4` | 3:2 | Minimum: 768 × 512<br />Maximum: 3072 × 2048 |
| [`banner`](https://developer.arcadible.com/references/arcadible-manifest#game.banner) | `banner.png`, `banner_video.mp4` | 2:1 | Minimum: 1024 × 512<br />Maximum: 4096 × 2048 |
| [`poster`](https://developer.arcadible.com/references/arcadible-manifest#game.poster) | `poster.png`, `poster_video.mp4` | 2:3 | Minimum: 512 × 768<br />Maximum: 2048 × 3072 |
| [`splash`](https://developer.arcadible.com/references/arcadible-manifest#game.splash) | `splash.png`, `splash_video.mp4` | 16:9 | Minimum: 1024 × 576<br />Maximum: 4096 × 2304 |
| [`gallery`](https://developer.arcadible.com/references/arcadible-manifest#game.gallery) | `gallery/*.png`, `gallery/*.mp4` | Any | Minimum: 512 × 512<br />Maximum: 2048 × 2048 |

Where each piece may appear in the store, and how to make it read well there, is in [Your Store Page](https://developer.arcadible.com/publish/store-page), with each piece's recommended size and [edge margin](https://developer.arcadible.com/publish/store-page#edge-margin).

These rules apply to every media field:

| Format | File size | Duration | Video track |
| --- | --- | --- | --- |
| PNG | Maximum: 2 MB | — | — |
| MP4 | Maximum: 15 MB | Minimum: 3 seconds<br />Maximum: 30 seconds | Required |

- **Aspect ratios are exact.** 1024 × 512 is 2:1, and 1030 × 512 is rejected.
- **The maximum is four times the minimum** on each side. A banner can be anywhere from 1024 × 512 to 4096 × 2048, as long as it's exactly 2:1.
- **File names are case-sensitive.** Use lowercase names and extensions: `Icon.PNG` isn't detected.
- **Videos are optional companions.** Each `_video` field is a variant that may play in place of its image, without sound, such as [`icon_video`](https://developer.arcadible.com/references/arcadible-manifest#game.icon_video).

> **Media is public.** `.arcadible/` is published with the build, so its files can be downloaded from the build's origin. Don't put anything private there.

## `game`

Describes the game and its store page. It's published with every build. What applies to every field, such as leaving an optional one out rather than empty, is in [Sources](https://developer.arcadible.com/references/arcadible-manifest#sources); what applies to every media file is in [Media files](https://developer.arcadible.com/references/arcadible-manifest#media-files).

### `id`

The permanent identifier of your game.

| Rule | Value |
| --- | --- |
| Source | `arcadible.toml` |
| Required | Yes |
| Length | 36 characters |
| Characters | Lowercase letters `a`–`f`, digits, and hyphens |
| Format | UUID ([RFC 9562](https://www.rfc-editor.org/rfc/rfc9562)), such as one from [`arc init`](https://developer.arcadible.com/references/arcadible-cli/arc-init) |

**Notes**

- [`arc init`](https://developer.arcadible.com/references/arcadible-cli/arc-init) generates it. Running `arc init` in an existing project adds one, and a `version` of `0.1.0-beta.1` if neither `arcadible.toml` nor `package.json` has one. When it adds either, it rewrites `arcadible.toml`, so comments and formatting aren't kept.
- Commit it and never change it. If you do, Arcadible treats the project as a different game.
- Once a game is deleted, in Arcadible Studio or with [`arc unstable game delete`](https://developer.arcadible.com/references/arcadible-cli/arc-unstable-game-delete), its `id` can't be deployed again. Deleting is immediate and can't be undone; to publish the project again, give it a new `id`.

### `version`

The version of the build.

| Rule | Value |
| --- | --- |
| Source | `arcadible.toml` if it's set there, otherwise `package.json` |
| Required | Yes, in one of them |
| Format | Normalized [semver](https://semver.org), in lowercase: `1.2.0`, not `v1.2.0`, `1.2`, `1.2.0+build.1`, or `1.2.0-Beta.1` |

**Notes**

- Keep it in one place: a project with a `package.json` usually keeps it there, as the engine starters do. If both set it, `arcadible.toml`'s is used: set it there only to override `package.json`'s on purpose, such as when that package's version isn't the game's. [`arc init`](https://developer.arcadible.com/references/arcadible-cli/arc-init) sets it in `arcadible.toml` only when `package.json` doesn't. `arc inspect game.version` shows the one used.
- Each version can be published once. Bump it after each published build. If a deploy fails before its build is published, you can deploy the same version again.
- A **prerelease** version such as `1.3.0-beta.1` is deployed to the `staging` channel. Any other version goes to `production`. Play a channel with `arc play -r staging`.

### `handle`

A human-readable name used in URLs, such as `play.arcadible.com/star-drift/`.

| Rule | Value |
| --- | --- |
| Source | `arcadible.toml` |
| Required | No |
| Length | Minimum: 3 characters<br />Maximum: 24 characters |
| Characters | Lowercase letters, digits, and hyphens |
| Format | Starts and ends with a letter or digit, and doesn't contain `--` |

**Example**

```toml
[game]
handle = "star-drift"
```

**Notes**

- It must be unique among games, and some names are reserved. [`arc deploy`](https://developer.arcadible.com/references/arcadible-cli/arc-deploy) refuses a handle another game owns, one held for another account, or a reserved one. Only `arc deploy` changes a handle: a release from [`arc deploy git`](https://developer.arcadible.com/references/arcadible-cli/arc-deploy#git) must carry the game's current one ([`game_handle_changed`](https://developer.arcadible.com/references/errors#game_handle_changed)).
- Your first deploy claims it, even if it's a prerelease. After that, only a release version can change it.
- Until a game's first production release, it keeps its handle for 90 days, and your unreleased games hold at most 5 handles. See [Limits › Handles](https://developer.arcadible.com/references/limits#handles).
- When it changes, links with the old handle stop working, and the old handle is held for your account for 30 days. Links with the game's `id` keep working as long as the game exists.
- Deleting a game, in Arcadible Studio or with [`arc unstable game delete`](https://developer.arcadible.com/references/arcadible-cli/arc-unstable-game-delete), holds its handle for your account for 30 days.
- Without a handle, the game is addressed by its `id`.

### `title`

The game's name.

| Rule | Value |
| --- | --- |
| Source | The first `#` heading of `README.md` (or `arcadible.md` if present), or `arcadible.toml` |
| Required | No |
| Length | Maximum: 30 characters |
| Characters | Letters, digits `0`–`9`, spaces, and `. , ! ? ' " ( ) : ; -` |
| Format | Plain text |

**Example**

```md
# Star Drift
```

**Notes**

- The character set excludes curly quotes, `&`, `/`, and emoji.
- Accented letters must be precomposed ([NFC](https://unicode.org/reports/tr15/)). A letter followed by a combining accent is rejected.

### `short_title`

A shorter name for places where the full title doesn't fit, such as under an icon.

| Rule | Value |
| --- | --- |
| Source | A parenthesized suffix on the `#` heading of `README.md` (or `arcadible.md` if present), or `arcadible.toml` |
| Required | No |
| Length | Maximum: 15 characters |
| Characters | Letters, digits `0`–`9`, spaces, and `. , ! ? ' " ( ) : ; -` |
| Format | Plain text |

**Example**

```md
# Star Drift: Beyond the Rim (Star Drift)
```

That heading gives `title = "Star Drift: Beyond the Rim"` and `short_title = "Star Drift"`. Each has its own limit: the short title doesn't count toward the title's 30 characters.

**Notes**

- When `short_title` is set in `arcadible.toml`, the entire heading is read as the title word for word, parentheses included.

### `tagline`

A one-line hook.

| Rule | Value |
| --- | --- |
| Source | The `##` heading right after the `#` title in `README.md` (or `arcadible.md` if present), or `arcadible.toml` |
| Required | No |
| Length | Maximum: 30 characters |
| Characters | Letters, digits `0`–`9`, spaces, and `. , ! ? ' " ( ) : ; -` |
| Format | Plain text |

**Example**

```md
# Star Drift

## Drift. Dodge. Survive.
```

**Notes**

- Without one, lists show the game's genres in its place.

### `bio`

The game's pitch. It's shown in About when there's no description, and may appear, cut to two lines, where the game is featured.

| Rule | Value |
| --- | --- |
| Source | The paragraph directly after the tagline in `README.md` (or `arcadible.md` if present), or `arcadible.toml` |
| Required | No |
| Length | Maximum: 180 characters |
| Characters | Letters, digits `0`–`9`, spaces, and `. , ! ? ' " ( ) : ; -` |
| Format | Plain text |

**Notes**

- Formatting is ignored, so write it as plain text.
- Put nothing between the tagline and the bio, or the README has no bio. See [Arcadible Markdown](https://developer.arcadible.com/references/arcadible-markdown#structure).

### `description`

The long-form About section on the store page.

| Rule | Value |
| --- | --- |
| Source | The content between the **first and last** `---` in `README.md` (or `arcadible.md` if present), or `arcadible.toml` |
| Required | No |
| Length | Maximum: 3,000 characters |
| Characters | Printable text and line breaks, without tabs, zero-width characters, or other invisible formatting |
| Format | [Arcadible Markdown](https://developer.arcadible.com/references/arcadible-markdown), limited to the [allowed elements](https://developer.arcadible.com/references/arcadible-markdown#elements) |

**Notes**

- If the README has anything after its title, tagline, and bio, it must have at least two `---` rules. See [Structure](https://developer.arcadible.com/references/arcadible-markdown#structure).
- The length is measured on the **rendered HTML**, so tags and URLs count too.
- Images and videos must come from [`.arcadible/gallery/`](https://developer.arcadible.com/references/arcadible-manifest#game.gallery).

### `genres`

The game's genres, used to group it in the store.

| Rule | Value |
| --- | --- |
| Source | `arcadible.toml` |
| Required | No |
| Default | None |
| Count | Maximum: 3 |

**Values**

| Value | Shown as |
| --- | --- |
| `action` | Action |
| `adventure` | Adventure |
| `arcade` | Arcade |
| `board` | Board |
| `card` | Card |
| `casino` | Casino |
| `casual` | Casual |
| `music` | Music |
| `puzzle` | Puzzle |
| `racing` | Racing |
| `rpg` | RPG |
| `simulation` | Simulation |
| `sports` | Sports |
| `strategy` | Strategy |
| `trivia` | Trivia |
| `word` | Word |

**Example**

```toml
[game]
genres = ["puzzle", "casual"]
```

**Notes**

- Each genre can appear only once.

### `audience`

Who the game's content is suitable for. It's shown to players on the store page.

| Rule | Value |
| --- | --- |
| Source | `arcadible.toml` |
| Required | No |
| Default | `everyone` |

**Values**

| Value | Label | Description |
| --- | --- | --- |
| `everyone` | Everyone | May contain minimal cartoon, fantasy or mild violence and/or infrequent use of mild language. |
| `mature` | Mature | May contain intense violence, blood and gore, sexual content and/or strong language. |

**Notes**

- When you're unsure, set `mature`. Left out, it's `everyone`. For how to choose, see [Choosing an audience](https://developer.arcadible.com/publish/store-page#audience).
- The audience is part of every deploy. If an update adds more intense content, change the audience in the same release.

### `ai`

Discloses whether generative AI created content that players can see or hear, before release or while they play, which a game an agent made did, its text and levels included.

| Rule | Value |
| --- | --- |
| Source | `arcadible.toml` |
| Required | No |
| Default | None, and the game's AI use is recorded as `unknown` |

**Values**

| Value | Label | Description |
| --- | --- | --- |
| `unused` | No label | Generative AI created no content that players can see or hear. Not for a game an agent made, whose text and levels count. |
| `generative` | Generative | Generative AI created some of the content players see or hear, in whole or in part, before release or while they play. |

**Notes**

- When it's `generative`, the store page shows a label telling players so. `unused` shows no label.
- If you leave `ai` out, no label is shown, but your game's AI use is recorded as `unknown` rather than `unused`. Set it explicitly so it reflects your answer.
- AI used as a tool, such as to help write code for a game a person designed, doesn't count; a game an agent made does, its text and levels included, whether as files or in its code. For how to choose, see [Disclosing AI](https://developer.arcadible.com/publish/store-page#ai).
- The disclosure is part of every deploy. If an update adds generated content, change it in the same release.

### `orientation`

The screen orientation the game expects.

| Rule | Value |
| --- | --- |
| Source | `arcadible.toml` |
| Required | No |
| Default | `natural` |

**Values**

| Value | Meaning |
| --- | --- |
| `natural` | The device's natural orientation |
| `any` | Any orientation, with rotation allowed |
| `portrait`, `landscape` | Either direction of that orientation |
| `portrait-primary`, `portrait-secondary`, `landscape-primary`, `landscape-secondary` | A single, fixed direction |

**Example**

```toml
[game]
orientation = "landscape"
```

**Notes**

- The Arcadible app uses it to shape its window.
- On a phone or tablet held the other way, a game that declares `portrait` or `landscape` (or one of their directions) gets Arcadible's prompt to turn it, with or without the SDK: it holds the loading screen until the device turns, and covers the game whenever it's held the other way during play. You need no rotate screen of your own. `natural` and `any` never get the prompt. See [Best Practices › Fill the window](https://developer.arcadible.com/build/best-practices#fill-the-window).
- The values mirror the [Screen Orientation API](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/type).

### `inputs`

The input methods the game supports.

| Rule | Value |
| --- | --- |
| Source | `arcadible.toml` |
| Required | No |
| Default | None |

**Values**

| Value | Meaning |
| --- | --- |
| `keyboard` | Keyboard only |
| `mouse` | Mouse only |
| `keyboard-mouse` | Keyboard and mouse at once, in place of `keyboard` and `mouse`, for a game that needs both together |
| `gamepad` | Gamepad |
| `gamepad-motion` | Gamepad with motion controls |
| `touch` | Touchscreen |
| `touch-motion` | Touchscreen with device motion |
| `motion` | Device motion only |

For how to choose, see [Declaring inputs](https://developer.arcadible.com/publish/store-page#inputs).

**Example**

```toml
[game]
inputs = ["keyboard", "gamepad"]
```

**Notes**

- Each input can appear only once.
- If you leave `inputs` out, the store page doesn't list your game's inputs. Set it so players know how to play.

### `visibility`

Whether the game is listed in the store and in search.

| Rule | Value |
| --- | --- |
| Source | `arcadible.toml` |
| Required | No |
| Default | `unlisted` |

**Values**

| Value | Meaning |
| --- | --- |
| `unlisted` | Anyone with the link can play the game, but it isn't listed in the store or in search |
| `public` | The game is listed |

**Notes**

- Like the rest of the store page, it changes only with a release version. See [Visibility](https://developer.arcadible.com/concepts#visibility).
- [`arc validate`](https://developer.arcadible.com/references/arcadible-cli/arc-validate#warnings) warns when a release version leaves it out ([`field_unset`](https://developer.arcadible.com/references/errors#field_unset)). Set it either way to say which you mean.

### `icon`

The game's icon. It may appear as the app icon, in lists and the library, and on the store page.

| Rule | Value |
| --- | --- |
| Source | `.arcadible/icon.png` |
| Required | No |
| Format | PNG |
| Aspect ratio | 1:1 |
| Dimensions | Minimum: 512 × 512<br />Maximum: 2048 × 2048 |
| File size | Maximum: 2 MB |

**Notes**

- The aspect ratio is exact, and the name is case-sensitive: `Icon.PNG` isn't found.
- The build's `favicon.ico` is made from it, at 16, 32, and 48 pixels, when [`deploy_dir`](https://developer.arcadible.com/references/arcadible-manifest#workflow.deploy_dir) has none of its own ([`arc pack`](https://developer.arcadible.com/references/arcadible-cli/arc-pack#description)).
- For text in art, see [Text in art](https://developer.arcadible.com/publish/store-page#text-in-art).

### `cover`

Landscape art. It may appear in search results, and in link previews when the game is shared.

| Rule | Value |
| --- | --- |
| Source | `.arcadible/cover.png` |
| Required | No |
| Format | PNG |
| Aspect ratio | 3:2 |
| Dimensions | Minimum: 768 × 512<br />Maximum: 3072 × 2048 |
| File size | Maximum: 2 MB |

**Notes**

- The aspect ratio is exact, and the name is case-sensitive: `Cover.PNG` isn't found.
- For text in art, see [Text in art](https://developer.arcadible.com/publish/store-page#text-in-art).

### `banner`

Wide art. It may appear in featured spots and in wide headers, such as on phones.

| Rule | Value |
| --- | --- |
| Source | `.arcadible/banner.png` |
| Required | No |
| Format | PNG |
| Aspect ratio | 2:1 |
| Dimensions | Minimum: 1024 × 512<br />Maximum: 4096 × 2048 |
| File size | Maximum: 2 MB |

**Notes**

- The aspect ratio is exact, and the name is case-sensitive: `Banner.PNG` isn't found.
- For text in art, see [Text in art](https://developer.arcadible.com/publish/store-page#text-in-art).

### `poster`

Tall art. It may appear on tall cards and in headers.

| Rule | Value |
| --- | --- |
| Source | `.arcadible/poster.png` |
| Required | No |
| Format | PNG |
| Aspect ratio | 2:3 |
| Dimensions | Minimum: 512 × 768<br />Maximum: 2048 × 3072 |
| File size | Maximum: 2 MB |

**Notes**

- The aspect ratio is exact, and the name is case-sensitive: `Poster.PNG` isn't found.
- For text in art, see [Text in art](https://developer.arcadible.com/publish/store-page#text-in-art).

### `splash`

Background art. It may appear behind the game's title and text, blurred or tinted, and it's the game's loading screen while it starts ([Initialization](https://developer.arcadible.com/build/initialization)).

| Rule | Value |
| --- | --- |
| Source | `.arcadible/splash.png` |
| Required | No |
| Format | PNG |
| Aspect ratio | 16:9 |
| Dimensions | Minimum: 1024 × 576<br />Maximum: 4096 × 2304 |
| File size | Maximum: 2 MB |

**Notes**

- The aspect ratio is exact, and the name is case-sensitive: `Splash.PNG` isn't found.
- Keep text off it, the game's title included: the loading screen shows the title over it. See [Text in art](https://developer.arcadible.com/publish/store-page#text-in-art).

### `icon_video`

A video of [`icon`](https://developer.arcadible.com/references/arcadible-manifest#game.icon), which may play once in its place, without sound, and then fade to it. Provide `icon.png` too, for places that don't show video.

| Rule | Value |
| --- | --- |
| Source | `.arcadible/icon_video.mp4` |
| Required | No |
| Format | MP4 |
| Aspect ratio | 1:1 |
| Dimensions | Minimum: 512 × 512<br />Maximum: 2048 × 2048 |
| File size | Maximum: 15 MB |
| Duration | Minimum: 3 seconds<br />Maximum: 30 seconds |
| Video track | Required |

**Notes**

- The aspect ratio is exact, and the name is case-sensitive: `Icon_Video.MP4` isn't found.
- [`arc validate`](https://developer.arcadible.com/references/arcadible-cli/arc-validate#warnings) warns when it has no `icon.png` beside it ([`art_video_unpaired`](https://developer.arcadible.com/references/errors#art_video_unpaired)).

### `cover_video`

A video of [`cover`](https://developer.arcadible.com/references/arcadible-manifest#game.cover), which may play once in its place, without sound, and then fade to it. Provide `cover.png` too, for places that don't show video.

| Rule | Value |
| --- | --- |
| Source | `.arcadible/cover_video.mp4` |
| Required | No |
| Format | MP4 |
| Aspect ratio | 3:2 |
| Dimensions | Minimum: 768 × 512<br />Maximum: 3072 × 2048 |
| File size | Maximum: 15 MB |
| Duration | Minimum: 3 seconds<br />Maximum: 30 seconds |
| Video track | Required |

**Notes**

- The aspect ratio is exact, and the name is case-sensitive: `Cover_Video.MP4` isn't found.
- [`arc validate`](https://developer.arcadible.com/references/arcadible-cli/arc-validate#warnings) warns when it has no `cover.png` beside it ([`art_video_unpaired`](https://developer.arcadible.com/references/errors#art_video_unpaired)).

### `banner_video`

A video of [`banner`](https://developer.arcadible.com/references/arcadible-manifest#game.banner), which may play once in its place, without sound, and then fade to it. Provide `banner.png` too, for places that don't show video.

| Rule | Value |
| --- | --- |
| Source | `.arcadible/banner_video.mp4` |
| Required | No |
| Format | MP4 |
| Aspect ratio | 2:1 |
| Dimensions | Minimum: 1024 × 512<br />Maximum: 4096 × 2048 |
| File size | Maximum: 15 MB |
| Duration | Minimum: 3 seconds<br />Maximum: 30 seconds |
| Video track | Required |

**Notes**

- The aspect ratio is exact, and the name is case-sensitive: `Banner_Video.MP4` isn't found.
- [`arc validate`](https://developer.arcadible.com/references/arcadible-cli/arc-validate#warnings) warns when it has no `banner.png` beside it ([`art_video_unpaired`](https://developer.arcadible.com/references/errors#art_video_unpaired)).

### `poster_video`

A video of [`poster`](https://developer.arcadible.com/references/arcadible-manifest#game.poster), which may play once in its place, without sound, and then fade to it. Provide `poster.png` too, for places that don't show video.

| Rule | Value |
| --- | --- |
| Source | `.arcadible/poster_video.mp4` |
| Required | No |
| Format | MP4 |
| Aspect ratio | 2:3 |
| Dimensions | Minimum: 512 × 768<br />Maximum: 2048 × 3072 |
| File size | Maximum: 15 MB |
| Duration | Minimum: 3 seconds<br />Maximum: 30 seconds |
| Video track | Required |

**Notes**

- The aspect ratio is exact, and the name is case-sensitive: `Poster_Video.MP4` isn't found.
- [`arc validate`](https://developer.arcadible.com/references/arcadible-cli/arc-validate#warnings) warns when it has no `poster.png` beside it ([`art_video_unpaired`](https://developer.arcadible.com/references/errors#art_video_unpaired)).

### `splash_video`

A video of [`splash`](https://developer.arcadible.com/references/arcadible-manifest#game.splash), which may play once in its place, without sound, and then fade to it. Provide `splash.png` too, for places that don't show video.

| Rule | Value |
| --- | --- |
| Source | `.arcadible/splash_video.mp4` |
| Required | No |
| Format | MP4 |
| Aspect ratio | 16:9 |
| Dimensions | Minimum: 1024 × 576<br />Maximum: 4096 × 2304 |
| File size | Maximum: 15 MB |
| Duration | Minimum: 3 seconds<br />Maximum: 30 seconds |
| Video track | Required |

**Notes**

- The aspect ratio is exact, and the name is case-sensitive: `Splash_Video.MP4` isn't found.
- [`arc validate`](https://developer.arcadible.com/references/arcadible-cli/arc-validate#warnings) warns when it has no `splash.png` beside it ([`art_video_unpaired`](https://developer.arcadible.com/references/errors#art_video_unpaired)).

### `gallery`

Every PNG and MP4 in `.arcadible/gallery/`. The gallery serves two purposes:

- **[Screenshots](https://developer.arcadible.com/publish/screenshots)** for the store page carousel, ordered by their number.
- **Media to embed** in the [`description`](https://developer.arcadible.com/references/arcadible-manifest#game.description), using Markdown image syntax.

| Rule | Value |
| --- | --- |
| Source | `.arcadible/gallery/` |
| Required | No |
| Count | Maximum: 24 files |

**Images**

| Rule | Value |
| --- | --- |
| Source | `.arcadible/gallery/*.png` |
| Required | No |
| Format | PNG |
| Aspect ratio | Any |
| Dimensions | Minimum: 512 × 512<br />Maximum: 2048 × 2048 |
| File size | Maximum: 2 MB |

**Videos**

| Rule | Value |
| --- | --- |
| Source | `.arcadible/gallery/*.mp4` |
| Required | No |
| Format | MP4 |
| Aspect ratio | Any |
| Dimensions | Minimum: 512 × 512<br />Maximum: 2048 × 2048 |
| File size | Maximum: 15 MB |
| Duration | Minimum: 3 seconds<br />Maximum: 30 seconds |
| Video track | Required |

**Notes**

- **Images and videos count together** toward the 24-file limit.
- **File names must be unique once the extension is removed.** `boss_fight.png` and `boss_fight.mp4` can't both exist.
- **Each screenshot number holds one file for each platform:** `screenshot_1.png` and `screenshot_01.png` are the same number, and can't both exist, while `screenshot_02.mp4` and `screenshot_02_phone.mp4` can ([`screenshot_number_repeated`](https://developer.arcadible.com/references/errors#screenshot_number_repeated)). See [Screenshots](https://developer.arcadible.com/publish/screenshots).
- **Extensions must be lowercase:** `.png` and `.mp4`. Files with any other extension, including `.PNG` and `.MP4`, are skipped by the directory scan.

## `client`

What your game may reach besides its own build. Every build is sealed to its own address: it loads its own files and the Arcadible SDK, and nothing from any other site ([Networking](https://developer.arcadible.com/references/runtime#networking)). This table names the hosts it may also connect to. It's part of every build, prereleases included, so a change ships with the version it's in, and is reviewed with your code.

### `outbound_hosts`

Hosts your game may connect to: with `fetch()`, XHR, WebSockets, WebTransport, and `EventSource`.

| Rule | Value |
| --- | --- |
| Source | `arcadible.toml` |
| Required | No |
| Default | None, so your game reaches only its own build |
| Format | A list of hosts' names, such as `api.example.com`: lowercase, with no scheme, port, path, or wildcard, reached over `https://` and `wss://` on the default port, 443 |
| Length | Maximum: 253 characters a name, and 1,024 together, counting a space between names |
| Count | Maximum: 8 hosts |

**Example**

```toml
[client]
outbound_hosts = ["api.example.com", "db.example.com"]
```

**Notes**

- **Connections only.** Images, fonts, scripts, styles, audio, and video still load from your build alone. To show an image from a host, `fetch()` it and use a `blob:` URL.
- **Each name is exact:** `api.example.com` doesn't include `cdn.example.com`, so list each host your game connects to.
- **Not allowed:** an address, such as `10.0.0.1`; a private network's name, such as `localhost` or one ending in `.local`, `.internal`, or `.home.arpa`; and Arcadible's own, `arcadible.com`, `arcadible.io`, or any name under them, which your game reaches through the [Arcadible SDK](https://developer.arcadible.com/references/arcadible-sdk).
- **Your host must send CORS headers** for any origin ending in `.arcadible.io`, since every build has its own ([Networking](https://developer.arcadible.com/references/runtime#networking)).
- **Under [`arc serve`](https://developer.arcadible.com/references/arcadible-cli/arc-serve),** your own machine is reachable too, without listing it.

### `server_origins`

Your game's own servers: those it gets a [ticket](https://developer.arcadible.com/references/arcadible-sdk/tickets) for, and which check it with the [Server SDK](https://developer.arcadible.com/references/arcadible-server-sdk/tickets).

| Rule | Value |
| --- | --- |
| Source | `arcadible.toml` |
| Required | No |
| Default | None, so your game gets tickets only for a server on your own machine, under `arc serve` |
| Format | A list of `https` origins, such as `https://api.example.com`: a scheme and a host, with no port, path, or trailing `/` |
| Count | Maximum: 4 servers |

**Example**

```toml
[client]
server_origins = ["https://api.example.com"]
```

**Notes**

- **`tickets.get(server)` and `tickets.check(ticket, { server })` take any URL of a listed server,** such as `https://api.example.com/match`. A server that isn't listed gets no ticket ([`invalid`](https://developer.arcadible.com/references/arcadible-sdk/tickets#tickets.get)).
- **A listed server is reached already:** your game may connect to it as to a host in [`outbound_hosts`](https://developer.arcadible.com/references/arcadible-manifest#client.outbound_hosts), so don't list its name there too. Its name counts toward their 1,024 characters together.
- **Not allowed,** as in `outbound_hosts`: an address, a private network's name, and Arcadible's own.
- **Your server must send CORS headers** for any origin ending in `.arcadible.io`, as a host in `outbound_hosts` must.
- **Only [`arc deploy`](https://developer.arcadible.com/references/arcadible-cli/arc-deploy) changes it,** since tickets prove who a player is: a release from [`arc deploy git`](https://developer.arcadible.com/references/arcadible-cli/arc-deploy#git) must list the same servers as the newest build on its channel ([`servers_changed`](https://developer.arcadible.com/references/errors#servers_changed)).
- **Under [`arc serve`](https://developer.arcadible.com/references/arcadible-cli/arc-serve),** a server on your own machine, such as `http://localhost:5182`, gets tickets without being listed, so leave it out. Once `server_origins` lists a server, `arc serve` prints the `ARCADIBLE_SERVE` address that points your server at it ([the Server SDK under `arc serve`](https://developer.arcadible.com/references/arcadible-server-sdk#serve)).

## `function`

Your game's function: the server code Arcadible runs beside your game, which your game reaches with [`arcadible.functions`](https://developer.arcadible.com/references/arcadible-sdk/functions), and which calls Arcadible with the [Function SDK](https://developer.arcadible.com/references/arcadible-function-sdk). A game without this table has no function.

```toml
[function]
main = "function/index.ts"
outbound_hosts = ["api.example.com"]
secrets = ["EXAMPLE_KEY"]
```

### `main`

The file your function starts from, whose default export's `fetch` answers each request.

| Rule | Value |
| --- | --- |
| Source | `arcadible.toml` |
| Required | Yes, in a `[function]` table |
| Format | A path within the project, relative to its root, such as `function/index.ts` |
| Size | Maximum: 1 MB, bundled |

**Notes**

- **[`arc build`](https://developer.arcadible.com/references/arcadible-cli/arc-build) bundles it,** after the project's own build, with what it imports, the Function SDK included, into one file. [`arc serve`](https://developer.arcadible.com/references/arcadible-cli/arc-serve) and [`arc deploy`](https://developer.arcadible.com/references/arcadible-cli/arc-deploy) run it for you. A bundle over 1 MB fails as [`function_too_large`](https://developer.arcadible.com/references/errors#function_too_large).
- **Keep it outside [`deploy_dir`](https://developer.arcadible.com/references/arcadible-manifest#workflow.deploy_dir),** where anyone can download what's there from your game's address, so your function's code stays your own.
- **The bundle is never served:** it goes with the release, and only Arcadible runs it.

### `outbound_hosts`

Hosts your function may `fetch()`, such as an API it calls with a key of its own.

| Rule | Value |
| --- | --- |
| Source | `arcadible.toml` |
| Required | No |
| Default | None, so your function reaches only Arcadible, through the Function SDK |
| Format | As [`client.outbound_hosts`](https://developer.arcadible.com/references/arcadible-manifest#client.outbound_hosts): hosts' names, such as `api.example.com` |
| Count | Maximum: 8 hosts |

**Notes**

- **A `fetch()` to a host it doesn't name isn't sent:** it answers `403`, with `host_undeclared` ([Function SDK](https://developer.arcadible.com/references/arcadible-function-sdk#codes)).
- **It's the function's own list,** apart from [`client.outbound_hosts`](https://developer.arcadible.com/references/arcadible-manifest#client.outbound_hosts), which is your game's.
- **Only [`arc deploy`](https://developer.arcadible.com/references/arcadible-cli/arc-deploy) changes it,** since it's where your function may send its secrets: a release from [`arc deploy git`](https://developer.arcadible.com/references/arcadible-cli/arc-deploy#git) must list the same hosts as the newest build on its channel ([`servers_changed`](https://developer.arcadible.com/references/errors#servers_changed)).

### `secrets`

The names of the secrets your function reads, such as an API's key. The manifest names each one; its value is set in Studio, on the game's [Function](https://developer.arcadible.com/studio#function) tab, for each channel, and never shown again.

| Rule | Value |
| --- | --- |
| Source | `arcadible.toml` |
| Required | No |
| Default | None |
| Format | Names as an environment variable's, such as `EXAMPLE_KEY`: letters, digits, and underscores, starting with a letter, in capitals |
| Length | Maximum: 64 characters, never starting with `ARCADIBLE_` |
| Count | Maximum: 16, none repeated |

**Notes**

- **Your function reads each one from `env`,** the second argument its `fetch` is given: `env.EXAMPLE_KEY`.
- **A release doesn't need a value set:** [`arc deploy`](https://developer.arcadible.com/references/arcadible-cli/arc-deploy) warns of a secret with no value on the channel it deploys to, and your function reads `undefined` for it until it's set. Under [`arc serve`](https://developer.arcadible.com/references/arcadible-cli/arc-serve), its value is the one in your own environment.
- **A value changes with no release,** and reaches your function within a minute.
- **Send one only to a host in [`outbound_hosts`](https://developer.arcadible.com/references/arcadible-manifest#function.outbound_hosts),** the only places your function's `fetch()` reaches. See [Server Code](https://developer.arcadible.com/build/server-code#secrets).

## `workflow`

Describes how to turn the repository into a deployable directory. It's used by [`arc deploy`](https://developer.arcadible.com/references/arcadible-cli/arc-deploy), [`arc serve`](https://developer.arcadible.com/references/arcadible-cli/arc-serve), and the GitHub release workflow, and it isn't part of the published manifest.

### `build`

A shell command, or a list of commands joined with `&&`, run from the project root.

| Rule | Value |
| --- | --- |
| Source | `arcadible.toml`, otherwise `<package manager> run build` when `package.json` has a `build` script |
| Required | No |
| Default | `""`, so no build runs |

**Notes**

- Without a `build` in `arcadible.toml`, a `package.json` with a `build` script builds with the package manager its lockfile names, as you would locally, so its tools are found, Yarn's Plug'n'Play included: `npm run build` for `package-lock.json`, `npm-shrinkwrap.json`, or no lockfile; `pnpm run build` for `pnpm-lock.yaml`; and `yarn run build` for `yarn.lock`. With more than one lockfile, the first in that order. `prebuild` and `postbuild` run. To skip that script, set `build = ""`.
- A list is useful for multiple steps:

  ```toml
  [workflow]
  build = ["./fetch-assets.sh", "./build.sh"]
  ```

- The command must produce [`deploy_dir`](https://developer.arcadible.com/references/arcadible-manifest#workflow.deploy_dir).

### `deploy_dir`

The directory that gets deployed.

| Rule | Value |
| --- | --- |
| Source | `arcadible.toml` |
| Required | No |
| Default | `.arcadible-public` |
| Format | A relative path to a directory inside the project, such as `dist`, but not the project root, and with no `.arcadible` folder anywhere in its path |
| Contents | An `index.html` at its root, which is the entry point players load |
| Size | Maximum: 64 MB, compressed |

**Example**

```toml
[workflow]
deploy_dir = "dist"
```

**Notes**

- It must already exist unless a [`build`](https://developer.arcadible.com/references/arcadible-manifest#workflow.build) step creates it.
- Its root can't contain `arcadible.json` or a `.arcadible` folder. They're reserved for the files Arcadible adds when it packages the game.
- Its root can't contain an `arcadible` folder either, in any letter case. Every game's address keeps `/arcadible/` for Arcadible's own files.
- [`arc validate`](https://developer.arcadible.com/references/arcadible-cli/arc-validate) checks the path; what's in the folder is checked when [`arc pack`](https://developer.arcadible.com/references/arcadible-cli/arc-pack) or [`arc deploy`](https://developer.arcadible.com/references/arcadible-cli/arc-deploy) packs it, after the build.
- The packed game, meaning `deploy_dir` and `.arcadible/`, can be up to 256 MB uncompressed, in at most 10,000 files of up to 64 MB each, and 20,000 files and folders together ([Limits](https://developer.arcadible.com/references/limits#package)).
