Manifest
Every widget package has a widget.json file at its root. Toolblox reads it when it installs a
package, every time it lists installed widgets, and whenever a widget surface opens. The manifest
decides which surfaces the widget has (a module, sandboxed pages, or both), which permissions it
requests, which HTTPS origins it declares, and which native executables it may start.
Two sources define the format, and both must be satisfied:
- The JSON Schema,
schemas/widget-manifest-v1.schema.json, published athttps://toolblox.dev/schemas/widget-manifest-v1.schema.json. Point an editor at it with"$schema"for completion while authoring, then remove the key before packaging (see Unknown fields). - The host validation in
WidgetManifest::validateinsrc-tauri/src/widgets.rs. This is what actually accepts or rejects a widget. Where it’s stricter than the schema, this page says so.
Complete example
Section titled “Complete example”This manifest uses every field. Few widgets need all of them.
{ "schemaVersion": 1, "id": "trade_tracker", "name": "Trade Tracker", "version": "1.2.0", "description": "Logs trades per account and shows value changes over time.", "icon": "icon.svg",
"module": "main.js", "entry": "index.html", "settingsEntry": "settings.html", "dashboardEntry": "dashboard.html",
"permissions": [ "accounts.read.basic", "widgetData.read", "widgetData.write", "network.fetch", "process.spawn" ], "networkOrigins": ["https://api.example.com"], "processes": [ { "id": "price-worker", "executable": "optional-bin/price-worker.exe", "allowedArguments": ["--quiet", "--verbose"] } ]}The package that goes with it looks like this:
- widget.json
- main.js the module, imported into the app window
- index.html sandboxed page frame
- settings.html sandboxed settings frame
- dashboard.html sandboxed dashboard frame
- icon.svg
Directoryoptional-bin/
- price-worker.exe
Field reference
Section titled “Field reference”| Field | Type | Required | Rule |
|---|---|---|---|
schemaVersion |
integer | Yes | Must be 1. |
id |
string | Yes | 1 to 64 characters from a–z, 0–9, and _. |
name |
string | Yes | 1 to 80 characters, not only whitespace. |
version |
string | Yes | A valid SemVer 2.0 version, such as 1.2.0 or 2.0.0-beta.1. |
module |
string | One of module or entry |
Must be exactly main.js. |
entry |
string | One of module or entry |
Must be exactly index.html. |
settingsEntry |
string | No | Must be exactly settings.html. |
dashboardEntry |
string | No | Must be exactly dashboard.html. |
description |
string | No | Up to 500 characters (schema). Defaults to an empty string. |
icon |
string | No | Free-form string. Not validated. |
permissions |
array of strings | No | Values from the permission list, no duplicates. Defaults to []. |
networkOrigins |
array of strings | No | Bare HTTPS origins. Requires network.fetch. Defaults to []. |
processes |
array of objects | No | Executables under optional-bin/. Requires process.spawn. Defaults to []. |
popout |
string | No | Shape of the widget’s own window: portrait (380×520) or landscape (600×320). Defaults to portrait. |
popoutOnTop |
boolean | No | Keeps the widget’s own window above other windows. Defaults to false. |
minAppVersion |
string | No | Oldest Toolblox version the widget runs on, as SemVer. See minAppVersion. |
schemaVersion
Section titled “schemaVersion”The manifest format version. The only supported value is 1. Any other value fails with:
This widget uses an unsupported manifest version.
The widget’s permanent identity. It names the install folder (<widgets folder>/<id>/), the
widget’s routes (/widgets/<id> and /widgets/<id>/settings), its asset URLs, its log target
(widget:<id>), its storage key, and its per-account data key. The catalogue entry, the
package manifest, and any installed copy must all use the same ID.
The host accepts 1 to 64 bytes, each a lowercase ASCII letter, an ASCII digit, or _. Hyphens and
uppercase letters are rejected, even though some other parts of the host (such as the asset
protocol) would tolerate them. A bad ID fails with:
Widget IDs may contain only lowercase letters, numbers, and underscores.
Pick the ID once. Changing it creates a different widget, with separate storage and data.
The display name. It appears in the sidebar, as the title of the widget’s page and settings page, on the Widgets page cards, in confirmation dialogs, and in render error messages. The host counts Unicode characters, not bytes, and rejects a name that’s empty after trimming whitespace or longer than 80 characters:
The widget name must contain between 1 and 80 characters.
version
Section titled “version”Parsed with the Rust semver crate. Leading v prefixes, two-part
versions such as 1.2, and other non-SemVer strings fail with:
The widget version isn’t valid SemVer.
Toolblox compares versions with SemVer precedence. An update is offered only when the catalogue
version is strictly greater than the installed version, so pre-release versions sort before their
release (1.3.0-beta.1 is lower than 1.3.0). The manifest version must also equal the catalogue
entry’s version exactly, or installation fails. See
Packaging.
module
Section titled “module”Declares a module widget. The value must be main.js; the
file name is fixed so the host never resolves an author-supplied path. Toolblox imports the file
as an ES module into the app window and calls its activate export with the host API.
The widget module must be main.js.
Declares a sandboxed page frame, shown on the widget’s page at /widgets/<id> when no module page
is registered. The value must be index.html.
The widget entry must be index.html.
A manifest must declare module, entry, or both. With neither, validation fails with:
The widget must declare an entry page or a module.
settingsEntry
Section titled “settingsEntry”Declares a sandboxed settings frame, shown on /widgets/<id>/settings. The value must be
settings.html.
The widget settings entry must be settings.html.
dashboardEntry
Section titled “dashboardEntry”Declares a sandboxed dashboard frame, shown as its own section on the Dashboard while the widget
is enabled. The value must be dashboard.html.
The widget dashboard entry must be dashboard.html.
settingsEntry and dashboardEntry don’t count toward the “entry or module” requirement. A
widget with only a dashboardEntry is rejected. See
Iframe widgets for how the three frame surfaces behave.
description
Section titled “description”One sentence describing what the widget does. It appears on the Widgets page cards (clamped to two
lines). The schema caps it at 500 characters; the host doesn’t check the length. The catalogue
entry carries its own description, which is what users see before installing.
The review rules reject widgets that send data anywhere the description doesn’t state, so the description is also a disclosure.
An optional path to an image in the package, such as icon.svg. Installed widget cards show it as
the logo, and widgets without one show a generic icon. Animated GIFs play, and show their first
frame while motion is off or reduced. Paths
that don’t resolve to a file in the package also show the generic icon. The catalogue’s iconUrl
is what appears on catalogue cards. See
Catalogue.
banner
Section titled “banner”An optional path to an image in the package, such as banner.png, shown across the top of the
widget’s card. The catalogue’s bannerUrl is what appears on catalogue cards. It’s cropped to fill a wide strip, so a 7:3 image of at least 700×300
pixels fits best. Animated GIFs play. Widgets without one, or with a path that doesn’t resolve,
show a plain strip.
permissions
Section titled “permissions”The permissions the widget requests, as an array of unique strings:
| Permission | Grants |
|---|---|
accounts.read.basic |
accounts.list |
widgetData.read |
widgetData.get |
widgetData.write |
widgetData.set |
roblox.status |
roblox.status |
roblox.join |
roblox.join |
network.fetch |
network.fetch |
process.spawn |
process.spawn, process.send, process.poll, process.stop |
An unknown value makes the whole manifest fail to parse, which surfaces as:
The widget manifest isn’t valid JSON.
A repeated value fails with:
The widget manifest contains duplicate permissions.
Sandboxed frames receive exactly these permissions. Module widgets receive all of them regardless
of this list, but the list still matters: the catalogue entry must match it exactly, it’s what the
install and update prompts show, and it gates networkOrigins and processes. See
Permissions.
networkOrigins
Section titled “networkOrigins”Bare HTTPS origins the widget declares it will contact, such as https://api.example.com or
https://prices.example.com:8443. Each value is parsed as a URL and must have:
- the
httpsscheme, - a host,
- no path other than
/, no query, and no fragment, - no username or password.
Any violation fails with:
Widget network origins must be bare HTTPS origins.
A value that isn’t a URL at all fails with:
A widget network origin isn’t valid.
Declaring origins without network.fetch in permissions fails with:
The widget declares network origins without network.fetch permission.
The schema only requires each value to be a URI and unique. The host is stricter.
processes
Section titled “processes”Native executables the widget may start through the
process.* methods. Each entry is an object:
| Field | Type | Required | Rule |
|---|---|---|---|
id |
string | Yes | 1 to 64 bytes of ASCII letters, digits, _, and -. Unique within the manifest. |
executable |
string | Yes | A relative path that starts with optional-bin/. |
allowedArguments |
array of strings | No | The only arguments the process may receive. Defaults to []. |
The host checks each entry in order:
- The ID’s characters and length:
Widget process IDs contain unsupported characters.
- The executable path must be non-empty, relative, and free of
.., root, and drive components:The widget process executable path isn’t safe.
- The path must start with
optional-bin/(forward slash):Widget processes must live under optional-bin/.
- The ID must not repeat:
The widget manifest contains duplicate process IDs.
Declaring any process without process.spawn in permissions fails with:
The widget declares processes without process.spawn permission.
At install time, every declared executable must exist as a file in the package, or installation
fails with Widget process <id> is missing. At start time, the executable path is resolved again
and must still be a file inside the widget folder.
allowedArguments is a set, not a sequence. A start request may pass any number of arguments up
to 32, in any order and with repeats, as long as each argument is up to 1 KB and appears in this
list.
Executables run as the signed-in user, outside any sandbox. The review rules forbid using them to read, change, or inject into the Roblox client.
minAppVersion
Section titled “minAppVersion”The oldest Toolblox version the widget runs on, such as 0.4.6. Set it when the widget uses a host
API or toolblox.ui component that older versions don’t have. Pre-release labels are ignored when
comparing, so 0.4.6 accepts 0.4.6-beta. An invalid version fails with:
The widget’s minimum Toolblox version isn’t valid SemVer.
The catalogue entry carries the same value. The catalogue card shows Requires Toolblox <version> or later., and on an older version it disables Install, or Update for an installed widget whose newer version needs it. Installing anyway fails with:
<name> needs Toolblox <version> or later. Can you update Toolblox first?
Toolblox updates itself on launch, so this is rare. Debug builds run unreleased code and accept every minimum.
Unknown fields
Section titled “Unknown fields”The schema sets additionalProperties: false at the top level and in each process object, so a
schema-aware editor flags unknown keys, including $schema. The host deserializer ignores
unknown keys rather than rejecting them. Don’t rely on that: keep packaged manifests to the fields
on this page so they validate against both.
Size and encoding
Section titled “Size and encoding”widget.json may be at most 128 KB:
The widget manifest is too large.
It must be valid UTF-8 JSON, and every field must have the right type, or it fails with:
The widget manifest isn’t valid JSON.
When the manifest is checked
Section titled “When the manifest is checked”| Moment | What happens |
|---|---|
| Installation | The manifest is read from the extracted staging folder and validated. Its id, version, and permissions must match the catalogue entry, and every declared module, entry, settingsEntry, dashboardEntry, and process executable must exist as a file. |
| After installation | Toolblox writes .installed.json next to the manifest, recording the package SHA-256 and the manifest’s own SHA-256. |
| Every listing | Each widget folder’s manifest is read and validated again, and in release builds its SHA-256 must still match .installed.json. An edited manifest produces Widget <id> has a modified manifest. Reinstall it from the Catalogue. |
| Development builds | A folder without .installed.json is accepted, so unpacked widgets load straight from the widgets folder. The manifest is still validated. |
Manifest failures for installed widgets appear at the top of the Widgets page as
Widget <folder> couldn't load: <reason>, and the widget is left out of the app until it’s fixed.
Related pages
Section titled “Related pages”- Host API for what
main.jsreceives. - Iframe widgets for
entry,settingsEntry, anddashboardEntry. - IPC methods for what each permission unlocks.
- Packaging for the ZIP layout and install checks.