Captain Industries

PaintShelf

PaintShelf scheme link format

Format versions 1, 2 and 3 · Published 21 November 2026 · Captain Industries

In short: a scheme is a small JSON document, UTF-8 then base64url, carried after #d=in a link to this site. Anyone can make one. The app reads it, matches the paints to its catalogue by id or by brand and name, and shows the painter a preview before anything is saved. Nothing in the link reaches our server.

The link

Two forms carry the same payload. Share the first; the app also opens the second.

https://captainindustries.ie/paintshelf/s#d=<payload>
paintshelf://import-scheme?d=<payload>

The payload is the JSON below, encoded as UTF-8 and then base64url (RFC 4648 §5, alphabetA–Z a–z 0–9 - _, no padding). It sits in the fragment, so a browser never sends it to us. A painter can paste the whole link, a message with the link somewhere in it, or the bare payload into Schemes › Import.

A QR code should hold the whole link in 1,500 bytes or fewer, which is about fifteen steps in version 1. Longer schemes go as a link.

The JSON

{
  "v": 2,
  "n": "Ultramarines armour",
  "s": [
    { "p": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d", "t": "basecoat", "o": "Two thin coats",
      "n": "Macragge Blue", "b": "citadel", "h": "0d407f" },
    { "c": { "b": "Vallejo", "n": "Ultramarine Blue", "h": "#2a4b9b" }, "t": "layer", "o": null,
      "n": "Ultramarine Blue", "b": "custom", "h": "2a4b9b" }
  ]
}
FieldMeaning
v1, 2 or 3 (a set, below). Version 2 adds n, b and h to every step so a web page can draw the scheme without the catalogue. Make version 2 unless you need the smallest possible QR code.
nThe scheme's name.
sThe steps, in painting order.

A step

FieldMeaning
pA PaintShelf catalogue paint id: the 36-character UUID, or the same 16 bytes as 22 base64url characters, which is what the app writes. Exactly one of p or c.
cA paint named by value: b brand, n name, h colour as #rrggbb or null. Use this when you have no catalogue id.
tTechnique, one of basecoat, shade, layer, highlight, glaze, drybrush, wash, other.
oThe step's note, or null. Always present.
nVersion 2 only. The paint's name, up to 200 characters.
bVersion 2 only. The brand as a lower-case slug, up to 40 characters (citadel, vallejo, army-painter); custom for a paint sent by value.
hVersion 2 only. Six lower-case hex digits without #, or null.

How the app imports it

  • A step with p is matched to the catalogue by id. An id the app does not know (a newer catalogue than the painter has) keeps its place as an unknown paint named from n.
  • A step with c is matched to the catalogue by brand and name, ignoring case, so { "b": "Citadel", "n": "Macragge Blue" } lands on the real paint. If nothing matches, the painter gets a custom paint with that brand, name and colour.
  • A paint the maker has discontinued is swapped for its successor, once, and the preview says so.
  • The preview marks every step Owned, Missing or Not in catalogue before anything is saved. Missing paints can go straight to the shopping list.

If you publish schemes from your own site or tool, send version 2 with c steps using the brand's everyday name and the paint name as printed on the pot. That needs no catalogue access and matches the catalogue whenever the names agree.

Version 3: a set

A scheme can be linked to other schemes, its parts: a cloak, a trim, a base. Version 3 carries the scheme and its parts in one link. It is version 2 plus one field, l, on the top scheme. A scheme with no parts is still version 2, so older apps keep reading everything they could read before.

FieldMeaning
v3.
n, sThe top scheme's name and its own steps, exactly as in version 2. The steps use the version 2 step.
lThe parts, in order. At least one; an empty list is refused (send version 2 instead).

A part

FieldMeaning
iThe part's id. Required. Either a 36-character UUID or the same 16 bytes as 22 base64url characters, which is what the app writes. It becomes the id of the saved scheme, so the same part sent twice, or sent to a painter who already has it, is recognised.
nThe part's name.
sThe part's own steps, in painting order, each a version 2 step.

These are refused, and the app shows the link as not valid rather than importing part of it:

  • a version above 3;
  • an empty l;
  • a part with no i, or one that is neither a UUID nor 22 base64url characters;
  • two parts with the same id;
  • a part with parts of its own (an l inside a part), or any field other than i, n and s. A set is one level deep.

