Reference

Limits

File size, ids, field lengths and counts, source schedules, notification limits and Macs per license.

Pages

Limit
Page file1 MB. Most pages are a few KB; the limit stops a runaway script from slowing the panel. Larger, Legato shows the page as Can't read this page and legato set refuses it with too_large.
Page idThe file name without .json. A new page's id is 1–64 characters, a–z, 0–9 and -, starting with a letter or digit.
Cards on a page1 to 24, a tabs card counting as one; 120 at most counting the cards in tabs
title1–60 characters
iconUp to 64 characters, an SF Symbol name such as chart.bar.fill
schema_version1, or left out
Source names (keys of sources)a–z, 0–9, _ and -
notify id1–64 characters: letters, digits, ., _, : and -, starting with a letter or digit
notify title / body1–60 / 1–200 characters

There's no limit on how many pages the folder holds.

Cards

Card ids are 1–64 characters, a–z, 0–9, - and _, starting with a letter or digit, and unique on the page. Every card but heading and tabs has a label of 1–60 characters, and a card can have up to 6 buttons (actions).

Limit
unit (stat, sparkline, gauge, bars, breakdown, ranges, columns, pacing)1–16 characters; a tiles unit up to 16, or empty
stat value / delta as a stringUp to 32 / 16 characters
pacing elapsed / detail0 to 1 / up to 120 characters
list itemsUp to 500, each 1–160 characters, with an optional detail of 1–40
table1–4 columns (headings 1–32 characters), up to 10 rows, cells up to 60 characters
sparkline points2–240
status detailUp to 120 characters
text body1–500 characters
link url / detailhttps:// only, up to 2,048 characters / up to 120
countdown at / detailISO 8601 with seconds and a zone / up to 120 characters
map pinsUp to 10, labels 1–40 characters, a place 1–200. This Mac keeps up to 2,000 places it looked up.
facts items1–12, keys 1–40 characters, values 1–80
gauge bands1–6
bars items1–20, labels 1–40 characters
pacing items1–20, labels 1–40 characters, each with a target above 0
pacing detailsup to 500 lines, text 1–80 characters, detail up to 40
breakdown items / detail2–6, labels 1–40 characters, values 0 or more / up to 120 characters
ranges items / detail1–14, labels 1–24 characters, up to 2 info notes of 10 characters / up to 200 characters
columns series / items / detail1–3 names of 1–24 characters / 1–48, labels 1–12 characters, one value per series / up to 200 characters
fleet items1–60, names 1–24 characters, details up to 80, groups 1–24 characters; max_items 1–60
tiles itemsUp to 60, labels 1–16 characters, values up to 24, details up to 80; decimals 0–4, scale above 0, max_items 1–60
heatmap itemsUp to 371, dates spanning at most 371 days, labels up to 80 characters; thresholds 4 ascending numbers
checklist itemsUp to 20, text 1–120 characters, details up to 120
agenda days / items1–30 / up to 60, titles 1–80 characters, details up to 120
month itemsUp to 120, titles 1–80 characters, details up to 120
code code / language1–4,000 characters / up to 24: a–z, 0–9, +, #, . and -
heading text / detail1–80 / up to 120 characters
tabs tabs / cards2–5, labels 1–24 characters / 1–12 cards in each, any type but tabs and heading
An item's iconUp to 80 characters

Lengths count Unicode code points, as JSON Schema does.

These limits come from the page schema, which legato schema, get_page_schema and any editor that reads the file's $schema check against. When it loads a file, Legato itself checks the counts in the Pages table, the number of tabs and cards in them, unique card ids, required fields and their types, dates and colours. Keep text within the lengths above: they're what the cards are designed to show.

Sources

See Sources.

