paslen vibes
← All vibes

Vibe JSON schema

Plain text JSON Schema Paste it into your AI agent and ask for a vibe — it returns JSON you can send to Paslen.

A vibe is a single JSON object that describes how the Paslen timer looks — colors, digits and the ticks of the dial — and which playlist goes with it. Copy it from any vibe page, or send it straight to the app with the Copy & open in Paslen button and tap Paste there.

The dial is a round drum with one tick per minute (25 for a work session): ticks up to the current minute are filled, the rest empty; the 12 o’clock tick is a hollow marker until the circle is full; big digits sit in the middle. Everything a vibe leaves out is taken from the app theme.

Plain-text version of this document: https://paslenstudio.github.io/vibes/schema.txt Formal JSON Schema (draft 2020-12), for validation: https://paslenstudio.github.io/vibes/schema.json

The whole JSON is limited to 20,000 characters. Top-level fields are optional; if you include backdrop, it must contain a drawing source (shape, svg or icon).

{
  "name": string,
  "playlist": url,                        // Spotify, Yandex Music, Deezer, ...
  "colors": {
    "background": color | [color, ...],   // a list is a top-to-bottom gradient
    "accent", "dim", "marker", "markerFill", "notch", "shadow": color
  },
  "digits": { "shadowOffset": [x, y] },   // -30..30
  "ticks": {
    "styles": {
      "<name>": {
        "shape": "line" | "capsule" | "wedge" | "pixel" | "palm-leaf" | "pistol-round" | "rifle-round" | "coconut-frond" | "palm-tree",
        "icon": "<one of 80 names>", "iconStyle": "fill" | "outline",
        "svg": "<path data or <svg> fragment>", "stroke": 0..30, "fillRule": "nonzero" | "evenodd",
        "radial": true | false, "core": 0..1,
        "width": 0.5..100, "length": 0.2..3, "glow": 0..60, "glowStrength": 0.2..3, "notch": bool,
        "shadowOffset": [x, y]          // -50..50
      }
    },
    "filled": ["<name>", ...], "empty": ["<name>", ...],
    "major": "<name>" | { "filled": "<name>", "empty": "<name>", "every": 2..60 },
    "marker": "<name>",
    "gradient": color | [color, ...],
    "layout": "ring" | "scatter",
    "random": { "seed": int, "order": bool, "offset": -80..80, "rotation": -180..180, "scale": [min, max] }  // 0.2..3
  },
  "backdrop": {                           // one picture under the digits
    "shape": "<figured shape>", "svg": "<path data or <svg> fragment>", "icon": "<icon name>",
    "iconStyle": "fill" | "outline", "fillRule": "nonzero" | "evenodd",
    "stroke": 0..30, "size": 0.1..1.5, "rotation": -180..180, "offset": [x, y], "color": color  // offset -1..1
  }
}

Schema fields

Top level

Field Type Notes
name string Vibe name
playlist string Link to a playlist in any music service; the timer’s music button opens it
colors object See colors
digits object See digits
ticks object See ticks
backdrop object A picture under the digits, see backdrop

colors

Field Type Notes
background color or [color, ...] A list is a top-to-bottom gradient
accent color Digits, filled ticks, the clock and the buttons
dim color Empty ticks (default: accent)
marker color Outline of the 12 o’clock marker (default: the tick color)
markerFill color Inside of the marker (default: the top background color)
notch color Cross-line in a tick (default: markerFill)
shadow color Offset colored copy of digits and ticks; no shadow without it

Colors are hex strings: "#RGB", "#RRGGBB" or "#AARRGGBB".

digits

Field Type Range
shadowOffset [x, y] each -30..30, in dp; needs colors.shadow

ticks

Field Type Values
styles object Named tick styles: { "<name>": style }, see tick style
filled ["<name>", ...] Repeating pattern of filled ticks from minute 1: minute i uses item (i - 1) mod length
empty ["<name>", ...] The same for empty ticks
major "<name>" or object Fixed style of every 5th minute (or every every-th), overrides the pattern: { "filled": "<name>", "empty": "<name>", "every": 2..60 }
marker "<name>" Style of the hollow 12 o’clock marker (default: that tick’s style)
gradient color or [color, ...] Color of filled ticks along the arc: the first color at minute 1, the last at the 12 o’clock tick; if omitted or empty, accent. On a light background the app reverses a gradient whose first color is darker than its last: write it from light to dark
layout string "ring" (around the drum) or "scatter" (random spots around the digits)
random object See random

