SERVER BLOCK / UTILITIES

Portable server utilities

One endpoint demonstrates string normalization, parsing, sorting, math, list operations, URL encoding, JSON merging, and timestamps without JavaScript or Node.js.

LIVE VIEW + SERVER

Transform one request

The View owns editable input. The server owns normalization and computation, then returns serializable data for rendering.

Values used for sort, sum, average, first, and count: [3 10 5]

NORMALIZED OUTPUT

Slug

COMPUTED OUTPUT

The response also includes total, average, count, first, encoded, summary, and timestamp.

Total

Average

Count

SOURCE FILES

Capability-first, target-neutral code

Each declaration names its namespace, result binding, source function, and inputs. The same server model executes in the Rust runtime.

dowe
signal result value:{ normalized:"" slug:"" total:"" average:"" count:"" }

fn runUtilities
  request response method:"POST" route:"/api/examples/utilities" body:utilityForm
  if response.ok
    set result value:response.data

Text
  "{result.normalized}"