Limit
How often (every)At least 1m; 5m when left out
A request10 seconds without data, or 20 seconds in all
A button's request60 seconds, or the button's timeout, up to 30 minutes
A button's GraphQL query (graphql.query)20,000 characters
A response1 MB; Legato stops reading past it
Named requests8 a source
Requests in one fetch64, counting a request with each_entry, each_row or follow as its max
A request for each entry (each_entry)Up to 50 entries sent (max, 20 when left out), 4 at a time, 0.1 seconds apart to one service; each entry's answer up to 256 KB; a list of more than 200 entries fails the request
A request with every entry (all_entries)Up to 100 entries (max, 50 when left out)
A list across pages (follow)Up to 20 pages (max, 10 when left out), one after another; at most 10,000 items and 8 MB joined
Days in a list by day (by_day)Up to 400, from through through
A request for each row (each_row)Up to 50 rows sent (max, 20 when left out), as each_entry sends; a kept answer (keep) for 1 minute to 24 hours
A feed list (feeds)Up to 30 feeds read, 4 at a time, each answer up to 1 MB; the newest 50 posts kept from each, and 200 in the merged items
After a failureThe wait doubles each time, up to 30 minutes (or the source's own every, if that's longer)
A server's Retry-AfterHonored, for up to 24 hours
Buttons on a card4
Secret names1–48 characters: a–z, 0–9 and -, starting with a letter or digit
List names (Settings → Lists)1–48 characters: a–z, 0–9 and -, starting with a letter or digit
A list set by an agent (set_list, legato lists set)64 KB (65,536 bytes) of entries in one request

Legato also scans the Pages folder every 15 seconds, behind its file watch, so a change it wasn't told about (on a network volume, say) still shows within that time.

History

These apply on each Mac. See History.

Limit
dataset name1–64 characters, a–z, 0–9 and -, starting with a letter or digit
eachOne path, or 2–4
keyUp to 256 characters, with at least one {…}; each field it uses must be text
fields1–64 different paths
remove_after1–16 fields, each with 1–16 markers of 1–64 characters, and up to 32 keep_exact phrases of 1–64
keep.for1d to 9999d
readersUp to 32 page ids
A date's textUp to 80 characters; longer is undated
One row16 KB (16,384 bytes) of JSON, as kept; a larger one isn't kept
One answer kept, or one rows add2,000 items and 8 MB (8,388,608 bytes)
A dataset's current history20,000 rows and 50 MB (52,428,800 bytes); the oldest rows make way
Every history on the Mac500 MB (524,288,000 bytes); a batch that would grow storage past it isn't kept
Gaps in collectingMore than twice the source's every, plus 2 minutes; the last 200 are kept for each history
A dataset whose page stops collecting itDeleted after 30 days, unless the page comes back or it's transferred
A rows add file32 MB (33,554,432 bytes) before it's read; the items in it, 2,000 and 8 MB
A rows request10 MB (10,485,760 bytes); one Legato hasn't reached in 2 minutes is dropped unanswered
rows listUp to 500 rows
Waiting for an answer to legato rows30 seconds, more while Legato opens
row on a dataset source16 names; 4 different rows per history; 1 KB of values per row; 32 MB of values per history and 128 MB in all
Older histories with no rowsThe newest 20 of each dataset are kept
Import details in coverage.importedThe newest 200 of each history
A request id1–64 letters, digits and -; answered again for 7 days, for the same dataset and operation
sample.everyMinutes that divide an hour, 1m to 1h; not shorter than the source's every
Sample fields1–16 names; a value is text of up to 256 characters, a number or true/false
One sample512 bytes of JSON; kept 365 days unless keep says
A history of samples10,000 items and 200 MB; its oldest day makes way, never another history's
Every history of samples400 MB, apart from records' 500 MB
A read of samples without key100,000 samples
A rows answer the tool hasn't picked upRemoved after 1 minute

Sizes are the rows' JSON, not the database file, which takes more on disk.

The 500-row limit is for rows list only: a page reading a history gets every row in its period.

Notifications

These apply on each Mac. See Notifications.

Limit
Notifications per page4 in any 10 minutes
Notifications in all20 in any 10 minutes
A notifyShown once per id per page; skipped if the file was last modified more than 24 hours before Legato sees it
notify ids remembered per pageThe last 50
Quiet time after launch and wake30 seconds, then one summary if several things happened
Recent activityThe last 50 level changes per page, from the last 7 days

Notifications over a limit are dropped, not delayed.

Macs

A license runs on up to 5 Macs at once. Settings → License lists them and can release one. Legato checks the license with the licensing server about once a day; it keeps working offline for 30 days after the last check, and 7 more if the server can't be reached. See License.