On this page

← All documentation

Catalogue API and package rules

The public catalogue of mods, skins and playlists: the GET /api/catalog contract, what the server accepts, what the game reads and installs, side by side.

The catalogue is the list of mods, skins and playlists published for Prism: mods and playlists after the team approves them, skins as soon as they pass the checks. The Download page of the game (Download → Mods / Skins / Playlists) and the site pages /extensions/ and /playlists/ read it from one endpoint. This page is the contract between the server that publishes it and the game that installs from it, and the limits each side applies. To publish something, see Submit.

Two programs apply rules to the same package, and they do not apply the same ones. The server checks a package before publishing it. The game checks it again before installing it, with the rules of its own importer. A package must pass both. The limits table lists every number of the project in one place.

The list: GET /api/catalog

curl "https://prism.am/api/catalog?kind=mod"
curl -H 'If-None-Match: "<etag>"' https://prism.am/api/catalog

No authentication. Limited to 120 requests per minute per address (429 with Retry-After); see rate limits. The answer has a strong ETag and Cache-Control: no-cache: send If-None-Match and an unchanged catalogue answers 304. The body changes only when the content changes (generatedAt is the last change).

The only parameter is kind=mod|skin|playlist. Absent, every kind is listed. Any other value is a 400. (The OpenAPI text of this parameter still says "mod or skin": the server accepts playlist too.)

{
  "schema": 1,
  "generatedAt": "2026-10-11T09:00:00Z",
  "items": [
    {
      "id": "better-hud",
      "kind": "mod",
      "name": "Better HUD",
      "version": "1.2.0",
      "seq": 7,
      "author": "Ada",
      "descriptionEn": "A cleaner HUD.",
      "descriptionFr": "Un HUD plus propre.",
      "permissions": ["stage"],
      "tags": ["hud", "minimal"],
      "sha256": "43451505e2c8fb5c986c7e1e19a132d333d1b96e6eb03aa576a276903a8738f2",
      "size": 18342,
      "filename": "better-hud-1.2.0.pvmod",
      "url": "/files/catalog/mod/better-hud-1.2.0.pvmod",
      "status": "approved",
      "createdAt": "2026-10-01T10:00:00Z",
      "updatedAt": "2026-10-11T08:59:00Z",
      "screenshots": ["/files/catalog/mod/better-hud-7-1.png"],
      "versions": [
        { "version": "1.2.0", "seq": 7, "publishedAt": "2026-10-11T08:59:00Z", "filename": "better-hud-1.2.0.pvmod", "url": "/files/catalog/mod/better-hud-1.2.0.pvmod", "sha256": "…", "size": 18342 },
        { "version": "1.1.0", "seq": 3, "publishedAt": "2026-10-02T10:00:00Z", "filename": "better-hud-1.1.0.pvmod", "url": "/files/catalog/mod/better-hud-1.1.0.pvmod", "sha256": "…", "size": 17010 }
      ]
    }
  ]
}

There is one entry per id and kind: its newest approved version. Items are sorted by kind (the order of the kind enum), then by name (case-insensitive), then by id. Only approved items are listed, and nothing else is ever public.

Field Meaning
id Stable id of the item (rules below), unique per kind.
kind mod, skin or playlist.
name Display name.
version Free label of the newest approved version. Never parse it or sort by it.
seq Integer that strictly increases per kind, in publication order. It is what orders versions and what the game compares to detect an update.
author Credited author (a display name, not an account).
descriptionEn Plain English text, always present.
descriptionFr Plain French text, absent when none was given.
permissions The permissions the mod declares (stage, skinImport, network…). Always [] for a skin and for a playlist.
tags Up to 8 short labels, shown as chips on the card. Absent when there are none.
sha256, size, filename Lowercase hexadecimal hash, byte size and file name of this version.
url Download address: relative to the site, or absolute when the server knows its public address.
status Always approved in public documents.
owner The owning account; absent until accounts own items.
createdAt, updatedAt First approved publication of the item, and last change of the current version.
screenshots Preview image URLs. Absent when there are none.
versions Every approved version, newest first. The first one is the version of the fields above.

