Overview
The@hyperscape/client package is the web game client:
- Vite for fast builds with HMR
- React 19 UI framework
- Three.js WebGPU rendering (WebGPU required - no WebGL fallback)
- Capacitor for iOS/Android mobile builds
- Privy authentication
- Farcaster miniapp SDK
Package Location
Screens
Located insrc/screens/:
Streaming Entry Points (March 2026)
The client includes dedicated entry points for streaming capture (commit 71dcba8): Entry Points:src/index.html/src/index.tsx- Main game (full UI)src/stream.html/src/stream.tsx- Streaming mode (minimal UI)
- Optimized streaming capture with minimal UI overhead
- Separate bundles reduce streaming page load time
- Automatic viewport mode detection for conditional rendering
- Clear separation between game and streaming entry points
UI Components
Located insrc/components/:
HUD Components
- Health/Constitution display
- Combat status indicators
- Skills panel with XP progress
- 28-slot inventory grid
- Equipment slots display
- Bank interface (unlimited storage)
- Chat window
- Minimap with compass
Game Components
- Three.js 3D renderer
- Camera controller (third-person, click-to-move)
- Input handler (WASD movement, click actions)
- Entity renderers (players, mobs, items)
- VRM avatar display with emotes