Skip to main content

Welcome to the Hyperscape Wiki

This wiki provides comprehensive technical documentation for Hyperscape, an AI-powered RuneScape-style MMORPG built on a custom 3D multiplayer engine. Every page is verified against the actual source code.
This documentation is generated from source code analysis. All code references link to actual files in the Hyperscape repository.

Quick Navigation


Repository Structure

The Hyperscape monorepo contains 7 packages managed by Turbo:
hyperscape/
├── packages/
│   ├── shared/              # Core 3D engine (ECS, Three.js, PhysX)
│   ├── server/              # Game server (Fastify, WebSockets, PostgreSQL)
│   ├── client/              # Web client (Vite, React 19)
│   ├── plugin-hyperscape/   # ElizaOS AI agent plugin
│   ├── physx-js-webidl/     # PhysX WASM bindings
│   ├── asset-forge/         # AI asset generation (MeshyAI, GPT-4)
│   └── docs-site/           # Docusaurus documentation
├── world/                   # World configuration and manifests
└── assets/                  # Shared game assets

Build Dependency Graph

Packages must build in this order due to dependencies:
The first build takes 5-10 minutes due to PhysX WASM compilation. Subsequent builds use cache.

Tech Stack

TechnologyVersionPurpose
Bunv1.1.38+JavaScript runtime and package manager
TurboLatestMonorepo build orchestration
Node.js18+Fallback compatibility

Port Allocation

All services use unique ports to avoid conflicts:
PortServiceEnvironment VariableStarted By
3333Game ClientVITE_PORTbun run dev
3400AssetForge UIASSET_FORGE_PORTbun run dev:forge
3401AssetForge APIASSET_FORGE_API_PORTbun run dev:forge
3402Docusaurus(hardcoded)bun run docs:dev
4000ElizaOS Dashboard(internal)bun run dev:ai
4001ElizaOS APIELIZAOS_PORTbun run dev:ai
5555Game ServerPORTbun run dev

Development Commands

# Install dependencies
bun install

# Build all packages (required before first run)
bun run build

# Development mode with hot reload
bun run dev

# Start game server (production mode)
bun start

Wiki Sections

Engine Architecture

Deep dive into the Hyperscape 3D engine:

Game Systems

All gameplay mechanics:

AI Agents

ElizaOS integration:

Data Manifests

Content definitions:

Technical Reference