VIEWS / STANDARD LIBRARY

Compose portable view values

The same namespaced standard-library calls can power Signals, actions, collections, and computed component data in web, Android, and iOS views.

1 / SYNTAX

Name the target Signal and the function

View library calls are pure values. set writes the result to a Signal, source names the canonical namespace and function, and every other prop is a named argument.

dowe
fn normalize
  set normalized source:str.trim value:form.name
  set page source:parse.int value:form.page fallback:1
  set ordered source:sort.by values:items field:"score" direction:"desc" nulls:"last"
  set total source:list.sumBy values:items field:"score"
View functions use `set target source:namespace.function ...`. The compiler lowers the call once; web, Android, and iOS own only the final helper implementation.

2 / CROSS-TARGET PLAYGROUND

Run one portable workflow

This page exercises text normalization, safe parsing, CSV rows, stable sorting, list filtering, URL query construction, aggregation, JSON serialization, and ISO date formatting from one view action.

CSV text

Normalized text

Parsed page

Score total

Canonical date

javascript

3 / REACTIVE RESULTS

Keep arrays immutable and inspectable

sort and list return new logical arrays. Signals remain unchanged until an action assigns the result, so the same source collection can feed several views safely.

Sorted items

Filtered items

CSV name
CSV score

No data

There are no records to display

4 / IMPLEMENTED CATALOG

Use the canonical namespaces

The functions below match the current server catalog where the operation is portable. Optional arguments keep their documented defaults.

Namespace
Functions

No data

There are no records to display

5 / TARGET CONTRACT

One lowered call, three native surfaces

Surface
Contract

No data

There are no records to display

The shared contract is defined by /specs/features/00068-add-portable-standard-library. `id.ulid`, server environment values, Store access, network, filesystem, and arbitrary callbacks stay outside views.