# apps/docs/src/prototypes/ — Interactive Prototypes

Browser-based prototypes that validate game subsystems before backend migration. All run in-browser with localStorage — no SpacetimeDB connection.

## Structure

| Directory | Description |
|-----------|-------------|
| `game-slice/` | Full MVP loop prototype (undock → navigate → mine → dock → refine → fit → sell → combat) |
| `existing-demos/` | 14 standalone demos, each validating one game subsystem |
| `r3f/` | Reusable React Three Fiber 3D scenes shared across demos |
| `standalone-huds/` | HUD prototype frames and wrappers |

## Relationship to Production Code

Prototypes are **reference implementations**. When a system is ready for production, the prototype logic migrates:
1. State management (localStorage) → SpacetimeDB tables
2. Event sourcing → SpacetimeDB reducers
3. UI components → `apps/game/src/ui/` components

The game-slice prototype has the richest implementation of combat, fitting, refining, skills, objectives, and Zora — all of which need backend tables before they can migrate.
