Fieldia

What Fieldia promises

What an app, a page author and a server can count on from Fieldia: what it guarantees in the browser and what the app's server must still do, how it changes from one version to the next, how fast it is, and the browsers it runs in.

In short

For an owner choosing Fieldia, in plain words; the rest of this page says the same in detail, each promise with the test that holds it.

Each promise below names its gate: a test in the repository that runs on every pull request, or in the CI job named beside it, and fails the build when the promise stops being true. Where a promise has no gate, it says so. tools/promises.test.mjs holds this page to its gates: every file it names exists, every test it quotes is in that file, and every number it gives is the one the code and its budgets hold.

Security: what Fieldia guarantees in the browser

A page is data. Fieldia draws it and never runs code from a page, a record's value or what a person types.

Bounded work

What a page or a person can make Fieldia do has limits:

WhatThe mostGate
A page's patternNested, overlapping and ambiguous repeats are refused by both page checks. No pattern is tried on an answer longer than 1,000 characters: that answer fails at once.libs/core/src/lib/format/pattern-risk.spec.ts ("tries no pattern on an answer longer than it checks")
Text read as a date100 characterslibs/widgets/src/lib/long-text.spec.ts ("reads no date from text longer than a date is written")
A value a page works out100,000 characters of text, 10,000 items of a listlibs/core/src/lib/record/computed-most.spec.ts
An imported file50,000 rows, 32,767 characters a celllibs/viewer/src/lib/import-file.spec.ts ("keeps at most so many rows")
A workbook's archive, opened100 MB a file in it, 200 MB in alllibs/viewer/src/lib/unzip.spec.ts ("refuses a file saying it opens to more than the most")
Answers checkSubmission reads1 MB, unless the server sayslibs/core/src/lib/record/submission.spec.ts ("refuses answers larger than they may be")

Not bounded: the time a page's own conditions and computed values take. They run as the page writes them. Check a page from an author you do not trust with validatePage before you store it (see For AI agents). No gate: this one is the app's.

Security: what the app's server must still do

The browser's checks help the person filling in the form. They are not a security boundary: anyone can send a request by hand, and it passes none of them.

How to report a vulnerability, and the versions that get fixes: SECURITY.md.

Stability: how Fieldia changes

Fieldia releases on a train (docs/maintainers/release-train.md).

Deprecations

What is deprecated now, and the minor it changes in. The console's warning links here.

IdSinceChanges inWhoWhat changes, and what to write instead
format.under-stamped0.360.37page authorsA page that says an older format than a setting it uses came in is warned of by the whole check a viewer runs after the first draw and by validatePage, and refused from 0.37. Stamp the page with stampPage(page), or write the format the warning names.
page.invalid0.360.37page authorsA page validatePage refuses that 0.35's viewer drew — a list's pageSize past 500, a key the format does not have, a value of another kind, its least more than its most, a first value outside its choices, an option or a column twice — is drawn in 0.36, its mistakes said once in the console and to onError (stage: "check"), and refused from 0.37 as the check before the draw refuses a page. Check pages with validatePage or npx fieldia-check before they are stored.

Gate: tools/promises.test.mjs ("every deprecation is in the table") holds this table to the list in libs/core/src/lib/deprecations.ts.

The page format

Performance

0.35.0, measured, on a desktop and on a mid-range phone (412 px wide, its CPU four times slower):

Each release is held to budgets that fail the build. The timings run alone in CI's perf job, one worker, with three times the budget's slack for a shared runner; the phone's budgets are four times a desktop's. The counts are counted by the browser, so a slow runner changes none of them.

WhatDesktopPhoneGate
A key typed in a field a rule reads, 500 fields16 ms64 mse2e/perf.spec.ts ("type in a field a rule reads")
A key's paint in a field nothing reads, 500 fields3 ms12 mse2e/perf.spec.ts ("paint a key in a field nothing reads")
A choice that shows or hides 10 fields100 ms400 mse2e/perf.spec.ts ("choose: 10 fields show or hide")
A viewer's first paint, 500 fields400 ms1,600 mse2e/perf.spec.ts
A key's work, 500 fields: parts brought up to date1717e2e/perf-scale.spec.ts ("a key works out only what reads it")
A list of 5,000 rows: DOM nodes kept1,7002,000e2e/perf-scale.spec.ts ("the DOM a list keeps")
A key in the header of a 200-line table: cells written00e2e/perf-scale.spec.ts ("a key in the header writes no line")
A bar dropped, 500 tasks: elements added3333e2e/perf-scale.spec.ts ("a bar dropped and a change of scale")

An app's first load from the npm packages, bundled by esbuild, KB gzipped — the page's first paint, then usable:

AppFirst paintUsableGate
A record form250.3 KB342.9 KBtools/npm-first-load.mjs
A list249.4 KB339.0 KBtools/npm-first-load.mjs
The screen designer604.2 KB837.9 KBtools/npm-first-load.mjs

Usable counts the whole check, which a page asks for once it is drawn. The one-tag script, fieldia.js, is held to 197.3 KB gzipped, the whole check it asks for after the first draw (fieldia.check.js) to 17.3 KB, and each other part it loads later to its own budget. Gate: tools/script-bundle.mjs.

These are budgets, not measurements. A count's budget is what the release counted, with a little room; a timing's is a frame for a key and a tenth of a second for a click. Each run's measurements are kept with CI's perf job.

Browsers

Fieldia supports the last two major versions of Chrome and Edge, Firefox and Safari; Safari on iOS (every browser on an iPhone runs Safari's engine); and Chrome on Android. The npm packages are ES2022, and the one-tag script ES2020.

BrowserChecked in CINot checked in CI
Chrome, EdgeChromium 156, Playwright's build: every browser spec, in every framework's demo, every demo's how-to taken step by step by an automated run that uses the mouse and the keys as a person would, and the perf gates; the key screens compared with their stored images in Playwright's own containerChrome's and Edge's own builds; the major before
FirefoxFirefox 157, Playwright's build: the smoke set (115 specs) in the plain demoThe rest of the specs; the major before
SafariWebKit 27.2, Safari's engine as Playwright builds it: the smoke set (115 specs) in the plain demoSafari itself; the major before
Safari on iOSWebKit at an iPhone 14's size with touch: every demo's how-to taken step by step by an automated run that taps as a finger would (how-to-phone), and the smoke set's phone specsA real iPhone
Chrome on AndroidChromium at a phone's size with touch; the perf gates on a phone's CPUA real Android phone

Each part the one-tag script loads is failed in turn in all three engines, and the page must still draw and say so (e2e/part-failures.spec.ts). A test that fails and then passes on a re-run of the same commit is a flake: CI's browser jobs keep retries: 0, run what failed once more, and log each flake in the job's summary and an artifact (tools/flake-log.mjs, held by tools/workflows.test.mjs).

From 0.37.0, each minor waits for a real iPhone and a real Android phone checked by a person; 0.36.0 was checked only by CI's phones (WebKit iPhone 14 with touch, Chromium at a phone's size). The checklist and its record are docs/maintainers/real-devices.md; node tools/release.mjs publish and tools/publish-packs.mjs refuse a minor from 0.37.0 on without a row that passed. Gate: tools/real-devices.test.mjs ("the gate bites from 0.37.0").

Gate: tools/promises.test.mjs ("the browsers CI runs are the ones this page names") holds this table to playwright.config.ts, .github/workflows/ci.yml and the browsers Playwright installs.