Formats¶
Keys inside plugin.json's formats[] array. See Formats, viewers and thumbnailers and Companion files.
formats[].exts¶
Lowercase file extensions without leading dots (for example ["epub", "cbz", "cbr"] or ["gltf", "glb", "stl", "3mf"]).
formats[].kind¶
Built-in item kind assigned to matching files when scanned: "image", "video", "audio", "document", "archive", "font", "model", "code", "link" or "other". Leave empty if only adding companions or overriding a viewer for an already-classified extension.
formats[].type¶
Optional custom display type label shown in Group by › Type, the Types filter popover and the List view Type column (for example "Books" or "Models").
formats[].thumbnail¶
External command thumbnailer configuration ({ "command": [...] }). Runs in the background thumbnail worker without requiring an open window. Requires the files.read and exec permissions.
formats[].viewer¶
Relative path to an HTML page inside the plugin folder (served from plugin:// on Linux and macOS, http://plugin.<id>.localhost/ on Windows) that replaces Curio's built-in viewer whenever a matching file is opened. Receives plugin.item and plugin.tool.
formats[].thumbnail_page¶
Browser-rendered thumbnailer configuration ({ "page": "...", "size": 512 }). Runs in a hidden page inside the open window (useful for WebGL/Three.js, Canvas or foliate-js rendering) and receives plugin.thumbnail. Requires the files.read permission.
formats[].screen¶
Custom Edit layout screen for files shown in this format's viewer page. When omitted, formats with a viewer share the plugin's first declared screen, or an auto-named screen if none is declared. See Viewer screens, tools and keys.
formats[].companions¶
Declarative rules for sibling files in the same directory that belong to the primary file and are grouped into one multi-file item during scanning and import.
formats[].open¶
Alternative open behavior for files that are references rather than media to view (such as AI model checkpoint .safetensors files).
formats[].thumbnail.command¶
Argv array executed to generate a thumbnail. Substitutes {input} (source file path), {output} (destination image path to write) and {size} (target maximum edge in pixels). Relative executable paths resolve against the plugin folder.
formats[].thumbnail_page.page¶
Relative path to the HTML page inside the plugin folder that renders thumbnails on demand via plugin.thumbnail.
formats[].thumbnail_page.size¶
Requested render edge size in pixels passed to the thumbnail page (defaults to 512, clamped to 64–2048).
formats[].open.show_with¶
List of custom field keys. When the user opens a matching file, Curio checks which of these fields reference the file's stem on other items (the field with the most matching items wins) and navigates All filtered to that field value (for example, opening a .safetensors LoRA file filters All to items matching lora = "<name>").
formats[].companions[].role¶
Semantic role assigned to grouped companion files (for example "preview", "metadata", "live" or "raw"), using ASCII letters, digits, - or _ (up to 40 characters). Also referenced by extractors[].json.role.
formats[].companions[].files¶
Filename templates checked in the primary file's directory in order of preference. Each template must begin with {stem} (primary filename without extension) or {name} (full primary filename including extension), followed by literal text (for example ["{stem}.preview.png", "{stem}.png", "{name}.json"]). Exact literal filenames without {stem} or {name} are not supported.
formats[].companions[].cover¶
When true, Curio generates the grouped item's thumbnail from the first matching companion file instead of the primary file.
formats[].companions[].verify¶
Optional built-in content verification check the primary and companion must pass before grouping. Currently supports "live-photo" (verifies Apple Live Photo content identifier metadata matching between photo and .mov).
Example¶
{
"formats": [
{
"exts": ["safetensors", "ckpt"],
"kind": "other",
"type": "AI Models",
"open": {
"show_with": ["checkpoint", "lora"]
},
"companions": [
{
"role": "preview",
"files": ["{stem}.preview.png", "{stem}.preview.jpg", "{stem}.png"],
"cover": true
},
{
"role": "metadata",
"files": ["{stem}.civitai.info", "{stem}.json"]
}
]
},
{
"exts": ["glb", "gltf", "stl"],
"kind": "model",
"type": "3D Models",
"viewer": "ui/viewer.html",
"thumbnail_page": { "page": "ui/thumb.html", "size": 512 }
}
]
}