Tick style

Field Type Values
shape string "line" (flat bar), "capsule" (rounded bar, default), "wedge" (teardrop), "pixel" (glitchy blocks), or a figured shape: "palm-leaf", "pistol-round", "rifle-round", "coconut-frond", "palm-tree"
icon string A built-in icon instead of shape, only for major ticks, see icons
iconStyle string "fill" or "outline" (good for empty ticks)
svg string A custom shape instead of shape: path data or an <svg> fragment, see custom svg
stroke number 0..30: outline width for svg, icons and figured shapes; 0 (default) fills the path
fillRule string "nonzero" or "evenodd" (for shapes with holes)
radial bool Icons, svg and figured shapes turn with the ring, top outwards (default true); false keeps them upright. The primitive line, capsule, wedge and pixel shapes always turn with the ring
core number 0..1 (default 0): a neon tube — a light core along the tick, as a share of its width, in the tick color lightened to white; line and capsule only. Pair it with a bright glow, e.g. { "shape": "capsule", "width": 6, "length": 1.3, "glow": 18, "glowStrength": 2.4, "core": 0.45 } (Vice)
width number 0.5..100; the standard filled tick is 15 wide, the empty one 3
length number 0.2..3, a multiplier of the standard length
glow number 0..60, glow radius; 0 = none
glowStrength number 0.2..3, glow brightness (default 1); 2–2.5 for neon
notch bool Cross-line in the middle of the tick (not for svg, icons or figured shapes)
shadowOffset [x, y] each -50..50; needs colors.shadow

random

Field Type Values
seed int Same seed, same picture on every device
order bool Pattern styles go to ticks randomly instead of in turn (major stays fixed)
offset number -80..80, how far a tick may move off the ring (ring layout only)
rotation number -180..180, how far a tick may turn, degrees
scale [min, max] each 0.2..3, random tick size

Icons

80 built-in icons (case, _ and spaces don’t matter). When writing a new vibe, use tick icons only in styles referenced by major, never in filled, empty or marker. Icons may also be used in a backdrop; that picture is independent of the minute ticks. The app still accepts icons in other tick styles for compatibility with saved vibes. skull, ghost, bone, sword, axe, mask-happy, mask-sad, eye, fire, flame, lightning, smiley, leaf, tree, tree-evergreen, tree-palm, flower, flower-lotus, flower-tulip, plant, cactus, clover, acorn, feather, mountains, waves, sun, moon, moon-stars, star, star-four, sparkle, cloud, cloud-lightning, snowflake, drop, rainbow, cat, dog, paw-print, bird, butterfly, fish, rabbit, bug, horse, coffee, pizza, cookie, cake, ice-cream, pepper, orange-slice, wine, rocket, planet, alien, atom, robot, lightbulb, gear, heart, crown, diamond, spade, club, trophy, key, anchor, hourglass, music-note, headphones, guitar, gift, balloon, umbrella, spiral, hexagon, triangle, circle.

Icons and svg are fitted into width × (48 × length) keeping proportions: use width 18–32 for icons on major ticks; an svg tick is 12–20 wide when filled and 10–16 when empty.

Custom svg

Draw the object vertically and elongated (clearly taller than wide) on a 24×24 grid, as the tick looks at 12 o’clock: centred on x = 12, its point or head at the top (the outer end), never diagonally. For example, a sword: "M12 1L14 4V15H18V17.5H13V21H14.5V23H9.5V21H11V17.5H6V15H10V4Z". Build it from several closed subpaths and cut holes for key details with "fillRule": "evenodd"; absolute M/L/H/V/C/Q/A/Z, up to 600 characters; keep holes and gaps at least 2 units wide. Use stroke only for line art. Prefer a figured shape or a ready-made svg when one fits.

Both tick svg and backdrop svg accept path data or an <svg> fragment containing <path d="…"> elements. The app accepts absolute and relative M/L/H/V/C/S/Q/T/A/Z commands; there are hard limits of 8,000 characters and 800 commands per svg. The shorter budgets above and below are writing recommendations, not parser limits. Draw directly in path coordinates: group transforms, CSS, text and other SVG elements are not applied.

