Developer documentation

Everything you need to write a mod, a skin, a map script or a theme for Prism, and to publish it.

Mod API version 2

For AI assistants and editors

The typed SDK and a single file to paste into a coding assistant. The addresses are stable.

Get started

  • Writing a mod for Prism

    Quick start: a mod folder, main.ts, a first HUD, installing and exporting.

  • Concepts: how a mod works

    Lifecycle, threads and budgets, events, permissions, errors, determinism and what is forbidden.

  • Mod API reference (version 2)

    Mod API reference (version 2), namespace by namespace, checked against the SDK.

  • Cookbook

    Complete recipes type-checked against the SDK: HUD, native rendering, settings, judgement sets, difficulty ratings.

Mods

Skins, themes and menus

  • Skins

    Writing a skin: defineSkin, the playfield reference, native drawing, player settings.

  • Map scripts

    Map scripts (defineChart): what they change, budgets, replays.

  • Interface themes

    Interface themes: the token contract, layout choices, writing a theme.

  • Menus: behaviour and themes

    Menus: behaviour, the behaviour API and themes, the modifier selector.

Distribution and contracts

Submit a mod to the verified catalogue