Skip to content

About

API server for HeavyH2O's PlayStation Home minigames (Emo Ray, RC Rally, etc.)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

🌊 psh-heavywater 🕹️

Backend API service for Heavy Water / D2O PlayStation Home spaces and minigames.

Lint & Tests Status Build Status Docker Image License


🌟 Authors

🚧 Supported Spaces & Games

  • 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)
  • 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/*)

🌠 Features

  • 🎟️ 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.

🌐 Required Domains

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.


🧰 Getting Started

Quick Local Run

  1. Install dependencies:

    bun install
  2. Start the development server:

    bun run dev
  3. Run unit tests & linting:

    bun test
    bun run lint

Docker Deployment

Run with Docker Compose:

docker compose up -d

The service will start listening on port 30086.

About

API server for HeavyH2O's PlayStation Home minigames (Emo Ray, RC Rally, etc.)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages