Skip to content

Surfaces

Keys inside plugin.json's windows[], tabs[] and panels[] arrays. See Windows, tabs and sidebar panels.

windows[].id

stringRequired

Unique window identifier within the plugin. Referenced by actions[].opens and urls[].opens. In Edit layout, a window launcher button uses the widget ID win:<plugin>/<id>.

windows[].title

stringRequired

Title shown in the native window titlebar, the Plugins menu and Edit layout.

windows[].page

stringRequired

Relative path to the HTML entry file inside the plugin folder (for example "ui/window.html"), served from the plugin's origin (plugin:// on Linux and macOS, http://plugin.<id>.localhost/ on Windows).

windows[].icon

stringDefault: ""

Tabler icon name shown in the Plugins menu and when the window launcher is placed in a toolbar or sidebar (defaults to "app-window" when empty).

windows[].width

integer | nullDefault: null (900)

Initial window width in logical pixels when opened (defaults to 900, clamped to 320–4000).

windows[].height

integer | nullDefault: null (640)

Initial window height in logical pixels when opened (defaults to 640, clamped to 240–3000).

windows[].multiple

booleanDefault: false

When true, opening this window creates a new instance every time. When false, opening it again focuses the existing open window (and delivers a fresh plugin.run message if triggered by an action or URL handler).

tabs[].id

stringRequired

Unique tab identifier within the plugin. Referenced by actions[].opens and urls[].opens as "tab:<id>", and in Edit layout as tab:<plugin>/<id>.

tabs[].title

stringRequired

Display label for the tab in the Library sidebar navigation and the toolbar title.

tabs[].page

stringRequired

Relative path to the HTML entry file inside the plugin folder, served from the plugin's origin (plugin:// on Linux and macOS, http://plugin.<id>.localhost/ on Windows) and mounted in the main center pane beside the item grid and Tag Manager.

tabs[].icon

stringDefault: ""

Tabler icon name shown beside the tab title in the Library sidebar.

panels[].id

stringRequired

Unique identifier for a lightweight declarative sidebar panel.

panels[].title

stringRequired

Section heading shown inside the Library sidebar's Plugin panels widget.

panels[].filters

object[]Default: []

List of clickable query presets rendered inside the sidebar panel. Clicking a preset applies its query to the active view.

panels[].text

stringDefault: ""

Optional short informational note displayed inside the sidebar panel.

panels[].filters[].id

stringRequired

Unique identifier for the panel filter preset within the panel.

panels[].filters[].label

stringRequired

Clickable label displayed inside the sidebar panel.

panels[].filters[].query

stringRequired

Curio query language expression executed when the user selects this preset.

Example

{
  "windows": [
    {
      "id": "batch",
      "title": "Batch Renamer",
      "page": "ui/batch.html",
      "icon": "forms",
      "width": 720,
      "height": 540,
      "multiple": false
    }
  ],
  "tabs": [
    {
      "id": "board",
      "title": "Moodboard",
      "page": "ui/board.html",
      "icon": "layout-collage"
    }
  ],
  "panels": [
    {
      "id": "reading",
      "title": "Reading List",
      "text": "Quick shelves for books and comics.",
      "filters": [
        { "id": "reading-now", "label": "Currently reading", "query": "read_state = reading" },
        { "id": "unread", "label": "Unread", "query": "kind = document AND NOT read_state = finished" }
      ]
    }
  ]
}