# alta.universe/0.1: universe packs

<p class="generated-note">Generated from <a href="https://github.com/altasystem-ai/alta/blob/main/docs/standards/alta-universe-0.1.md"><code>docs/standards/alta-universe-0.1.md</code></a> · <code>npm run docs:gen</code></p>

Code: [`core/universe/pack.ts`](https://docs.altasystem.ai/reference/advanced/core-api/universe-pack) (and [`core/universe/contract.ts`](https://docs.altasystem.ai/reference/advanced/core-api/universe-contract) for the `Universe` the game plays). Tests:
[`tests/contracts.test.ts`](https://github.com/altasystem-ai/alta/blob/main/tests/contracts.test.ts), [`tests/universes.test.ts`](https://github.com/altasystem-ai/alta/blob/main/tests/universes.test.ts), [`tests/purity.test.ts`](https://github.com/altasystem-ai/alta/blob/main/tests/purity.test.ts).

Status: **alpha**. This format can still change before its 1.0; a change follows the versioning rules of the project and is announced in the changelog.

A pack is data only: `manifest` (id, name, `distinctive` words, at least 4), `copy` (its texts), `onboarding` and
`cinematics` (optional, same beats and quests as the neutral guide), and an `art` direction (`alta.art/0.1`:
ground style and particles, a glyph per neutral entity kind and state from a closed list of shapes, link style,
palette tokens, a font from `FONTS`: grotesk, serif, mono, rounded). No code, no URL, at most `MAX_PACK_BYTES`.

`checkPack(p, { questUids, neutralTokens, otherNames, denylist })` refuses: a missing concept, an unknown shape or
token, an URL anywhere, a name already taken or denied, a pack too big, and **any distinctive word that is a
neutral word** (`neutralTokens` = every word of `core/`, `content/`, `client/`).

The neutral index is written at build: `npm run build` → `dist/neutral-words.json`
(`{ schema: "alta.neutral-words/0.1", layers, words[] }`, by [`scripts/neutral-words.mjs`](https://github.com/altasystem-ai/alta/blob/main/scripts/neutral-words.mjs), same tokenizer as
`words()` in the pack module; tested equal).

`universeFromPack(p, makeRenderer)` makes a playable `Universe` from a valid pack (the parametric renderer is lot W).
