Skip to main content

apps.json

An app is a template that a backend offers: a set of tabs of widgets, with their layout and their starting values, which a user can open as a dashboard. A backend lists its apps in a file named apps.json, at the same address as its widgets.json. The file is an array, and each element describes one app. The widgets that an app places are the ones that widgets.json defines. App behavior explains what FINOS Workspace does with an app.

Schema​

The web app's Zod schema templateSpecificationSchema in frontend/src/lib/types/app.ts defines the file, and the description of every field is part of that schema. The page below is generated from the JSON Schema (draft-07) that the web app's reference test writes to frontend/reference-data/apps-schema.json, as Regenerate the reference data describes. A test fails when a field has no description.

App​

One element of the file.

objectno other properties

Properties

  • templateIdstring

    The id of the app, which roles use to grant access to it; without it the web app falls back to the generated id

  • idstringpattern ^custom-.+

    Another way to give the app's id when templateId is missing; it starts with custom-

  • namestringrequired

    The name on the app's card, which is also the name of the dashboards that users create from it

  • descriptionstring

    The text under the name on the app's card

  • selected_agentstring

    The id or the name of an agent that the user has connected: when a user opens the app, the Copilot selects this agent and its panel opens

  • imgstring

    The address of the picture on the app's card, which may be relative to the backend; the card shows it in both themes unless img_dark or img_light overrides it

  • img_darkstring

    The address of the picture that the card shows in the dark theme instead of img

  • img_lightstring

    The address of the picture that the card shows in the light theme instead of img

  • authenticationstring

    Accepted for compatibility; the web app does not read it

  • tabsTabsrequired

    The tabs of the app by tab id. A dashboard that a user creates from the app has one tab for each entry, and it shows a Navigation Bar widget when the app has more than one

  • groupsGroup[]default []

    The groups that link a parameter across the widgets of the app

    5 nested properties
    • namestringrequired

      The name that the groups lists of the layout items use to put a widget in the group

    • paramNamestring

      The name of the parameter that the group links, for a group of the type param or endpointParam

    • type"param" | "endpointParam"required

      The kind of the group: param or endpointParam

    • widgetIdsstring[]

      The widgets that belong to the group, by their key in widgets.json, as an alternative to naming the group in each layout item

    • defaultValueany | null

      The value that the group starts with; for a date, the text $currentDate, optionally with a modifier, stands for today

  • promptsstring[]

    The questions that the Copilot suggests when somebody uses a dashboard that was created from the app

  • mcpServersobject[]

    The MCP servers that the app uses. When a user connects the backend, Workspace adds each server to the user's MCP servers

    4 nested properties
    • namestringrequired

      The name of the MCP server, which a widget's mcp_tool names in mcp_server; apps of one backend may repeat a name only for the same url

    • descriptionstring

      What the server offers

    • urlstring (uri)required

      The address of the server's MCP endpoint

    • authType"oauth" | "token"

      How the server signs a user in: oauth, or token for a server that needs the Authorization header of the backend's connection

  • allowCustomizationboolean

    Whether users can change the widgets of a dashboard created from the app; when false, the dashboard is locked: users cannot add, remove, duplicate or move its widgets, but can still change parameters and resize widgets

Group​

A set of widgets that share the value of one parameter

objectno other properties

Properties

  • namestringrequired

    The name that the groups lists of the layout items use to put a widget in the group

  • paramNamestring

    The name of the parameter that the group links, for a group of the type param or endpointParam

  • type"param" | "endpointParam"required

    The kind of the group: param or endpointParam

  • widgetIdsstring[]

    The widgets that belong to the group, by their key in widgets.json, as an alternative to naming the group in each layout item

  • defaultValueany | null

    The value that the group starts with; for a date, the text $currentDate, optionally with a modifier, stands for today

Layout​

One widget of a tab: where it sits, how big it is and what it starts with

map<string, any>

Properties

  • istringrequired

    The widget that this item places: its key in the backend's widgets.json. The id navigation_bar places no widget and makes the dashboard show its tabs in a Navigation Bar widget

  • xnumberrequired

    The column of the widget's left edge, counted from 0 on a grid of 40 columns

  • ynumberrequired

    The row of the widget's top edge, counted from 0

  • wnumberrequired

    The widget's width in columns

  • hnumberrequired

    The widget's height in rows; a height of 1 shows the widget minimized

  • minWnumber

    The smallest width in columns that a user can resize the widget to

  • minHnumber

    The smallest height in rows that a user can resize the widget to

  • maxWnumber

    The largest width in columns that a user can resize the widget to

  • maxHnumber

    The largest height in rows that a user can resize the widget to

  • movedboolean

    A flag of the grid library that places the widgets: the item has moved

  • staticboolean

    A flag of the grid library: a static item cannot be moved or resized

  • isDraggableboolean

    A flag of the grid library: false stops a user from dragging the widget

  • What a widget starts with: the values of its parameters and its content

  • groupsstring[]

    The names of the groups, from the app's groups, that the widget belongs to

Tabs​

The tabs of the app by tab id. A dashboard that a user creates from the app has one tab for each entry, and it shows a Navigation Bar widget when the app has more than one

map<string, object>

Widget state​

What a widget starts with: the values of its parameters and its content

map<string, any>

Properties

  • paramOrderstring[]

    The names of the widget's parameters in the order in which the widget's header shows them

  • paramsmap<string, any>

    The values of the widget's parameters by parameter name; a parameter that is missing keeps the value from widgets.json

  • storagemap<string, any>

    The content that the widget keeps: text, a page or a plugin's configuration

    3 nested properties
    • textstring

      The text of a markdown widget

    • htmlstring

      The page of an HTML widget

    • pluginobjectno other properties

      The state of a plugin widget

      1 nested property
      • configmap<string, any>

        The configuration of a plugin widget, which has to satisfy the settings that the plugin declares

Example​

This file offers one app. It places two widgets of the backend side by side, starts the first one with the year 2024, and suggests one question to the Agent.

[
{
"name": "Sales overview",
"description": "Revenue by region next to the notes of the sales team.",
"templateId": "sales-overview",
"prompts": ["Which region has the highest revenue?"],
"tabs": {
"overview": {
"id": "overview",
"name": "Overview",
"layout": [
{ "i": "revenue_by_region", "x": 0, "y": 0, "w": 20, "h": 12, "state": { "params": { "year": 2024 } } },
{ "i": "sales_notes", "x": 20, "y": 0, "w": 20, "h": 12 }
]
}
}
}
]