InstantGUI API

Every board has a write token and every widget has a key. Send JSON to /api/v1/boards/<board>/widgets/<key> and every open screen updates within about a second. Creating a board returns both. If a person gave you an existing board's edit link (…/b/<board>/join?key=<edit key>), use its edit key anywhere a token is asked for — see Using an edit link.

Building with an AI agent? One-call board spec, design guide and recommended instructions →Buttons that run things on your computer — the InstantGUI Connector →

Quick start

Code
curl -X POST https://instant-gui.com/api/v1/boards/<board>/widgets/cpu \
  -H "Authorization: Bearer <write token>" \
  -H "Content-Type: application/json" \
  -d '{"value": 73}'

The token can also be sent as ?token= (only for devices that can’t set headers — URLs end up in logs, so prefer the header). Responses are JSON: {"ok": true, "widget": {...}}.

Connector install (agents)

On a shared or headless machine, install the Connector without a login service and in its own per-board directory. Create the token first with POST /boards/<board>/connectors (edit key). The token is shown once; if it is lost before install, revoke that connector with DELETE /api/v1/boards/<board>/connectors/<id> and create a new one. GET …/connectors marks leftovers with "everConnected": false.

A press nothing can run — no Connector online for that action and no webhook — is not lost silently: the widget data records lastAt and lastResult: "unhandled", editors see “Not sent: no Connector is online for this button. Connect one in Share → Connector”, and viewers see “Not available right now”. Start the Connector to run it.

Code
curl -fsSL https://instant-gui.com/connect.sh | INSTANTGUI_HOME="$HOME/.instantgui/<board>" sh -s -- --board <board> --token <igc_…> --no-service

--no-service skips the start-at-login service (LaunchAgent, systemd user service, scheduled task) — without it the installer registers one. INSTANTGUI_HOME=<dir> puts the install in <dir> instead of ~/.instantgui; one directory per board keeps two Connectors from colliding. Add actions as <dir>/connect.d/<name>.yml (one file per action, picked up automatically) rather than editing the installer’s sample connect.yml. Then run node <dir>/bin/instantgui-connect.mjs yourself (Ctrl-C stops it; to run it in the background, start it with nohup … & echo $! > "$HOME/.instantgui/<board>/pid" and stop it with kill "$(cat "$HOME/.instantgui/<board>/pid")" — the saved pid only, never pkill by name, which would also stop your own service-installed Connector).

Tip: end a silent command with && echo "backup done: 42 files" so the board shows a summary. A command that prints nothing still logs “Done, no output (exit 0)” (or “Failed (exit N), no output”), and the button still updates its last-run time and count. End your command with an echo to show a line.

Pushing data

A push body is a JSON object, sent with POST. (PUT with a type creates-or-updates the widget; PATCH with layout moves it — see agents.)

An open board shows a push at once while its live connection is up; if that connection is unavailable, the header reads “Updating every 10 s” and the board checks for changes itself every 10 seconds.

{"value": 42}Shorthand: any object without data/append/config keys is merged into the widget’s data.
{"data": {"value": 42, "previous": 40}}Shallow-merge into data. Fields you don’t send are kept.
{"append": {"cpu": 42, "mem": 71}}Append — chart points (x = now), log lines, table rows, checklist items, status updates. Old entries roll off automatically.
{"config": {"title": "CPU", "max": 200}}Change appearance: titles, colors, ranges, thresholds.

Add ?brief=1 to a POST or PATCH (MCP push_data: brief: true) for a short reply: {"ok": true, "key": "cpu", "updatedAt": "…"} plus any hints, without the widget's config and data.

Reading controls

Buttons, toggles, sliders, inputs, selects and checklists change when people use them. Read the current state from your script:

Code
curl https://instant-gui.com/api/v1/boards/<board>/widgets/trading \
  -H "Authorization: Bearer <write token>"

# → {"ok": true, "widget": {"key": "trading", "data": {"on": true}, ...}}

GET https://instant-gui.com/api/v1/boards/<board> returns every widget at once.

GET-only push (IoT, Shortcuts, IFTTT)

For devices that can only open a URL. Every query parameter except token becomes a data field.

Code
https://instant-gui.com/api/v1/boards/<board>/widgets/temp/push?token=<write token>&value=22.5

A person can hand you an existing board as an edit link: https://instant-gui.com/b/<board>/join?key=<edit key>. No browser is needed — the <board> in the path is the board id and the key value is the edit key. Send the edit key as a Bearer token on any call: it can read, push, create widgets and change the board. Treat it as a secret.

Deleting a board needs the edit key: DELETE /boards/<board> with the write token answers 403 and the board stays.

Code
curl -X POST https://instant-gui.com/api/v1/boards/<board>/widgets/cpu \
  -H "Authorization: Bearer <edit key>" \
  -d '{"value": 73}'

# Want a narrower write token for scripts or devices? Exchange the edit key:
curl -X POST https://instant-gui.com/api/v1/boards/<board>/token -H "Authorization: Bearer <edit key>"
# → {"writeToken": "igw_..."}   (add {"rotate": true} to issue a new one)

