Backend API service for Heavy Water / D2O PlayStation Home spaces and minigames.
- Emo Ray vs. Intergalactic Teddy Bears (Day One)
- Story & mission progression
- Equipped weapon loadouts & mod parts
- Vehicle upgrades, decals, and store progress
- Session metrics & score tracking
- Controller camera & sensitivity configurations
- Global arcade cabinet leaderboards
- RC Rally (Heavy Water Communicator)
- Track lap times & split times (
SERVICE: Times) - Car parts loadouts & customizations (
SERVICE: Parts) - Race objective triggers (
SERVICE: Objectives)
- Track lap times & split times (
- Avalon Keep & Avalon Faire (Heavy Water Apartment & Space)
- House Banner selection (Dragon vs. Lion)
- Avalon Keep state persistence (
MyAvalonKeepData) - Universal D2O player profile sync (
D2OData) - Crystal Hunter minigame community contributions (
/D2O/Avalon/contributions) - Session telemetry & metrics tracking
- D2O ID resolution & NP Ticket verification (
/D2O/Ticket/verify/*)
- 🎟️ Sony NP Ticket Parsing: Binary layout decoding (based on
npticket-rs) extracting PSN username, account ID, and region. - 💾 SQLite Persistence: Powered by Drizzle ORM and Bun SQLite with built-in default initialization.
- 🪵 Observability: LogLayer, Pino pretty logging, and OpenTelemetry OTLP tracing / log exporting.
Route the following domains through your DNS / reverse proxy to this container (default port 30086):
| Domain | Protocol | Purpose |
|---|---|---|
services.heavyh2o.net |
HTTP | EmoRay progression, equipped, scores, and RC Rally Communicator XML |
secure.heavyh2o.net |
HTTPS | PlayStation Network Ticket Validation (/D2O/Ticket/validate/*) |
www.services.heavyh2o.net |
HTTP | Client fallback / standard base URL |
Tip
Use mallory-rs to easily debug and proxy HTTPS/TLS requests from the PS3 client.
-
Install dependencies:
bun install
-
Start the development server:
bun run dev
-
Run unit tests & linting:
bun test bun run lint
Run with Docker Compose:
docker compose up -dThe service will start listening on port 30086.