Readers must ignore the fields they do not know: the document only grows, and there will be no v2.

The files

Packages are served at /files/catalog/<kind>/<filename>, like the game's own zips:

  • Content-Disposition: attachment, Cache-Control: public, max-age=31536000, immutable (a file name is never rewritten), Range accepted, X-Content-Type-Options: nosniff;
  • previews (.png, .jpg, .webp) are served without attachment, also immutable;
  • a path with a hidden segment (.held, .incoming) answers 404: a package that is waiting for review cannot be downloaded by guessing its name.

Two documents are rewritten at every change: /files/catalog/catalog.json (every kind, the same shape as GET /api/catalog) and /files/catalog/SHA256SUMS.txt (<sha256> <kind>/<file> for each approved package, checkable with sha256sum -c).

What each kind is

Mod Skin Playlist
File .pvmod .zip .pvplaylist
Format page .pvmod skin package .pvplaylist
State at publication pending: invisible until the author approves it approved: public at once pending: invisible until approved
Limit per person none 2 skins per author (see below) none
Permissions those the mod declares none none

A row has a state: pending → approved ⇄ withdrawn. Only approved rows are public. One row exists per version, and the public version of an id is the newest approved one (highest seq).

The per-person limit counts distinct skin ids by author, where the author key is the author name with spaces collapsed and lower-cased. A new version of a skin does not count as a third skin, and withdrawing a skin frees its place.

Server and game, side by side

Package size

Server (publishing) Game, reading the list Game, importing
Mod package 2 MiB 64 MiB 64 MiB
Skin package 8 MiB 256 MiB 64 MiB
Playlist file 1 MiB 1 MiB 1 MiB

The game drops a list item whose size is above its ceiling, then checks the size and the SHA-256 after downloading. The server's ceilings are what really bound the catalogue today; the game's are wider.

What is inside a ZIP

Server (mod and skin) Game, mod import Game, skin import
Entries 1024 1024 1024
Files 512 256 512
One file, uncompressed 16 MiB 16 MiB 32 MiB
All files, uncompressed 64 MiB 64 MiB 64 MiB
Entry file main.ts or index.ts main.ts or index.ts skin.ts
Allowed extensions ts ttf otf png json md txt the same ts png ttf otf wav ogg flac mp3

Two consequences:

  • A mod with 257 to 512 files passes the server and fails to install in the game.
  • A skin that carries key sounds (wav, ogg, flac, mp3) can be imported in the game but cannot be published: the server accepts only ts png ttf otf for a skin.

Both sides refuse an unsafe path (absolute, .., a drive letter, a backslash), a symbolic link, an encrypted entry, a name that appears twice with the case ignored, and any compression other than stored or deflate. The server also reads each entry for real, to be sure it holds the size it declares. The entry file sits at the root or in the single top folder. See the .pvmod and skin package pages for the exact errors.

A playlist is not a ZIP. The server accepts it only when the game would read it: a JSON object with "format": "pvng-playlist", "version": 1 (a newer version is refused), a name of 1 to 64 characters without control characters or surrounding spaces, at most 200 maps and at most 32 extensions. See .pvplaylist.

Ids

The id of an item is checked three times, with three rules.

Where Rule
Server (id of an item) 1 to 64 characters among a-z, 0-9, -, _, .; the first is a letter or a digit; no ...
Game, reading the list 1 to 64 characters among A-Za-z0-9._-; no leading . or -; no trailing .. An item with another id is dropped.
Mod manifest (defineMod) 1 to 64 characters among a-z, 0-9, ., -, _; starts and ends with a letter or a digit; no ..; usable as a Windows file name.