Rotate a leaked key (edit key or the owner's session; the old value stops working at once):

Code
curl -X POST https://instant-gui.com/api/v1/boards/<board>/edit-key/rotate -H "Authorization: Bearer <edit key>"
# → a new edit key and edit link (the old link stops working)
curl -X POST https://instant-gui.com/api/v1/boards/<board>/write-token/rotate -H "Authorization: Bearer <edit key>"
# → a new write token
curl -X POST https://instant-gui.com/api/v1/boards/<board>/view-tokens/<tokenId>/rotate -H "Authorization: Bearer <edit key>"
# → a new embed URL for that token (same label and permissions; update your embeds)

Creating boards & widgets

Create a board without an account. Keep the editLink private — it grants edit access.

Code
curl -X POST https://instant-gui.com/api/v1/boards -d '{"title": "My bot", "template": "bot"}'

# → {"board": {"id": "...", "urls": {...}}, "editLink": "...", "writeToken": "igw_..."}

Templates: blankbotserverbusinessiotissuesincident-trackerstandupdeploysapiincidentdatabasemlk8sanalyticssaasecommercepipelinemarketingsupportfinancecryptoscraperagentfitnessfamilyenergyprintergreenhouseweatherbudgetsprintokrslaunchofficeclassroomhiringcontenteventstreamtournamentfundraiser

Code
curl -X POST https://instant-gui.com/api/v1/boards/<board>/widgets \
  -H "Authorization: Bearer <write token>" \
  -d '{"type": "gauge", "key": "cpu", "config": {"title": "CPU"}, "data": {"value": 12}}'

curl -X DELETE https://instant-gui.com/api/v1/boards/<board>/widgets/cpu -H "Authorization: Bearer <write token>"

Machine-readable schemas for every widget: /api/v1/widgets

For agents: /llms.txt (short guide), /llms-full.txt and the OpenAPI spec

Shapes agents keep guessing

A log's data shape and a line chart's append x: one call each. Moves, pause/resume and embeds are under Changing a board in place.

Code
# Log widget: seed it with data.entries (t = epoch ms, default now; level = debug|info|success|warning|error), then append one line at a time
curl -s -X POST https://instant-gui.com/api/v1/boards/<board>/widgets/orders-log -H 'Authorization: Bearer <credential>' -d '{"data":{"entries":[{"t":1760000000000,"text":"#1045 · $129.00 · Organic","level":"success"}]}}'
curl -s -X POST https://instant-gui.com/api/v1/boards/<board>/widgets/orders-log -H 'Authorization: Bearer <credential>' -d '{"append":{"text":"#1046 · $54.50 · Email","level":"success"}}'
# Line chart: append one point per series name; x defaults to now, or send [x, y] with x = epoch ms or an ISO date
curl -s -X POST https://instant-gui.com/api/v1/boards/<board>/widgets/revenue-trend -H 'Authorization: Bearer <credential>' -d '{"append":{"revenue":5010}}'
curl -s -X POST https://instant-gui.com/api/v1/boards/<board>/widgets/revenue-trend -H 'Authorization: Bearer <credential>' -d '{"append":{"revenue":["2026-10-11",5010]}}'
# Foreground Connector (started with node … &) in the way? Stop it, then start it again when you need it
kill "$(cat "$HOME/.instantgui/<board>/pid")"

Changing a board in place

Rename it, move a widget, pause a button, embed it: one call each on the board you already built. No need to recreate it or resend the spec. About to replace a board? Add ?dryRun=1 to PUT /spec to see which widgets it would add, change or remove, with nothing written.

Code
# Rename the board
curl -s -X PATCH https://instant-gui.com/api/v1/boards/<board> -H 'Authorization: Bearer <credential>' -d '{"title":"Shop live (EU)"}'
# Move or resize a widget: 12 columns, rows ≈ 52px, x 0-11, w 1-12 (only the fields you send change)
curl -s -X PATCH https://instant-gui.com/api/v1/boards/<board>/widgets/revenue -H 'Authorization: Bearer <credential>' -d '{"layout":{"x":0,"y":0,"w":6,"h":3}}'
# Pause a control: viewers can no longer press it (editors still can). Turn it back on with true
curl -s -X POST https://instant-gui.com/api/v1/boards/<board>/widgets/ads -H 'Authorization: Bearer <credential>' -d '{"config":{"viewersCanUse":false}}'
# Embed a private board: create a view token, then use the returned embedUrl as the iframe src. The default token is view-only; for pause/resume or other buttons on the embed send {"label":"Website","canUseControls":true} with the edit key (private pages only)
curl -s -X POST https://instant-gui.com/api/v1/boards/<board>/view-tokens -H 'Authorization: Bearer <credential>' -d '{"label":"Website"}'

Pausing sets config.viewersCanUse to false; editors can still press the control. Embedding a private board needs the view token from the last call.

Alerts: a value crosses a line, or a bot stops reporting

Add alerts to the spec (or use the widget's Alerts tab in the editor). Use op + threshold for a number, or silentFor (seconds or "15m"/"2h", at least 1 minute, at most 30d) to be told when the widget has had no push for that long. It clears on the next push.

Code
# Fire when a value crosses a line
curl -X PUT https://instant-gui.com/api/v1/boards/<board>/alerts \
  -H "Authorization: Bearer <edit key>" \
  -d '{"alerts":[{"widget":"balance","op":"<","threshold":100,"notify":{"channel":"telegram","botToken":"123456:AAH-your-bot-token-from-BotFather-xxxx","chatId":"-1001234567890"}}]}'

# Fire when the widget stops reporting (silentFor)
curl -X PUT https://instant-gui.com/api/v1/boards/<board>/alerts \
  -H "Authorization: Bearer <edit key>" \
  -d '{"alerts":[{"widget":"balance","silentFor":"15m","notify":{"channel":"telegram","botToken":"123456:AAH-your-bot-token-from-BotFather-xxxx","chatId":"-1001234567890"}}]}'

Pressing a control you just wired

Test a button the way a person would: press it as the editor, then read the result back. Use the action name from GET …/actions.

Code
# 1. Press it as the editor (edit key or write token). Name = <widget key> or <widget key>/<button id>; list the valid names with GET https://instant-gui.com/api/v1/boards/<board>/actions
curl -s -X POST https://instant-gui.com/api/v1/boards/<board>/actions -H 'Authorization: Bearer <credential>' -d '{"action":"backup/run"}'
# → 202 {"ok":true,"event":{"id":"<event id>","action":"backup/run","status":"pending"},"poll":"…/actions?events=<event id>"}
# 2. Read the result (poll until status is "done" or "failed"; "result" is null until then, then {ok, output, exitCode, durationMs})
curl -s https://instant-gui.com/api/v1/boards/<board>/actions?events=<event id> -H 'Authorization: Bearer <credential>'
# → {"ok":true,"events":[{"id":"<event id>","action":"backup/run","status":"done","result":{"ok":true,"output":"backup ok","exitCode":0,"durationMs":1840},…}],…}

Viewers can press a control only if its config.viewersCanUse is true; the edit key and write token always can.

Annotations, variables & export

Mark a moment on a widget (e.g. from CI after a deploy) — it shows as a marker on line charts:

Code
curl -X POST https://instant-gui.com/api/v1/boards/<board>/widgets/<key>/annotations \
  -H "Authorization: Bearer <write token>" \
  -d '{"text": "Deployed v2.4"}'

Change a board variable (sources using {{name}} re-fetch immediately):

Code
curl -X PUT https://instant-gui.com/api/v1/boards/<board>/variables/region \
  -H "Authorization: Bearer <write token>" \
  -d '{"value": "eu"}'

GET https://instant-gui.com/api/v1/boards/<board>/widgets/<key>/export downloads a widget’s data as CSV.

Click to filter

Click a bar (anywhere in its column), a pie slice, a line, or a text cell in a table, and the whole page filters by that value — on the live board, in the editor and in embeds. Charts highlight the matching category, slice or series; tables and logs narrow to the rows and lines that contain it; widgets without that value are left alone. The active filters show in a bar at the bottom of the screen: click a value again, press its ✕, or press Esc to clear. Filters are yours alone — nothing is saved and other viewers don’t see them.

Tip: use the same labels everywhere (bar categories, slice names, table cells) so widgets filter each other. In the editor, a widget’s settings open from the settings button in its toolbar (or Enter on the focused card) — clicking the widget uses it.

Internal tools: lists you can open and act on

A board can be more than charts: an issue list you filter, open and retry; orders you refund; jobs you re-run. The pieces: a dataset holds the records (up to 5,000), a table lists them a page at a time, a filters widget narrows them, a record widget opens one, and row actions run a command on your machine with that record's key. Page params in the URL tie them together, so every view has a link.

Every example below is one board — the Issue tracker template. Create it with POST https://instant-gui.com/api/v1/boards {"template": "issues"} (or from Templates), or build it yourself in two calls:

Code
# tracker.json is the board below; the spec declares the dataset's schema, never its records
curl -s -X PUT https://instant-gui.com/api/v1/boards/<board>/spec -H 'Authorization: Bearer <credential>' -H 'Content-Type: application/json' -d @tracker.json
tracker.json — the whole board (datasets, page params, filters, table, record, actions)
tracker.json
{
  "title": "Issue tracker",
  "prune": true,
  "datasets": [
    {
      "name": "issues",
      "key": "id",
      "fields": {
        "id": {
          "type": "text",
          "label": "Issue"
        },
        "title": {
          "type": "text",
          "label": "Title"
        },
        "project": {
          "type": "text",
          "label": "Project"
        },
        "status": {
          "type": "text",
          "label": "Status"
        },
        "severity": {
          "type": "text",
          "label": "Severity"
        },
        "attempts": {
          "type": "number",
          "label": "Attempts"
        },
        "updated_at": {
          "type": "time",
          "label": "Updated"
        },
        "history": {
          "type": "list",
          "label": "History"
        }
      }
    }
  ],
  "pages": [
    {
      "title": "Issues",
      "slug": "issues",
      "params": [
        {
          "name": "status"
        },
        {
          "name": "project"
        },
        {
          "name": "issue"
        }
      ],
      "widgets": [
        {
          "key": "summary",
          "type": "stats",
          "layout": {
            "x": 0,
            "y": 0,
            "w": 12,
            "h": 2
          },
          "when": {
            "param": "issue",
            "is": "unset"
          },
          "data": {
            "items": [
              {
                "label": "Open",
                "value": 4,
                "link": {
                  "page": "issues",
                  "params": {
                    "status": "open"
                  }
                }
              },
              {
                "label": "Failed",
                "value": 2,
                "tone": "danger",
                "link": {
                  "page": "issues",
                  "params": {
                    "status": "failed"
                  }
                }
              },
              {
                "label": "Fixed",
                "value": 3,
                "tone": "success",
                "link": {
                  "page": "issues",
                  "params": {
                    "status": "fixed"
                  }
                }
              }
            ]
          }
        },
        {
          "key": "issue-status",
          "type": "filters",
          "layout": {
            "x": 0,
            "y": 2,
            "w": 8,
            "h": "auto"
          },
          "when": {
            "param": "issue",
            "is": "unset"
          },
          "config": {
            "title": "Status",
            "param": "status",
            "default": "open",
            "options": [
              {
                "id": "open",
                "label": "Open",
                "where": [
                  {
                    "field": "status",
                    "op": "in",
                    "value": [
                      "failed",
                      "queued",
                      "running"
                    ]
                  }
                ]
              },
              {
                "id": "failed",
                "label": "Failed",
                "where": [
                  {
                    "field": "status",
                    "op": "eq",
                    "value": "failed"
                  }
                ]
              },
              {
                "id": "fixed",
                "label": "Fixed",
                "where": [
                  {
                    "field": "status",
                    "op": "eq",
                    "value": "fixed"
                  }
                ]
              },
              {
                "id": "all",
                "label": "All"
              }
            ],
            "counts": {
              "dataset": "issues"
            },
            "combineWith": [
              "issue-project"
            ]
          }
        },
        {
          "key": "issue-project",
          "type": "filters",
          "layout": {
            "x": 8,
            "y": 2,
            "w": 4,
            "h": "auto"
          },
          "when": {
            "param": "issue",
            "is": "unset"
          },
          "config": {
            "title": "Project",
            "param": "project",
            "mode": "segmented",
            "options": [
              {
                "id": "all",
                "label": "All"
              },
              {
                "id": "shop",
                "label": "Shop",
                "where": [
                  {
                    "field": "project",
                    "op": "eq",
                    "value": "shop"
                  }
                ]
              },
              {
                "id": "api",
                "label": "API",
                "where": [
                  {
                    "field": "project",
                    "op": "eq",
                    "value": "api"
                  }
                ]
              }
            ],
            "counts": {
              "dataset": "issues"
            },
            "combineWith": [
              "issue-status"
            ]
          }
        },
        {
          "key": "issues-list",
          "type": "table",
          "layout": {
            "x": 0,
            "y": 4,
            "w": 8,
            "h": "auto"
          },
          "when": {
            "param": "issue",
            "is": "unset"
          },
          "config": {
            "title": "Issues",
            "source": {
              "dataset": "issues",
              "filters": [
                "issue-status",
                "issue-project"
              ],
              "sort": [
                {
                  "field": "updated_at",
                  "dir": "desc"
                }
              ],
              "limit": 20,
              "search": true,
              "searchFields": [
                "title",
                "id",
                "project"
              ]
            },
            "view": "auto",
            "columns": [
              {
                "field": "id",
                "label": "Issue",
                "format": "code"
              },
              {
                "field": "title",
                "label": "Title",
                "maxChars": 80
              },
              {
                "field": "status",
                "label": "Status",
                "format": "pill",
                "tones": {
                  "failed": "danger",
                  "queued": "warning",
                  "running": "info",
                  "fixed": "success"
                }
              },
              {
                "field": "severity",
                "label": "Severity",
                "format": "dot",
                "tones": {
                  "high": "danger",
                  "medium": "warning",
                  "low": "info"
                }
              },
              {
                "field": "project",
                "label": "Project"
              },
              {
                "field": "updated_at",
                "label": "Updated",
                "format": "ago"
              }
            ],
            "list": {
              "leading": "severity",
              "title": "title",
              "badges": [
                "status"
              ],
              "meta": [
                "project",
                "updated_at"
              ]
            },
            "rowLink": {
              "page": "issues",
              "params": {
                "issue": "{{id}}"
              },
              "keep": [
                "status",
                "project"
              ]
            },
            "rowActions": [
              {
                "id": "retry",
                "label": "Retry",
                "tone": "warning",
                "when": [
                  {
                    "field": "status",
                    "op": "eq",
                    "value": "failed"
                  }
                ]
              }
            ],
            "empty": "No issues match these filters"
          }
        },
        {
          "key": "by-project",
          "type": "bar",
          "layout": {
            "x": 8,
            "y": 4,
            "w": 4,
            "h": 5
          },
          "when": {
            "param": "issue",
            "is": "unset"
          },
          "config": {
            "title": "Issues by project",
            "horizontal": true,
            "stacked": true,
            "showValues": true
          },
          "data": {
            "categories": [
              "shop",
              "api"
            ],
            "series": [
              {
                "name": "Open",
                "values": [
                  2,
                  2
                ]
              },
              {
                "name": "Fixed",
                "values": [
                  2,
                  1
                ]
              }
            ]
          }
        },
        {
          "key": "issue",
          "type": "record",
          "layout": {
            "x": 0,
            "y": 20,
            "w": 12,
            "h": "auto"
          },
          "when": {
            "param": "issue"
          },
          "config": {
            "dataset": "issues",
            "keyParam": "issue",
            "titleField": "title",
            "subtitle": "{{project}} · {{id}} · updated {{ago:updated_at}}",
            "pills": [
              {
                "field": "status",
                "format": "pill",
                "tones": {
                  "failed": "danger",
                  "queued": "warning",
                  "running": "info",
                  "fixed": "success"
                }
              },
              {
                "field": "severity",
                "format": "pill",
                "tones": {
                  "high": "danger",
                  "medium": "warning",
                  "low": "info"
                }
              }
            ],
            "links": [
              {
                "label": "Open PR",
                "field": "pr_url"
              }
            ],
            "back": {
              "label": "All issues"
            },
            "sections": [
              {
                "kind": "stats",
                "fields": [
                  {
                    "field": "attempts",
                    "label": "Attempts",
                    "format": "number"
                  },
                  {
                    "field": "duration_ms",
                    "label": "Last run",
                    "format": "duration"
                  }
                ]
              },
              {
                "title": "What happened",
                "kind": "prose",
                "field": "summary"
              },
              {
                "title": "Details",
                "kind": "kv",
                "fields": [
                  {
                    "field": "project",
                    "label": "Project"
                  },
                  {
                    "field": "opened_at",
                    "label": "Opened",
                    "format": "datetime"
                  },
                  {
                    "field": "sha",
                    "label": "Commit",
                    "format": "code"
                  }
                ]
              },
              {
                "title": "History",
                "kind": "events",
                "field": "history",
                "item": {
                  "title": "text",
                  "time": "at",
                  "tone": "tone"
                }
              }
            ],
            "actions": [
              {
                "id": "retry",
                "label": "Retry",
                "tone": "warning",
                "when": [
                  {
                    "field": "status",
                    "op": "eq",
                    "value": "failed"
                  }
                ]
              },
              {
                "id": "cancel",
                "label": "Cancel",
                "tone": "danger",
                "confirm": true,
                "when": [
                  {
                    "field": "status",
                    "op": "eq",
                    "value": "queued"
                  }
                ]
              }
            ],
            "notFound": "This issue is gone — it may have been closed."
          }
        }
      ]
    }
  ]
}

…then write its records (next section). Want it inside your own app with your own URLs? See Embed navigation.

Datasets

A dataset is a named set of records, each identified by one field (its key). It lives on the board, outside any widget, so one dataset feeds a table, a record view and filter counts at once — and only the rows on screen travel to the browser. Use the write token or the edit key.

Code
# Create the dataset or replace all its records (keys you don't send are deleted). "key" names the field that identifies a record.
curl -s -X PUT https://instant-gui.com/api/v1/boards/<board>/datasets/issues -H 'Authorization: Bearer <credential>' -H 'Content-Type: application/json' -d '{"key":"id","records":[{"id":"ISS-104","title":"Checkout button overlaps the total on small phones","project":"shop","status":"failed","severity":"high","attempts":2,"updated_at":"2026-10-16T11:00:00.000Z","summary":"The **Pay** button sits on top of the order total below 380 px.\n\n- Reproduced on a 360×800 viewport\n- Fix attempt 2 failed a visual test","history":[{"at":"2026-10-15T06:00:00.000Z","text":"Reported by a customer","tone":"info"},{"at":"2026-10-16T07:00:00.000Z","text":"Fix attempt 1 reverted (visual test failed)","tone":"danger"},{"at":"2026-10-16T11:00:00.000Z","text":"Fix attempt 2 failed: build error","tone":"danger"}]},{"id":"ISS-102","title":"Search ignores accents (café ≠ cafe)","project":"shop","status":"queued","severity":"low","attempts":0,"updated_at":"2026-10-16T06:00:00.000Z","summary":"Searching *cafe* does not find *Café Noir*.","history":[{"at":"2026-10-16T04:00:00.000Z","text":"Queued for a fix","tone":"info"}]},{"id":"ISS-100","title":"Order emails show UTC times","project":"shop","status":"fixed","severity":"low","attempts":1,"updated_at":"2026-10-15T10:00:00.000Z","summary":"Times now use the shop time zone.","history":[{"at":"2026-10-13T14:00:00.000Z","text":"Reported","tone":"info"},{"at":"2026-10-15T10:00:00.000Z","text":"Fixed and deployed","tone":"success"}]}]}'
# → {"ok":true,"dataset":"issues","key":"id","version":…,"records":3,"added":3,"changed":true,…}

# Add or replace whole records by key, delete others — only what you send changes
curl -s -X POST https://instant-gui.com/api/v1/boards/<board>/datasets/issues/records -H 'Authorization: Bearer <credential>' -H 'Content-Type: application/json' -d '{"upsert":[{"id":"ISS-105","title":"Coupon field accepts expired codes","project":"shop","status":"queued","severity":"medium","attempts":0,"updated_at":"2026-10-16T11:30:00.000Z","summary":"Expired codes apply at checkout and fail at payment.","history":[{"at":"2026-10-16T11:30:00.000Z","text":"Queued for a fix","tone":"info"}]}],"delete":["ISS-100"]}'

# Query it the way a table does: where (AND), sort, search, offset/limit (≤ 200), facet counts
curl -s -X POST https://instant-gui.com/api/v1/boards/<board>/datasets/issues/query -H 'Authorization: Bearer <credential>' -H 'Content-Type: application/json' -d '{"where":[{"field":"status","op":"in","value":["failed","queued","running"]}],"sort":[{"field":"updated_at","dir":"desc"}],"limit":20,"facets":[{"id":"failed","where":[{"field":"status","op":"eq","value":"failed"}]},{"id":"shop","where":[{"field":"project","op":"eq","value":"shop"}]}]}'
# → {"ok":true,"records":[{"id":"ISS-105",…},{"id":"ISS-104",…},{"id":"ISS-102",…}],"total":3,"facets":{"failed":1,"shop":3},"version":…}

# One record · the dataset's schema and size (?keys=1 lists its keys) · every dataset on the board
curl -s https://instant-gui.com/api/v1/boards/<board>/datasets/issues/records/ISS-104 -H 'Authorization: Bearer <credential>'
curl -s https://instant-gui.com/api/v1/boards/<board>/datasets/issues -H 'Authorization: Bearer <credential>'
curl -s https://instant-gui.com/api/v1/boards/<board>/datasets -H 'Authorization: Bearer <credential>'
PUT …/datasets/<name>
Create it and replace its records ("mode": "upsert" adds/updates only). key is needed the first time; fields (optional) types and labels them: {"updated_at": {"type": "time", "label": "Updated"}} — text, number, bool, time, list, json.
POST …/records
{"upsert": [whole records], "delete": ["key", …]}. An upserted record replaces the stored one with the same key.
POST …/query
where (clauses, AND), sort, search + searchFields, offset, limit (≤ 200), facets (counts within the query). Viewers (and embeds, with ?t=) use /api/boards/<board>/datasets/<name>/query with the board's own access rules.
GET / DELETE
…/datasets lists them, …/datasets/<name> (?keys=1 adds the keys) and …/records/<key> read; DELETE on either removes it.
Limits
5,000 records and 4 MB per dataset, 32 KB per record, 50 datasets per board, 16 MB in all (1 MB on a board without an account). A request is ≤ 500 KB: send more as several /records upserts.
Live
Writes are idempotent — unchanged records aren't rewritten and an unchanged write keeps the version. A real change pings every open board, which re-queries.
Spec
"datasets": [{"name": "issues", "key": "id", "fields": {…}}] declares the schema; records are never written or deleted by the spec (prune leaves datasets alone).
MCP
dataset_put, dataset_upsert, dataset_query.

Clauses

A clause is {"field", "op", "value"} with op one of eq, neq, in, nin (value is a list), contains, gte, lte, set, unset (no value). "value": {"now": "-7d"} is a time relative to now (s, m, h, d, w). "value": {"param": "project"} (or top-level "param": "project") takes the viewer's page param — and the clause is skipped while that param is unset, so one table serves "all" and "filtered". On list fields, eq/in match when any element matches. Times can be ISO strings or epoch ms.

Where a viewer is — which page, which issue, which filter — lives in the URL, never on the server: /b/<board>?page=issues&p.status=failed&p.issue=ISS-104 (same on /e/). Links, reloads, back/forward and sharing all work, and two people looking at the board don't move each other.

Spec
{
  "pages": [
    {
      "title": "Issues",
      "slug": "issues",
      "params": [
        {
          "name": "status"
        },
        {
          "name": "project"
        },
        {
          "name": "issue"
        }
      ],
      "widgets": [
        "…"
      ]
    },
    {
      "title": "Settings",
      "slug": "settings",
      "hidden": true,
      "widgets": [
        "…"
      ]
    }
  ]
}
slug
The page's URL name (default: from the title). The spec matches pages by slug first, so a page can be renamed.
hidden
No tab — reached only by links (a detail page, a settings page).
params
[{"name": "status", "default": "open"}] — what the page reads from p.<name>; the default applies when the URL doesn't say.
when
On a widget: show it only when {"param": "issue"} is set, {"param": "issue", "is": "unset"}, {"param": "status", "is": "failed"} or {"screen": "narrow"} / wide; a list means all must hold. Hidden widgets leave no gap — the grid closes up.
h: "auto"
"layout": {"x": 0, "y": 4, "w": 8, "h": "auto"} grows the widget to its content instead of scrolling inside it (the stored height is its minimum). Use it for filters, records and tables with Load more.

The tracker uses when for drill-down: the summary, filters, list and chart have {"param": "issue", "is": "unset"}, the record has {"param": "issue"}. Tapping a row sets p.issue; the list makes way for the details; Back (or the browser's back button) returns.

Links (Nav)

rowLink
{
  "page": "issues",
  "params": {
    "issue": "{{id}}"
  },
  "keep": [
    "status",
    "project"
  ]
}

A Nav names a page and the params it opens with. {{field}} fills from the row or record (task-{{task_id}} works too), keep carries those current params over, and every other param is dropped; null clears one. Navs work in table rowLink, column nav, moreLink, record links and back, filter options, KPI config.link and stats items[].link (both also take an https:// URL). In markdown, write [Failed issues](ig:issues?status=failed) — it opens in the board, not a new tab.

Tables (v2): formatted columns, list view, row links

Every option is optional — a table without them works exactly as before. source reads a dataset a page at a time (server-side search, sort and filters); without it, the same columns and formats apply to the rows you push in data.rows.

issues-list
{
  "key": "issues-list",
  "type": "table",
  "layout": {
    "x": 0,
    "y": 4,
    "w": 8,
    "h": "auto"
  },
  "when": {
    "param": "issue",
    "is": "unset"
  },
  "config": {
    "title": "Issues",
    "source": {
      "dataset": "issues",
      "filters": [
        "issue-status",
        "issue-project"
      ],
      "sort": [
        {
          "field": "updated_at",
          "dir": "desc"
        }
      ],
      "limit": 20,
      "search": true,
      "searchFields": [
        "title",
        "id",
        "project"
      ]
    },
    "view": "auto",
    "columns": [
      {
        "field": "id",
        "label": "Issue",
        "format": "code"
      },
      {
        "field": "title",
        "label": "Title",
        "maxChars": 80
      },
      {
        "field": "status",
        "label": "Status",
        "format": "pill",
        "tones": {
          "failed": "danger",
          "queued": "warning",
          "running": "info",
          "fixed": "success"
        }
      },
      {
        "field": "severity",
        "label": "Severity",
        "format": "dot",
        "tones": {
          "high": "danger",
          "medium": "warning",
          "low": "info"
        }
      },
      {
        "field": "project",
        "label": "Project"
      },
      {
        "field": "updated_at",
        "label": "Updated",
        "format": "ago"
      }
    ],
    "list": {
      "leading": "severity",
      "title": "title",
      "badges": [
        "status"
      ],
      "meta": [
        "project",
        "updated_at"
      ]
    },
    "rowLink": {
      "page": "issues",
      "params": {
        "issue": "{{id}}"
      },
      "keep": [
        "status",
        "project"
      ]
    },
    "rowActions": [
      {
        "id": "retry",
        "label": "Retry",
        "tone": "warning",
        "when": [
          {
            "field": "status",
            "op": "eq",
            "value": "failed"
          }
        ]
      }
    ],
    "empty": "No issues match these filters"
  }
}
source
{dataset, where?, sort?, limit?, filters?, search?, searchFields?} — limit rows a page (default 50, ≤ 200) with "Showing 20 of 340" and Load more; filters lists the filters widgets it obeys.
columns
{field, label?, format?, tones?, href? | nav?, hidden?, align?, wrap?, maxChars?, decimals?, currency?, unit?}. Without columns, every field shows as text.
format
text, number, pill (colored by tones, e.g. {"failed": "danger"}; unlisted values are guessed), pills (a list), dot, link, ago ("5m ago"), datetime, date, duration (ms, or "unit": "s"), currency ("currency": "USD"), percent (already a percentage), code. Tones: success, warning, danger, info, muted.
view, list
"view": "auto" shows a list under 640 px (list for always): {"leading":"severity","title":"title","badges":["status"],"meta":["project","updated_at"]} — a title line, badges and grey meta, no sideways scrolling on phones.
rowLink
Each row becomes one link (keyboard-focusable, opens in a new tab with ⌘/Ctrl-click) to a page and params.
expand
{"fields": [{"field": "summary", "format": "markdown"}], "param": "run"} — a row opens its details in place; with param the open row is in the URL (deep links scroll to it).
moreLink, empty
{"label": "All failures", "nav": {…}} under the table; empty is the text when nothing matches.
rowKey, rowActions
Buttons on each row — see Row & record actions.

Filters

Chips (or a segmented switch, or page links) that set one page param. Tables that list the widget's key in source.filters add the picked option's where to their query. Each viewer filters on their own; the choice is in the URL.

issue-status
{
  "key": "issue-status",
  "type": "filters",
  "layout": {
    "x": 0,
    "y": 2,
    "w": 8,
    "h": "auto"
  },
  "when": {
    "param": "issue",
    "is": "unset"
  },
  "config": {
    "title": "Status",
    "param": "status",
    "default": "open",
    "options": [
      {
        "id": "open",
        "label": "Open",
        "where": [
          {
            "field": "status",
            "op": "in",
            "value": [
              "failed",
              "queued",
              "running"
            ]
          }
        ]
      },
      {
        "id": "failed",
        "label": "Failed",
        "where": [
          {
            "field": "status",
            "op": "eq",
            "value": "failed"
          }
        ]
      },
      {
        "id": "fixed",
        "label": "Fixed",
        "where": [
          {
            "field": "status",
            "op": "eq",
            "value": "fixed"
          }
        ]
      },
      {
        "id": "all",
        "label": "All"
      }
    ],
    "counts": {
      "dataset": "issues"
    },
    "combineWith": [
      "issue-project"
    ]
  }
}
param, default
Picking Failed sets ?p.status=failed; the default option keeps the URL clean. An option without where ("All") narrows nothing.
mode
chips (wrap onto more lines), segmented (2–4 short options), nav — options with nav are links to other pages, the current one highlighted (an Issues | Features switch).
counts
{"dataset": "issues"} shows how many records each option matches, from one query; combineWith narrows the counts by other filters widgets (Project: Shop → the status counts are for Shop).

Record widget: one item as a detail view

Shows the record whose key is in a page param (keyParam), so a row link opens it. With the param unset it shows empty; a key that isn't in the dataset shows notFound. It sets the page title (and tells an embedding app, see onTitle).

issue
{
  "key": "issue",
  "type": "record",
  "layout": {
    "x": 0,
    "y": 20,
    "w": 12,
    "h": "auto"
  },
  "when": {
    "param": "issue"
  },
  "config": {
    "dataset": "issues",
    "keyParam": "issue",
    "titleField": "title",
    "subtitle": "{{project}} · {{id}} · updated {{ago:updated_at}}",
    "pills": [
      {
        "field": "status",
        "format": "pill",
        "tones": {
          "failed": "danger",
          "queued": "warning",
          "running": "info",
          "fixed": "success"
        }
      },
      {
        "field": "severity",
        "format": "pill",
        "tones": {
          "high": "danger",
          "medium": "warning",
          "low": "info"
        }
      }
    ],
    "links": [
      {
        "label": "Open PR",
        "field": "pr_url"
      }
    ],
    "back": {
      "label": "All issues"
    },
    "sections": [
      {
        "kind": "stats",
        "fields": [
          {
            "field": "attempts",
            "label": "Attempts",
            "format": "number"
          },
          {
            "field": "duration_ms",
            "label": "Last run",
            "format": "duration"
          }
        ]
      },
      {
        "title": "What happened",
        "kind": "prose",
        "field": "summary"
      },
      {
        "title": "Details",
        "kind": "kv",
        "fields": [
          {
            "field": "project",
            "label": "Project"
          },
          {
            "field": "opened_at",
            "label": "Opened",
            "format": "datetime"
          },
          {
            "field": "sha",
            "label": "Commit",
            "format": "code"
          }
        ]
      },
      {
        "title": "History",
        "kind": "events",
        "field": "history",
        "item": {
          "title": "text",
          "time": "at",
          "tone": "tone"
        }
      }
    ],
    "actions": [
      {
        "id": "retry",
        "label": "Retry",
        "tone": "warning",
        "when": [
          {
            "field": "status",
            "op": "eq",
            "value": "failed"
          }
        ]
      },
      {
        "id": "cancel",
        "label": "Cancel",
        "tone": "danger",
        "confirm": true,
        "when": [
          {
            "field": "status",
            "op": "eq",
            "value": "queued"
          }
        ]
      }
    ],
    "notFound": "This issue is gone — it may have been closed."
  }
}
titleField, subtitle
subtitle is a template: {{project}} · {{id}} · updated {{ago:updated_at}} ({{ago:field}} = "2h ago").
pills, links, back
Status pills with tones; links by href template, nav or a field holding a URL (left out when empty); back clears the key param (or goes to its nav).
sections
kv (fields as label → value), prose (a markdown field), stats (tiles), list and events (an array field; item picks title, meta, time, tone). A section's when (clauses on the record) shows it only for some records — e.g. a screenshot section only for UX issues.
actions, toggles
Buttons and switches for this record — next section.

Without a dataset it shows data.record — push {"record": {…}} to the widget.

Row & record actions (run a command with the record's key)

A Retry on every failed row, a Cancel on a queued issue, a Paused switch on a project. Table rowActions and record actions are {id, label, tone, confirm?, when?}; a tap sends <widget key>/<action id> to the InstantGUI Connector on your machine, with the record's key as $INSTANTGUI_VALUE.

connect.yml
actions:
  issues-list/retry:           # "Retry" on a table row: the row's id is $INSTANTGUI_VALUE
    run: ~/bin/retry-issue "$INSTANTGUI_VALUE"
    value: '^ISS-[0-9]{1,6}$'  # any other value is refused before the command runs
  issue/retry:                 # the same button on the record (detail) view
    run: ~/bin/retry-issue "$INSTANTGUI_VALUE"
    value: '^ISS-[0-9]{1,6}$'
  issue/cancel:                # confirm: true is on the widget action — don't repeat it here
    run: ~/bin/cancel-issue "$INSTANTGUI_VALUE"
    value: '^ISS-[0-9]{1,6}$'
  • Write each action as a block (as above) — inline {run: …, value: …} maps aren't read.
  • Guard the value: value: '<regex>' must match the whole key, or the Connector refuses it before anything runs.
  • Confirm once: put confirm: true on the widget action (tap again within 15 s). Also adding it in connect.yml means three taps.
  • when hides the button on records that don't match — and the server re-reads the record and refuses a tap that no longer matches (a stale page can't retry a fixed issue) or whose key is gone.
  • Each row shows its own result: "Sending…", then "✓ Retry · 2s ago" or "✗ Retry failed: <first line>".
  • Record toggles: {"id": "paused", "label": "Paused", "field": "paused", "on": "pause-on", "off": "pause-off", "disabledWhen": [...], "disabledNote": "…"} — shows the record's field and sends <widget key>/pause-on or …/pause-off; update the record when the change lands.
  • Editors only unless the widget sets viewersCanUse: true; an embed made with canUseControls can use them too.
Press one from a script
# Press "Retry" on ISS-104 as the editor (the Connector runs: ~/bin/retry-issue "ISS-104")
curl -s -X POST https://instant-gui.com/api/v1/boards/<board>/actions -H 'Authorization: Bearer <credential>' -H 'Content-Type: application/json' -d '{"action":"issues-list/retry","value":"ISS-104"}'
# → 202 {"ok":true,"event":{"id":"<event id>","action":"issues-list/retry","status":"pending"},…} with a connector online
#   (without one: a button of an actions widget ("<widget key>/<button id>") is recorded and its webhook called → 200 {"recorded":true,…};
#   other actions 404 "This board has no connector online with actions…"). Read the result: GET …/actions?events=<event id> → events[0].result is {ok, output, exitCode, durationMs} once status is done/failed

AI agents (MCP)

InstantGUI is a remote MCP server at https://instant-gui.com/api/mcp (Streamable HTTP). Tools: apply_board_spec, dataset_put, dataset_upsert, dataset_query, list_actions, trigger_action, create_board, get_board, add_widget, push_data, update_widget_layout, update_board, lint_board, get_write_token, create_view_token, delete_widget, list_widget_types, get_widget_type, get_design_guide. Guide: /docs/agents.

No token needed to connect — each board you create gets its own write token.

Code
{
  "mcpServers": {
    "instantgui": {
      "url": "https://instant-gui.com/api/mcp"
    }
  }
}

Claude Code: claude mcp add --transport http instantgui https://instant-gui.com/api/mcp

Calling it with plain HTTP? Send both Content-Type: application/json and Accept: application/json, text/event-stream — without that Accept header the server answers 406 and names the missing header. The reply is a server-sent event: a line 'event: message' followed by a line starting 'data: ' that holds the JSON-RPC response; read the JSON from that data line.

MCP over plain HTTP
curl -X POST https://instant-gui.com/api/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Embedding a board

Any board can live inside another site: https://instant-gui.com/e/<board> shows it read-only, live and without app chrome. Private boards need a view token — create one under Share → Embed or with the API (edit key or write token):

Code
curl -X POST https://instant-gui.com/api/v1/boards/<board>/view-tokens -H "Authorization: Bearer <edit key>" -d '{"label": "Website"}'

# → {"embedUrl": "https://instant-gui.com/e/<board>?token=<view token>", "iframe": "<iframe …>", "id": "…"}
HTML
<iframe src="https://instant-gui.com/e/<board>?token=<view token>" style="width:100%;height:640px;border:0" loading="lazy" title="Dashboard"></iframe>
<!-- optional: grow the iframe to its content -->
<script>addEventListener("message", e => { if (e.data?.type === "instantgui:resize") for (const f of document.querySelectorAll("iframe")) if (f.contentWindow === e.source) f.style.height = e.data.height + "px" })</script>

Other options: page=<page slug or title>, p.<param>=<value> (page params, see Embed navigation), tabs=0. The embed posts {type: "instantgui:resize", height} to the parent whenever its height changes (its layout never depends on the frame's height, so auto-sizing can't loop). Revoke a token with DELETE https://instant-gui.com/api/v1/boards/<board>/view-tokens/<id> — the embed stops at once; a wrong or revoked token is always refused. Links inside an embed never carry the token in their href (with embed.js routes they point at your app's URLs).

Branding. A small “Powered by InstantGUI” link shows under embedded boards. The board's editors (edit key or the owner) can hide it on every embed: Share → Embed → Branding, the spec field "branding": false, or PATCH https://instant-gui.com/api/v1/boards/<board> with {"branding": false} (not with the write token). One embed can also hide it with badge=0.

Make it match your site

The easiest way is the helper script: it sizes the iframe to the board, sends your page's colors and font, and follows your light/dark switch.

HTML
<div data-instantgui-board="<board>" data-token="<view token>" data-inherit-theme></div>
<script src="https://instant-gui.com/embed.js" async></script>

<!-- or, mapping your own design tokens (any CSS color or var(--…), resolved on your page): -->
<div id="board"></div>
<script src="https://instant-gui.com/embed.js"></script>
<script>
  InstantGUI.mount("#board", {
    board: "<board>", token: "<view token>",
    transparent: true, density: "compact", radius: "var(--radius)", font: "inherit",
    colors: { background: "var(--surface)", foreground: "var(--text)", border: "var(--border)",
              primary: "var(--accent)", mutedForeground: "var(--text-muted)" },
  });
</script>

data-inherit-theme / inheritTheme: true reads the page's background (the first non-transparent one behind the mount element), text color, font and common variables (--primary/--accent, --border, --muted-foreground, --radius…) and makes the board transparent. mount() returns {iframe, update(options), refreshTheme(), destroy()}.

Without the script, the same look works as URL parameters (every value is validated — anything else is ignored):

theme
auto (follows the viewer's light/dark), light, dark or a theme id
bg
transparent — no page background or outer padding; the board sits on your card. Or a color.
accent
Buttons, links, focus rings and the first chart series (hex without # works: accent=2557d6)
radius
Widget card corner radius in px, 0–32
density
compact — tighter card padding, no outer padding
font
system, serif, mono or a font-family list your page already loads
c.<token>
One color: background, foreground, card, cardForeground, border, input, primary, primaryForeground, muted, mutedForeground, success, warning, danger, info, chart2…chart6. Unset ones are derived from foreground/background.
defaults=0
Ignore the board's saved embed look (set in Share → Embed → Save as board default, or PATCH https://instant-gui.com/api/v1/boards/<board> with {"embedStyle": {...}})

Retheme live from your page — any subset of the same fields (vars holds the colors; reset: true drops earlier messages first):

Code
iframe.contentWindow.postMessage({
  type: "instantgui:theme", reset: true,
  theme: "dark", bg: "transparent", radius: 14, density: "compact", font: "system",
  vars: { background: "#161a20", foreground: "#eef1f5", border: "#2a313b", primary: "#6d9bff" },
}, "https://instant-gui.com");

The embed posts {type: "instantgui:ready"} when it's listening (send your theme then), {type: "instantgui:resize", height} and {type: "instantgui:scheme", scheme: "light"|"dark"} — with a transparent embed, set the iframe's style.colorScheme to that value, or browsers paint an opaque backdrop behind it (embed.js does this).

The other direction — make your page look like InstantGUI: <link rel="stylesheet" href="https://instant-gui.com/theme.css"> gives you every theme's tokens as --ig-* variables (--ig-background, --ig-card, --ig-primary…), following light/dark or pinned with <html data-ig-theme="midnight">, plus .ig-page, .ig-card and .ig-button.

Navigation: deep links, your app's routes, back/forward

A board page can declare params (spec pages: [{title, slug, hidden?, params: [{name, default?}]}]). A viewer's position lives in the URL — /b/<board>?page=issues&p.issue=12 (same on /e/) — so links, reloads and back/forward work. Widgets can show only for some positions ("when": {"param": "issue"}, {"param": "status", "is": "failed"}, {"screen": "narrow"}; a list means all must hold; {"any": [{"screen": "wide"}, {"param": "issue", "is": "unset"}]} means at least one — e.g. a list that hides on phones while an item is open; hidden widgets leave no gap) and fit their content with "layout": {"h": "auto"} (the card is exactly as tall as what it shows; a stored h is only the size before the first measurement, not a minimum). Links: KPI config.link, stat items[].link ({"page": "issues", "params": {"status": "failed"}} or https://…), and Markdown [Failed](ig:issues?status=failed).

Inside your own app, let embed.js keep your URL and the board in step: give it your routes and it maps both ways, pushes history entries for links (filters replace) and follows the back button.

HTML
<div id="board"></div>
<script src="https://instant-gui.com/embed.js"></script>
<script>
  const board = InstantGUI.mount("#board", {
    board: "<board>", token: "<view token>",
    tabs: false,                       // your app has its own navigation
    routes: [
      { path: "/",               page: "home" },
      { path: "/issues",         page: "issues", query: ["status", "project"] },
      { path: "/issues/:issue",  page: "issues", query: ["status", "project"] },
    ],
    onTitle: (title) => { document.title = title + " · My app"; },
    // scrollOnNavigate: true (default) scrolls to the top of the embed when a link opens a new view
  });
  // From your own router (doesn't call back): board.navigate({ page: "issues", params: { status: "failed" } });
</script>
page, params
Where to start (default: from routes and this page's URL, else the board's first page)
tabs: false
Hide the board's page tabs (URL tabs=0)
routes
[{path: "/x/:param", page, query?: [names], set?: {key: "value"}}] — :param segments and the listed query keys are page params; set is a fixed query key the route needs and writes ({path: "/issues", page: "features", set: {view: "features"}} is /issues?view=features; list it before the plain /issues route). The route using the most present params wins. Links inside the embed then point at your URLs, so open-in-new-tab, middle-click and copy-link land on your app.
onNavigate(nav)
Handle moves yourself instead ({page, params, replace}; e.g. router.push), and call handle.navigate() when your URL changes
onTitle(title)
What the viewer is looking at (page or record title)
scrollOnNavigate
Default true; scrollOffset (px) leaves room for a sticky header

Without embed.js: the embed posts {type: "instantgui:navigate", page, params, replace} and {type: "instantgui:title", title} only to your origin (pass host=<your origin>; browsers that report the parent's origin are checked against it), and accepts {type: "instantgui:navigate", page, params} only from its parent window at that origin. Check event.origin on your side too.

Embeds that can use controls

Embeds are view-only by default: buttons and toggles show as inactive with a link to the board. For an embed on a page only you can reach (an internal admin tool, your own console), create its token with canUseControls (edit key only) — or switch on Let this embed use controls in the Embed dialog (board owner):

Code
curl -X POST https://instant-gui.com/api/v1/boards/<board>/view-tokens -H "Authorization: Bearer <edit key>" \
  -d '{"label": "Ops console", "canUseControls": true}'
# → {"viewToken": "…", "canUseControls": true, "embedUrl": "https://instant-gui.com/e/<board>?token=…", …}

Presses through that embed act like an editor's on the board's controls — same rate limits, Connector routing and "tap again to confirm" — and are attributed "by embed: Ops console" on the result and in the activity log. That includes row & record actions (Retry on a row, a record's toggles). Anyone who can load the page with that token can press them, so don't put it on a public page; revoking the token stops it at once.

Webhooks

Set a Webhook URL (https) on any control. When someone uses it we POST:

Code
{
  "event": "widget.interaction",
  "board": "<board>",
  "widget": { "key": "restart", "type": "button" },
  "data": { "presses": 4, "lastPressedAt": 1767225600000 },
  "at": "2026-10-09T12:00:00.000Z"
}

Errors & limits

  • 422 — the body doesn’t fit the widget; details lists each field and what’s wrong.
  • 403 missing or wrong token · 404 unknown board, key or route (always JSON) · 429 slow down. Every error message says what to do next.
  • Up to 150 widgets per board, 20 pages, 256 KB of data per widget, 500 KB per request. More rows than that belong in a dataset (5,000 records, 4 MB each).

Widget reference

KPI

kpi

A headline number with change vs. previous value and a trend sparkline.

Set the value{"value":48320}
Set value and comparison{"value":48320,"previous":45910}
Data & config fields

Data

FieldTypeDefault
valuenumber | string | null—
previousnumber | string | null—
historynumber[][]
pointsany[][][]

Config

FieldTypeDefault
title
Title
string""
staleAfter
0 = never. Dims the widget and says Stale when no push arrives in time. Seconds, or 90s / 1m / 2h in the spec.
integer0
icon
lucide icon name, e.g. wallet, users, cpu
string""
prefix
e.g. $
string""
suffix
e.g. %, ms, users
string""
decimals
Decimals
integer0
compact
Show 12.3K instead of 12,300
booleantrue
higherIsBetter
null = no direction: the change keeps its arrow and percentage in a neutral colour
boolean | nulltrue
compareTo
previous push, or the value 1 hour / 1 day / 1 week earlier
"previous" | "1h" | "1d" | "7d""previous"
showSparkline
Show trend
booleantrue
caption
Caption
string""
thresholds
Color thresholds
object[][]
linkstring | object | nullnull
source
e.g. {"dataset":"feedback","op":"count","where":[{"field":"status","op":"eq","value":"new"}]}
object—

Stat list

stats

Several small numbers side by side, each with an optional change.

Replace all items{"items":[{"label":"Visitors","value":12840,"change":8.1},{"label":"Signups","value":342}]}
Linked stats with hints{"items":[{"label":"Failed","value":3,"tone":"danger","hint":"last 7 days","link":{"page":"issues","params":{"status":"failed"}}},{"label":"Open","value":12}]}
Data & config fields

Data

FieldTypeDefault
itemsobject[][]

Config

FieldTypeDefault
title
Title
string""
staleAfter
0 = never. Dims the widget and says Stale when no push arrives in time. Seconds, or 90s / 1m / 2h in the spec.
integer0
layout
Layout
"row" | "grid" | "list""row"

Gauge

gauge

A dial for a value within a range — CPU, temperature, utilisation.

Set the value{"value":63}
Data & config fields

Data

FieldTypeDefault
valuenumber | string | null—

Config

FieldTypeDefault
title
Title
string""
staleAfter
0 = never. Dims the widget and says Stale when no push arrives in time. Seconds, or 90s / 1m / 2h in the spec.
integer0
min
Min
number0
max
Max
number100
suffix
Suffix
string"%"
decimals
Decimals
integer0
thresholds
Color thresholds
object[][{"above":70,"tone":"warning"},{"above":90,"tone":"danger"}]
source
Count records
object—

Progress

progress

Progress toward a goal, as a bar or ring.

Update progress{"value":27}
With a pace marker{"value":27,"marker":{"value":30,"label":"pace"}}
Data & config fields

Data

FieldTypeDefault
valuenumber | string—
labelstring""
markerobject | nullnull

Config

FieldTypeDefault
title
Title
string""
staleAfter
0 = never. Dims the widget and says Stale when no push arrives in time. Seconds, or 90s / 1m / 2h in the spec.
integer0
style
Style
"bar" | "ring""bar"
goal
Goal
number100
unit
Unit
string""
tone
Color
"default" | "success" | "warning" | "danger" | "info""info"

Line chart

lineappend

One or more series over time. Push points and the chart scrolls live.

Append a point to each series (x = now){"append":{"api":912,"web":455}}
Append with an explicit timestamp{"append":{"api":[1767225600000,912]}}
Data & config fields

Data

FieldTypeDefault
series
Usually pushed from code with {"append": {...}}; x values are ms timestamps.
object[][]

Config

FieldTypeDefault
title
Title
string""
staleAfter
0 = never. Dims the widget and says Stale when no push arrives in time. Seconds, or 90s / 1m / 2h in the spec.
integer0
xAxis
time = timestamps
"time" | "category""time"
yLabel
Y axis label
string""
maxPoints
Keep last N points
integer200
showLegend
Legend
booleantrue
area
Fill area
booleantrue
smooth
Smooth lines
booleantrue
stacked
Stacked
booleanfalse
yFromZero
Counts and totals read wrong on a zoomed axis
booleanfalse
source
e.g. {"dataset":"feedback","op":"count","time":"submitted_at","bucket":"day","last":14}
object—

Bar chart

bar

Compare values across categories. Vertical or horizontal, grouped or stacked.

Replace the data{"categories":["Mon","Tue","Wed"],"series":[{"name":"Orders","values":[12,19,7]}]}
Data & config fields

Data

FieldTypeDefault
categoriesstring[][]
seriesobject[][]

Config

FieldTypeDefault
title
Title
string""
staleAfter
0 = never. Dims the widget and says Stale when no push arrives in time. Seconds, or 90s / 1m / 2h in the spec.
integer0
horizontal
Horizontal
booleanfalse
stacked
Stacked
booleanfalse
yLabel
Value axis label
string""
showLegend
Legend
booleantrue
showValues
Show values on bars
booleanfalse
source
e.g. {"dataset":"feedback","op":"count","groupBy":"tag"}
object—

Pie / donut

pie

Share of a whole across a few categories.

Replace slices{"slices":[{"name":"Yes","value":62},{"name":"No","value":38}]}
Data & config fields

Data

FieldTypeDefault
slicesobject[][]

Config

FieldTypeDefault
title
Title
string""
donut
Donut
booleantrue
showLegend
Legend
booleantrue
showPercent
Show percentages
booleantrue
source
e.g. {"dataset":"feedback","op":"count","groupBy":"status"}
object—

Scatter

scatterappend

Correlation between two measures, with an optional linear trend line.

Append a point{"append":{"Campaigns":[820,74]}}
Data & config fields

Data

FieldTypeDefault
seriesobject[][]

Config

FieldTypeDefault
title
Title
string""
xLabel
X axis label
string""
yLabel
Y axis label
string""
trendLine
Trend line
booleantrue
maxPoints
Keep last N points
integer1000

Radar

radar

Compare a few profiles across the same set of dimensions.

Set axes and values{"indicators":[{"name":"Tests","max":100},{"name":"Docs","max":100},{"name":"Perf","max":100},{"name":"Security","max":100},{"name":"UX","max":100}],"series":[{"name":"v2.0","values":[95,72,85,88,80]}]}
Data & config fields

Data

FieldTypeDefault
indicatorsobject[][]
seriesobject[]—

Config

FieldTypeDefault
title
Title
string""
showLegend
Legend
booleantrue

Tree / org chart

tree

Hierarchies: org charts, file trees, decision trees.

Replace the tree{"root":{"name":"Root","children":[{"name":"A"},{"name":"B"}]}}
Data & config fields

Data

FieldTypeDefault
rootobject | nullnull

Config

FieldTypeDefault
title
Title
string""
orientation
TB = top→bottom, LR = left→right
"TB" | "LR""TB"
expandDepth
Initially expanded levels
integer3

Table

tableappendinteractive

Rows of data with sorting and search. Append rows from scripts.

Append a row{"append":{"Order":"#1046","Customer":"Ken T.","Total":77,"Status":"Paid"}}
Replace all rows{"rows":[{"Order":"#1047","Customer":"Ada L.","Total":54,"Status":"Paid"}]}
Data & config fields

Data

FieldTypeDefault
columns
Each name is a key in the rows. Renaming one here renames it in every row.
string[][]
rows
Stored oldest → newest (the board can show newest first).
object[][]
runsobject—

Config

FieldTypeDefault
title
Title
string""
staleAfter
0 = never. Dims the widget and says Stale when no push arrives in time. Seconds, or 90s / 1m / 2h in the spec.
integer0
searchable
Search box
booleantrue
maxRows
Keep last N rows
integer500
newestFirst
Newest rows on top
booleantrue
rowKey
Identifies a row; row actions send its value
string—
rowActions
Row actions
object[][]
viewersCanUse
Otherwise only editors
booleanfalse
source
Show records of a board dataset instead of the rows pushed to this widget
object—
columns
Which fields to show and how to format them
object[]—
view
auto = a list when the widget is narrower than 640px
"table" | "list" | "auto"—
listobject—
rowLink
Each row opens this board page (templated from the row)
object—
expandobject—
moreLinkobject—
empty
Text when there are no rows
string—

Live log

logappend

A scrolling feed of events — perfect for bots, jobs and deploys.

Append a line{"append":"Deploy finished in 42s"}
Append with level{"append":{"text":"Disk at 91%","level":"warning"}}
Data & config fields

Data

FieldTypeDefault
entriesobject[][]

Config

FieldTypeDefault
title
Title
string""
staleAfter
0 = never. Dims the widget and says Stale when no push arrives in time. Seconds, or 90s / 1m / 2h in the spec.
integer0
maxEntries
Keep last N entries
integer200
showTime
Show timestamps
booleantrue
monospace
Monospace
booleantrue

Checklist

checklistappendinteractive

A shared to-do list. Viewers can tick items when allowed.

Add an item{"append":"Rotate API keys"}
Data & config fields

Data

FieldTypeDefault
itemsobject[][]

Config

FieldTypeDefault
title
Title
string""
viewersCanEdit
Viewers can tick items
booleanfalse
showProgress
Show progress
booleantrue

Kanban board

kanbanappendinteractive

Cards in columns — drag them along as work moves. Scripts can add cards.

Add a card to the first column{"append":"Fix login redirect"}
Add a card to a column{"append":{"title":"Ship v2.1","column":"doing","tag":"release"}}
Data & config fields

Data

FieldTypeDefault
columnsobject[][{"id":"todo","title":"To do"},{"id":"doing","title":"Doing"},{"id":"done","title":"Done"}]
cardsobject[][]

Config

FieldTypeDefault
title
Title
string""
viewersCanEdit
Viewers can move cards
booleanfalse

Timeline

timelineappend

Milestones and events in order — releases, incidents, project history.

Add an event (dated now){"append":"Deployed v2.1"}
Add an event with details{"append":{"title":"Incident resolved","date":"2026-10-09","tone":"success"}}
Data & config fields

Data

FieldTypeDefault
eventsobject[][]

Config

FieldTypeDefault
title
Title
string""
newestFirst
Newest first
booleantrue
maxEvents
Keep last N events
integer100

Team

peopleappend

Who's on the team and who's around — on-call, shifts, presence.

Update one person{"append":{"name":"Maya Cohen","status":"away"}}
Data & config fields

Data

FieldTypeDefault
peopleobject[][]

Config

FieldTypeDefault
title
Title
string""
showOffline
Show offline people
booleantrue

Record

recordinteractive

One item shown as a detail page — an issue, order or project — opened from a table row or a link.

Show one record (no dataset){"record":{"id":"ord-7","title":"Order #7","status":"paid","total":129}}
Data & config fields

Data

FieldTypeDefault
recordobject | nullnull
runsobject—

Config

FieldTypeDefault
title
Title
string""
viewersCanUse
Otherwise only editors
booleanfalse
dataset
Empty = show the record pushed in data.record
string""
keyParam
e.g. issue → ?p.issue=task-12
string"id"
titleField
Title field
string"title"
subtitle
{{field}} and {{ago:field}} are filled from the record
string""
pills
Pills
object[][]
links
Links
object[][]
back
Clears the key param (closes the record) or goes to `nav`
object—
sections
Sections
object[][]
actions
Actions
object[][]
toggles
Toggles
object[][]
empty
Text when nothing is picked
string"Pick an item to see its details."
notFound
Text when the item is missing
string"This item isn't available any more."

Status board

statusappend

Health of several services at a glance. Update one service at a time.

Update one service{"append":{"name":"API","status":"down","detail":"502 from upstream"}}
Data & config fields

Data

FieldTypeDefault
servicesobject[][]

Config

FieldTypeDefault
title
Title
string""
staleAfter
0 = never. Dims the widget and says Stale when no push arrives in time. Seconds, or 90s / 1m / 2h in the spec.
integer0
showSummary
Show summary
booleantrue

Indicator

indicator

One big status light: is the bot running? Is the door open?

Heartbeat{"status":"up","label":"Running"}
Report a failure{"status":"down","label":"Exchange API unreachable"}
Data & config fields

Data

FieldTypeDefault
status"up" | "degraded" | "down" | "unknown" | "maintenance""unknown"
labelstring""

Config

FieldTypeDefault
title
Title
string""
pulse
Pulse when up
booleantrue
staleAfter
0 = never. Great as a heartbeat. Seconds, or 90s / 1m / 2h in the spec.
integer0

Button

buttoninteractive

Trigger something: restart a bot, run a job, send a message.

Reset counter{"presses":0}
Data & config fields

Data

FieldTypeDefault
pressesinteger0
lastPressedAtnumber | nullnull
handledboolean | nullnull

Config

FieldTypeDefault
title
Title
string""
viewersCanUse
Otherwise only editors
booleanfalse
webhookUrl
We POST the new value here (https only)
string""
label
Button label
string"Run"
tone
Color
"default" | "success" | "warning" | "danger" | "info""default"
confirm
Ask for confirmation
booleanfalse

Action buttons

actionsinteractive

Several buttons in one panel — restart, deploy, pause, clear cache.

Reset counters{"counts":{},"lastAction":null,"lastAt":null}
Data & config fields

Data

FieldTypeDefault
lastActionstring | nullnull
lastAtnumber | nullnull
lastResult"ok" | "failed" | "unhandled" | nullnull
countsobject{}
selectedstring[] | nullnull
statesobject{}
runobject | nullnull

Config

FieldTypeDefault
title
Title
string""
viewersCanUse
Otherwise only editors
booleanfalse
webhookUrl
We POST the new value here (https only)
string""
buttons
Buttons
object[][{"id":"start","label":"Start","tone":"success"},{"id":"stop","label":"Stop","tone":"danger"}]
toggles
Toggles
object[][]

Toggle

toggleinteractive

An on/off switch your script reads — feature flags, pause trading, lights.

Turn on{"on":true}
Data & config fields

Data

FieldTypeDefault
onbooleanfalse

Config

FieldTypeDefault
title
Title
string""
viewersCanUse
Otherwise only editors
booleanfalse
webhookUrl
We POST the new value here (https only)
string""
onLabel
On label
string"On"
offLabel
Off label
string"Off"
onTone
danger = being on is bad (e.g. a safety stop)
"default" | "success" | "warning" | "danger" | "info""default"

Slider

sliderinteractive

Pick a number in a range — thresholds, volume, risk level.

Set value{"value":40}
Data & config fields

Data

FieldTypeDefault
valuenumber50

Config

FieldTypeDefault
title
Title
string""
viewersCanUse
Otherwise only editors
booleanfalse
webhookUrl
We POST the new value here (https only)
string""
min
Min
number0
max
Max
number100
step
Step
number1
suffix
Suffix
string""

Text input

inputinteractive

Send a line of text or a number to your script.

Set value{"value":"hello"}
Data & config fields

Data

FieldTypeDefault
valuestring | number""
submittedAtnumber | nullnull

Config

FieldTypeDefault
title
Title
string""
viewersCanUse
Otherwise only editors
booleanfalse
webhookUrl
We POST the new value here (https only)
string""
placeholder
Placeholder
string"Type a value…"
inputType
Type
"text" | "number""text"
submitLabel
Button label
string"Send"

Select

selectinteractive

Choose one option from a list — mode, environment, strategy.

Select an option{"value":"Aggressive"}
Data & config fields

Data

FieldTypeDefault
valuestring""

Config

FieldTypeDefault
title
Title
string""
viewersCanUse
Otherwise only editors
booleanfalse
webhookUrl
We POST the new value here (https only)
string""
options
Options
string[]["Option A","Option B"]
style
Style
"dropdown" | "buttons""buttons"

Form

forminteractive

Collect entries from people (several fields, one Submit); each submit saves a record in a dataset that tables show.

Reset the counter{"count":0}
Data & config fields

Data

FieldTypeDefault
countinteger0
lastSubmittedAtnumber | nullnull

Config

FieldTypeDefault
title
Title
string""
viewersCanUse
Otherwise only editors
booleanfalse
webhookUrl
We POST the new value here (https only)
string""
dataset
Where each submit is saved (created on the first submit)
string"entries"
fields
Fields
object[][{"name":"name","label":"Name","type":"text","required":true},{"name":"note","label":"Note","type":"textarea","required":false}]
keyField
The dataset's key field
string"id"
keyFrom
Fields that identify an entry, e.g. ["name","$today"]: a second submit updates it. Empty = every submit is new.
string[]—
timeZone
For $today, e.g. Asia/Jerusalem (empty = the time zone of the person submitting)
string""
submittedAtField
Submitted-at field
string—
submittedByField
Submitted-by field
string—
capacity
Capacity
object—
set
Fields every entry gets, e.g. {"status":"open"}
object—
publicLink
Anyone with /f/<board>/<form key> can submit (even on a private board) without seeing the board
booleanfalse
notify
Telegram {"channel":"telegram","botToken":…,"chatId":…} or {"channel":"email","email":…}; one message a minute, then "+N more"
string | object""
submitLabel
Button label
string"Submit"
successText
After submit
string"Saved"

Filters

filters

Chips, a segmented switch or page links that filter the tables on this page (per viewer, kept in the URL).

Data & config fields

Data

No fields.

Config

FieldTypeDefault
title
Title
string""
param
Page param this widget sets, e.g. status (URL ?p.status=…)
string"filter"
mode
Style
"chips" | "segmented" | "nav""chips"
default
Selected when the URL doesn't say
string—
optionsobject[][{"id":"all","label":"All"}]
counts
Show how many records of this dataset each option matches
object—
combineWith
Other filters widgets whose selection narrows these counts
string[]—

Text

markdown

Headings, notes and links, written in Markdown.

Replace text{"text":"# Deploy status\nAll green ✅"}
Data & config fields

Data

FieldTypeDefault
text
Markdown
string""

Config

FieldTypeDefault
title
Title
string""
align
Alignment
"left" | "center""left"
size
Text size
"sm" | "md" | "lg""md"

FAQ / accordion

accordionappend

Questions and answers that expand on click — runbooks, FAQs, notes.

Add an item{"append":{"q":"Who owns this board?","a":"The platform team."}}
Data & config fields

Data

FieldTypeDefault
itemsobject[][]

Config

FieldTypeDefault
title
Title
string""
openFirst
Open the first item
booleantrue

Image

image

Show an image or a camera snapshot that refreshes on a timer.

Change image{"url":"https://example.com/cam.jpg"}
Data & config fields

Data

FieldTypeDefault
url
Image URL
string""

Config

FieldTypeDefault
title
Title
string""
fit
Fit
"cover" | "contain""cover"
refreshSeconds
0 = off
integer0
alt
Alt text
string""

Embed

embed

Embed a web page, video or form (YouTube, Google Docs, Loom…).

Change URL{"url":"https://example.com"}
Data & config fields

Data

FieldTypeDefault
url
Page URL
string""

Config

FieldTypeDefault
title
Title
string""

Clock

clock

Current time in any time zone.

Data & config fields

Data

No fields.

Config

FieldTypeDefault
title
Title
string""
timeZone
e.g. Asia/Jerusalem. Empty = viewer's
string""
hour12
12-hour
booleanfalse
showSeconds
Seconds
booleantrue
showDate
Date
booleantrue

Countdown

countdown

Days, hours and minutes until a launch, deadline or event.

Set target{"target":"2026-12-31T23:59:00Z"}
Data & config fields

Data

FieldTypeDefault
target
Target date & time
string""

Config

FieldTypeDefault
title
Title
string""
doneText
Text when finished
string"It's time! 🎉"