How the app imports a set

  • The top scheme is saved as a new scheme, with its steps matched to paints as above.
  • A part the painter already has (the same id, not deleted) is linked and kept as theirs. Their steps stay, and the part's steps in the link are ignored.
  • Any other part is created under the id in the link, with its own steps, and linked.
  • The preview lists the top scheme and each part, marks every paint Owned, Missing or Not in catalogue across the whole set, and can put all the missing paints on the shopping list with one tap.
  • Linking schemes is a Premium feature. With Premium the painter chooses Save set, which saves everything with its links. Without it they can choose Save as separate schemes, which saves the same schemes with no links, or Get Premium.

A worked example

A top scheme with one step and two parts of two steps each. Open it to see how the page draws a set.

https://captainindustries.ie/paintshelf/s#d=eyJ2IjozLCJuIjoiVWx0cmFtYXJpbmVzIENhcHRhaW4iLCJzIjpbeyJwIjoicmlueWNkLVhUTnlmTHdGNkxJaTFuQSIsInQiOiJiYXNlY29hdCIsIm8iOiJUd28gdGhpbiBjb2F0cyIsIm4iOiJNYWNyYWdnZSBCbHVlIiwiYiI6ImNpdGFkZWwiLCJoIjoiMGYzZDdjIn1dLCJsIjpbeyJpIjoib2JMRDFPWDJTbnVNblE0ZktqdE1YUSIsIm4iOiJDbG9hayIsInMiOlt7InAiOiJ4OFNhQTZTTFJsYWRqSDdkWTMxLU1nIiwidCI6ImJhc2Vjb2F0IiwibyI6bnVsbCwibiI6IkFiYWRkb24gQmxhY2siLCJiIjoiY2l0YWRlbCIsImgiOiIwMDAwMDAifSx7InAiOiJCVjdESHZpMFJMNlVTYzdVM0tGMUVBIiwidCI6Indhc2giLCJvIjoiSW50byB0aGUgZm9sZHMiLCJuIjoiTnVsbiBPaWwiLCJiIjoiY2l0YWRlbCIsImgiOiI5ZTlhOTgifV19LHsiaSI6InNzUFU1ZmFuUzR5ZERoOHFPMHhkYmciLCJuIjoiR29sZCB0cmltIiwicyI6W3sicCI6IlhxaDVQWEZTVGpHbjNOVEVPLXRvUHciLCJ0IjoiYmFzZWNvYXQiLCJvIjpudWxsLCJuIjoiUmV0cmlidXRvciBBcm1vdXIiLCJiIjoiY2l0YWRlbCIsImgiOiJlZGMxNjkifSx7InAiOiJCVjdESHZpMFJMNlVTYzdVM0tGMUVBIiwidCI6Indhc2giLCJvIjpudWxsLCJuIjoiTnVsbiBPaWwiLCJiIjoiY2l0YWRlbCIsImgiOiI5ZTlhOTgifV19XX0

The payload decodes to:

{
  "v": 3,
  "n": "Ultramarines Captain",
  "s": [
    { "p": "rinycd-XTNyfLwF6LIi1nA", "t": "basecoat", "o": "Two thin coats", "n": "Macragge Blue", "b": "citadel", "h": "0f3d7c" }
  ],
  "l": [
    { "i": "obLD1OX2SnuMnQ4fKjtMXQ", "n": "Cloak", "s": [
      { "p": "x8SaA6SLRladjH7dY31-Mg", "t": "basecoat", "o": null, "n": "Abaddon Black", "b": "citadel", "h": "000000" },
      { "p": "BV7DHvi0RL6USc7U3KF1EA", "t": "wash", "o": "Into the folds", "n": "Nuln Oil", "b": "citadel", "h": "9e9a98" }
    ] },
    { "i": "ssPU5fanS4ydDh8qO0xdbg", "n": "Gold trim", "s": [
      { "p": "Xqh5PXFSTjGn3NTEO-toPw", "t": "basecoat", "o": null, "n": "Retributor Armour", "b": "citadel", "h": "edc169" },
      { "p": "BV7DHvi0RL6USc7U3KF1EA", "t": "wash", "o": null, "n": "Nuln Oil", "b": "citadel", "h": "9e9a98" }
    ] }
  ]
}

What a link never carries

Only the scheme and its paints. No photos, projects, painting sessions, shelf contents or anything about the sender. A link is readable by anyone who has it, so share it as you would any text.

Every version stays readable in every future app release. A change that older apps could not read would be a new version number, and this page would say so. Questions: contact@captainindustries.ie.