Figured shapes

Leaves and cartridges from the built-in Paslen vibes are shape values: write the name, not a path. They are drawn like an svg: fitted into width × length, turned with the ring (or upright with "radial": false); with "stroke": 1.5 and a slightly smaller width the same shape becomes an outline for empty ticks.

shape Looks like Style used in Paslen
"palm-leaf" banana palm leaf with torn edges and a cut-out vein "width": 20, "length": 1.5
"pistol-round" short cartridge: round bullet, case, rim (Ocean Drive) "width": 13, "length": 0.95; empty: "stroke": 1.5, "width": 12, "length": 0.9
"rifle-round" long pointed cartridge, twice the pistol round; good for major "width": 18, "length": 1.7; empty: "stroke": 1.5, "width": 16, "length": 1.6
"coconut-frond" coconut palm frond arching to the right, drooping leaflets; good as an outlined backdrop backdrop: "stroke": 2, "size": 0.72, "rotation": 25
"palm-tree" synthwave palm silhouette: curved trunk, crown of solid drooping fronds with a ragged fringe underneath; a filled backdrop (Ocean Drive, Vice) backdrop: "size": 0.78, no stroke

For example: "bullet": { "shape": "pistol-round", "width": 12, "length": 0.85, "glow": 8 }.

backdrop

One optional picture on the drum, under the digits and the ticks: a palm frond behind the numbers, a moon, a skull. It stays upright (it does not turn with the ring).

Field Type Values
shape / svg / icon string What to draw: a figured shape, a custom svg or a built-in icon. At least one is required; svg and icon together are an error. Prefer one source; svg or a known icon overrides shape
iconStyle string "fill" (default) or "outline", as in a tick style
fillRule string "nonzero" (default) or "evenodd"; preserves evenodd declared by an SVG fragment or a figured shape
stroke number 0..30, outline width in dial units; 0 (default) fills the picture
size number 0.1..1.5, side of the square it is fitted into, in diameters of the tick ring (default 0.8); keep it under ~0.75 so it stays inside the ticks
rotation number -180..180, clockwise turn in degrees (default 0)
offset [x, y] each -1..1, shift of its centre in radii of the tick ring (default [0, 0])
color color Default: dim. Use a translucent #AARRGGBB color: the digits must stay readable on top

An empty backdrop is an error. Primitive tick shapes (line, capsule, wedge, pixel) are not backdrop shapes. If no source is recognized, the app omits the picture and shows a warning while keeping the rest of the vibe. Invalid numeric ranges or SVG syntax are errors. Leave out backdrop entirely when no picture is needed.

Drawing your own svg for a backdrop:

For example, Ocean Drive’s palm silhouette: "backdrop": { "shape": "palm-tree", "size": 0.78, "offset": [0, 0.02], "color": "#59139FA6" }.

Ready-made svg

Paths to paste into svg:

Shape Use Style
Petal narrow petal or flame "width": 16, "length": 1.5
Star five-pointed star, not elongated: for major or scatter only "width": 14..34

Petal: "M12 2C15.5 7 15.5 14 12 22C8.5 14 8.5 7 12 2Z"

Star: "M12 2L14.35 8.76 21.51 8.91 15.8 13.24 17.88 20.09 12 16 6.12 20.09 8.2 13.24 2.49 8.91 9.65 8.76Z"

Example

{
  "name": "Forest night",
  "colors": {
    "background": ["#2f4743", "#22352f"],
    "accent": "#9cc97a",
    "dim": "#4f6b5f"
  },
  "ticks": {
    "styles": {
      "stem": { "shape": "capsule", "width": 12, "length": 1.1 },
      "stemDim": { "shape": "capsule", "width": 5 },
      "leaf": { "icon": "leaf", "width": 26, "length": 1.4 },
      "leafDim": { "icon": "leaf", "iconStyle": "outline", "width": 18, "length": 1.2 }
    },
    "filled": ["stem"],
    "empty": ["stemDim"],
    "major": { "filled": "leaf", "empty": "leafDim" },
    "layout": "ring"
  }
}

Rules for writing a vibe