# raft-the-crab/pokox architecture

> Architecture diagram of the GitHub repository raft-the-crab/pokox, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/raft-the-crab/pokox
- Repository: https://github.com/raft-the-crab/pokox

## Overview

Poko is an early-development UGC game platform described as serving creators and players through Poko Studio and PokoX, with a Rust engine, Mute scripting, backend services, and external storage. The documented creator workflow is to build, share, and monetize games; the player-facing result is access to games. The supplied material contains no source excerpts, so this map reflects README-level architecture only. Paths point to the corresponding planning documents, not verified implementations; internal runtime connections are omitted where the README does not establish them.

Main entry points: [`docs/plan/05-engine-core.md`](https://github.com/raft-the-crab/pokox/blob/master/docs/plan/05-engine-core.md) (Engine Core), [`docs/plan/06-rendering-platform.md`](https://github.com/raft-the-crab/pokox/blob/master/docs/plan/06-rendering-platform.md) (Rendering Adapter), [`docs/plan/08-assets-audio-packages.md`](https://github.com/raft-the-crab/pokox/blob/master/docs/plan/08-assets-audio-packages.md) (Audio Adapter), [`docs/plan/09-mute-compiler-vm.md`](https://github.com/raft-the-crab/pokox/blob/master/docs/plan/09-mute-compiler-vm.md) (Mute Compiler VM)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_apps["Player and Creator Apps"]
  node_studio["Poko Studio<br/>[11-studio.md]"]
  node_pokox["PokoX Client<br/>[13-pokox.md]"]
end

subgraph group_engine["Game Engine"]
  node_engine_core["Engine Core<br/>[05-engine-core.md]"]
  node_physics["Physics Engine<br/>[07-physics.md]"]
  node_rendering["Rendering Adapter"]
  node_audio["Audio Adapter"]
  node_ui["In-Game UI<br/>[12-ui-system.md]"]
end

subgraph group_scripting["Scripting"]
  node_mute["Mute Compiler VM"]
end

subgraph group_services["Platform Services"]
  node_main_backend["Main Backend<br/>[14-backend-data.md]"]
  node_game_handler["Game Handler"]
  node_edge_apis["Studio Edge APIs<br/>[10-mute-tooling.md]"]
  node_r2[("Cloudflare R2<br/>[14-backend-data.md]")]
  node_postgresql[("PostgreSQL<br/>[14-backend-data.md]")]
  node_valkey[("Valkey<br/>[14-backend-data.md]")]
end

node_creator(("Creator"))
node_player(("Player"))

node_creator -->|"builds with"| node_studio
node_player -->|"plays through"| node_pokox
node_rendering -->|"C adapter"| node_engine_core
node_audio -->|"C adapter"| node_engine_core
node_mute -->|"C ABI"| node_engine_core

click node_studio "https://github.com/raft-the-crab/pokox/blob/master/docs/plan/11-studio.md"
click node_pokox "https://github.com/raft-the-crab/pokox/blob/master/docs/plan/13-pokox.md"
click node_engine_core "https://github.com/raft-the-crab/pokox/blob/master/docs/plan/05-engine-core.md"
click node_physics "https://github.com/raft-the-crab/pokox/blob/master/docs/plan/07-physics.md"
click node_rendering "https://github.com/raft-the-crab/pokox/blob/master/docs/plan/06-rendering-platform.md"
click node_audio "https://github.com/raft-the-crab/pokox/blob/master/docs/plan/08-assets-audio-packages.md"
click node_ui "https://github.com/raft-the-crab/pokox/blob/master/docs/plan/12-ui-system.md"
click node_mute "https://github.com/raft-the-crab/pokox/blob/master/docs/plan/09-mute-compiler-vm.md"
click node_main_backend "https://github.com/raft-the-crab/pokox/blob/master/docs/plan/14-backend-data.md"
click node_game_handler "https://github.com/raft-the-crab/pokox/blob/master/docs/plan/15-authority-networking.md"
click node_edge_apis "https://github.com/raft-the-crab/pokox/blob/master/docs/plan/10-mute-tooling.md"
click node_r2 "https://github.com/raft-the-crab/pokox/blob/master/docs/plan/14-backend-data.md"
click node_postgresql "https://github.com/raft-the-crab/pokox/blob/master/docs/plan/14-backend-data.md"
click node_valkey "https://github.com/raft-the-crab/pokox/blob/master/docs/plan/14-backend-data.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_studio,node_pokox toneBlue
class node_engine_core,node_physics,node_rendering,node_audio,node_ui toneAmber
class node_mute toneMint
class node_main_backend,node_game_handler,node_edge_apis,node_r2,node_postgresql,node_valkey toneRose
class node_creator,node_player toneIndigo
```

## Components

### Player and Creator Apps

- [Poko Studio](https://github.com/raft-the-crab/pokox/blob/master/docs/plan/11-studio.md): `docs/plan/11-studio.md`
- [PokoX Client](https://github.com/raft-the-crab/pokox/blob/master/docs/plan/13-pokox.md): `docs/plan/13-pokox.md`

### Game Engine

- [Engine Core](https://github.com/raft-the-crab/pokox/blob/master/docs/plan/05-engine-core.md): `docs/plan/05-engine-core.md`
- [Physics Engine](https://github.com/raft-the-crab/pokox/blob/master/docs/plan/07-physics.md): `docs/plan/07-physics.md`
- [Rendering Adapter](https://github.com/raft-the-crab/pokox/blob/master/docs/plan/06-rendering-platform.md): `docs/plan/06-rendering-platform.md`
- [Audio Adapter](https://github.com/raft-the-crab/pokox/blob/master/docs/plan/08-assets-audio-packages.md): `docs/plan/08-assets-audio-packages.md`
- [In-Game UI](https://github.com/raft-the-crab/pokox/blob/master/docs/plan/12-ui-system.md): `docs/plan/12-ui-system.md`

### Scripting

- [Mute Compiler VM](https://github.com/raft-the-crab/pokox/blob/master/docs/plan/09-mute-compiler-vm.md): `docs/plan/09-mute-compiler-vm.md`

### Platform Services

- [Main Backend](https://github.com/raft-the-crab/pokox/blob/master/docs/plan/14-backend-data.md): `docs/plan/14-backend-data.md`
- [Game Handler](https://github.com/raft-the-crab/pokox/blob/master/docs/plan/15-authority-networking.md): `docs/plan/15-authority-networking.md`
- [Studio Edge APIs](https://github.com/raft-the-crab/pokox/blob/master/docs/plan/10-mute-tooling.md): `docs/plan/10-mute-tooling.md`
- [Cloudflare R2](https://github.com/raft-the-crab/pokox/blob/master/docs/plan/14-backend-data.md): `docs/plan/14-backend-data.md`
- [PostgreSQL](https://github.com/raft-the-crab/pokox/blob/master/docs/plan/14-backend-data.md): `docs/plan/14-backend-data.md`
- [Valkey](https://github.com/raft-the-crab/pokox/blob/master/docs/plan/14-backend-data.md): `docs/plan/14-backend-data.md`

### Other components

- **Creator**
- **Player**

## Connections

- Creator → Poko Studio: builds with (evidence: `README.md`)
- Player → PokoX Client: plays through (evidence: `README.md`)
- Rendering Adapter → Engine Core: C adapter (evidence: `README.md`)
- Audio Adapter → Engine Core: C adapter (evidence: `README.md`)
- Mute Compiler VM → Engine Core: C ABI (evidence: `README.md`)
