AI-first, MIT, cross-platform game engine. Built by AI, for AI agents and humans. Spec-driven.
Upstream sources of truth: docs/initial/vision.md (constitution) · docs/initial/spawn.md (mission + spec format).
| Path | Purpose |
|---|---|
docs/initial/ |
Original founder docs. Vision (constitution). Spawn (orchestrator mission). |
docs/architecture/ |
System-wide decisions. Vision expansion, 12 principles, system map, tech stack, workspace layout, ADRs. |
docs/specs/ |
Per-system specs. AI dev teams execute against these. One subdir per subsystem. |
docs/specs/core/ |
ECS, memory, jobs, HAL, math, events. |
docs/specs/renderer/ |
wgpu backend, render graph, PBR, shadows, GI, particles, post, shaders, terrain. |
docs/specs/physics/ |
Rapier integration, rigid, collision, character, soft, fluid, determinism. |
docs/specs/audio/ |
Audio graph, spatial, adaptive music, DSP, streaming, voice. |
docs/specs/networking/ |
Rollback, replication, transport, lobby, anticheat. |
docs/specs/scripting/ |
Lua, Rune, hot reload, sandbox. |
docs/specs/assets/ |
Import, streaming, LOD, compression, AI generation, registry. |
docs/specs/styles/ |
PBR, NPR, pixel, 2D, mixed. |
docs/specs/genres/ |
FPS, RPG, MMORPG, RTS, MOBA, platformer, racing, etc. |
docs/specs/agent/ |
Agent API, headless sim, telemetry, scenarios, replay, semantic, SDK. |
docs/specs/editor/ |
Scene editor, asset browser, shader graph, debug, live reload. |
docs/contracts/ |
Exact interface boundaries between subsystems. One file per pair. |
docs/prior-art/ |
What each reference engine got right (✓) / wrong (✗). Synthesis, not copy. |
docs/guides/ |
Style guide, glossary, formats, contribution, merge system, onboarding. |
docs/game-template/ |
nexus-game monorepo spec — what nexus new scaffolds. |
docs/games/ |
Demo games. They ARE the integration tests. |
ASCII map:
docs/
├── initial/ constitution + mission
├── architecture/ decisions, principles, ADRs
├── specs/ what to build (AI executes these)
│ ├── core/ renderer/ physics/ audio/ networking/
│ ├── scripting/ assets/ styles/ genres/
│ ├── agent/ editor/
├── contracts/ interface boundaries
├── prior-art/ ✓ / ✗ from existing engines
├── guides/ how to write/contribute
├── game-template/ nexus new mygame scaffold
└── games/ demo games = integration tests
docs/initial/vision.md— what Nexus is, why it existsdocs/architecture/01-principles.md— the 12 binding lawsdocs/guides/style-guide.md— how to write docsdocs/guides/glossary.md— vocabularydocs/guides/contribution.md— how to land a PRdocs/guides/pr-protocol.md— PR shape (spec ref, tests, benchmarks, changelog)- Pick one
docs/specs/<area>/overview.mdmatching your interest
docs/initial/vision.mddocs/architecture/01-principles.mddocs/architecture/02-system-map.mddocs/guides/ai-dev-onboarding.md- Your assigned spec(s) —
docs/specs/<area>/*.md - Every contract you depend on —
docs/contracts/*-<your-area>.md docs/guides/spec-format.md+docs/guides/contract-format.mdif revising- Write tests first → implement → PR per
docs/guides/pr-protocol.md
docs/initial/vision.md(skim)docs/game-template/overview.mddocs/game-template/cli.md—nexus new,add,generate,builddocs/game-template/nexus-toml.md— config surfacedocs/game-template/weekend-mvp.md— end-to-end walkthroughdocs/specs/genres/<your-genre>.mddocs/specs/styles/<your-style>.mddocs/game-template/aaa-path.md— when you grow past MVP
docs/initial/vision.md(skim)docs/specs/scripting/overview.md— Lua vs Runedocs/specs/scripting/sandbox.md— capability modeldocs/specs/scripting/lua.mdorrune.mddocs/specs/scripting/hotreload.mddocs/specs/assets/registry.md— how to override/replacedocs/game-template/structure.mdmods/section
docs/initial/vision.mddocs/architecture/01-principles.mddocs/architecture/02-system-map.mddocs/architecture/05-adr/— every major decisiondocs/guides/merge-system.md— how nexus-merge decidesdocs/guides/pr-protocol.mddocs/guides/integration-team.md— always-green main mandatedocs/guides/adr-format.md— when to require a new ADR
docs/INDEX.md— flat alphabetical index of every doc filedocs/guides/glossary.md— every term in one placedocs/guides/cross-linking.md— how to reference other files
| Rule | See |
|---|---|
MIT header on every .md |
docs/guides/file-conventions.md |
| Ch.11 compressed style | docs/guides/style-guide.md |
| One-sentence summary block on every spec | docs/guides/spec-format.md |
| ASCII diagrams over prose for relationships | docs/guides/style-guide.md |
| No emojis except ✓ / ✗ | docs/guides/style-guide.md |
Cross-link with → docs/... |
docs/guides/cross-linking.md |
→ docs/initial/vision.md (constitution).