The server allows a trailing ., and the game silently ignores such an item. To satisfy all three: lowercase letters, digits and - _ . inside, starting and ending with a letter or a digit, no .., 64 characters at most. Use the same id in the catalogue and in defineMod.

Text

Field Server Game
name, author 64 characters keeps 80
version 32 characters keeps 32
Description 2000 characters keeps 600
Permissions 8, each up to 32 letters or digits starting lowercase keeps 12 names of up to 32 characters among A-Za-z0-9_-
Tags 8, each 1 to 24 characters, lower-cased, no comma or control character keeps 8
Screenshots 3, each a real PNG, JPEG or WebP of at most 512 KiB keeps 6
List no limit reads at most 1 MiB and 500 items

The server rejects a value that breaks its rule. The game truncates or drops what is over its own, and ignores an invalid item without breaking the list.

What the game does with an item

  • The list is requested when a section opens, never before. The game sends no identifier (no cookie, no token, no machine or player id), only Accept and its user agent. The address is https://prism.am unless the player changed it: the environment variable PRISM_CATALOG wins, then Settings → Library → Catalogue address.
  • Every request stays on one host: the same scheme, host and port as the catalogue address. A redirect to another host is refused, at most 3 redirects are followed, and a public https catalogue refuses private or local addresses. An item whose url points elsewhere is dropped.
  • The file goes to a temporary folder, with progress and a cancel button. Its exact size and its SHA-256 are verified; any difference deletes the file and shows an error.
  • The checked file is handed to the same importer as a manual import: the game's mod installer for a .pvmod, the skin library for a .zip, the playlist import for a .pvplaylist. All the package rules above apply again.

What happens when something already exists:

Kind Behaviour
Mod An installed mod with the same id is replaced (that is the update). A mod arriving from the catalogue is installed disabled: the player turns it on from the Mods page. An update keeps the mod's state.
Skin A skin never overwrites a skin. The import gives it a free folder name (neon-2), so an update sits next to the old one.
Playlist An install always adds a new playlist; nothing is replaced.

The game remembers which catalogue item each local one came from (seq and version). With that link, an item is an update when the catalogue's seq is greater. Without it (installed by hand), the versions are compared when both are dot-separated numbers, and otherwise the item counts as installed. This is why seq, not version, is the order.

The permissions shown before installing are the ones the catalogue announces. What counts is the package's manifest: if the package declares one the catalogue did not announce, the game says so after installing.

Maintaining the catalogue

The author adds items by hand with the prism-admin command on the server. This is not an API; it is listed so that the rules above have a visible origin.

catalog add --kind mod|skin|playlist --file <.pvmod|.zip|.pvplaylist> --id <slug> --name <name> --version <label> --author <name>
            --desc-en <text> [--desc-fr <text>] [--permissions stage,skinImport] [--owner <account>] [--screenshot <png|jpg|webp>]… [--tag <label>]…
catalog list [--kind …] [--status pending|approved|withdrawn]
catalog approve <id> [<version>] [--kind …]
catalog withdraw <id> [<version>] [--kind …] [--reason …]
catalog verify [--kind …]
catalog regenerate

add refuses: a duplicate id plus version or file name, an id already held by another author, a third skin of one author, a file that is too large, not a ZIP or holding an unsafe entry, a permission declared on a skin or a playlist, and a preview that is not a real image (recognised by its content). verify re-hashes every file wherever its state puts it, and regenerate rewrites catalog.json and SHA256SUMS.txt.

Source in the game repository: services/api/docs/CATALOG.md,services/api/src/catalog/validate.rs,services/api/src/catalog/archive.rs,services/api/src/catalog/playlist.rs,services/api/src/catalog/documents.rs,services/api/src/catalog/store.rs,services/api/src/catalog/limiter.rs,services/api/src/controllers/catalog.rs,services/api/types/src/lib.rs,crates/downloader/src/repository.rs,apps/desktop/src/app/hosted.rs,crates/modding/src/package.rs,crates/skin/src/package.rs,docs/catalogue.md