Template Format
One JSON file.
Infinite variations.
Templates are portable, readable, and designed to be authored by humans or generated by LLMs. A template is a prompt skeleton plus a set of weighted variable lists — optionally with an embedded p5.js sketch for live visual output.
The same JSON drives prompt assembly, batch evaluation runs of up to 100 variations, and agent persona definitions — one schema, three runtimes.
Import from PNG metadata, generate with the Template Generator, or author by hand. Share them, remix them, version them in git.
strange-attractors.json
{
"promptTemplate": "a {{attractor}} in {{palette}}, {{mood}}",
"variables": [
{
"name": "attractor",
"feature_name": "Attractor Type",
"values": [
{ "text": "lorenz butterfly", "weight": 2 },
{ "text": "clifford spiral", "weight": 1 },
{ "text": "rössler ribbon", "weight": 1 }
]
}
],
"p5Code": "p.setup = () => { p.createCanvas(800, 800); }; ..."
}