Osy#the first language built for agents
Agents firstAgentic appsWorkflowsDurable Execution — built inSecurityTestingThe editorThe UI modelOne program

Reference

Stdlib

10 pages.

The standard library — and where each call runs

The pure standard library, and the one fact about it that changes how your app feels: 126 of its 155 methods run in the BROWSER, with no round trip…

Culture formatting — ToString(format, culture)

Format numbers, currency, percentages and dates for a declared culture — `total.ToString("C", "sv-SE")` → `1 234,56 kr`. A per-call culture…

Encoding — Base64, URL, HTML

Encode and decode text — Base64, URL percent-encoding, and HTML escaping — with the C#-faithful spellings. `Convert.ToBase64String` /…

Guid.* — the empty id, a fresh id, and reading one out of a string

A `Guid` is the type an entity's `Id` has, and the type a reference to a row has. `Guid.NewGuid()` mints a fresh one, `Guid.Empty` is the all-zero…

Random.* — an ordinary random number

A random integer for ordinary work — picking a row, jittering a retry, shuffling. `Random.Next(10)` answers 0..9. It WORKS INSIDE A LINQ QUERY and…

Regex

Match, replace, split and CAPTURE with regular expressions — the C#-faithful System.Text.RegularExpressions spelling. `Regex.IsMatch(s, "\\d+")`…

Security.* — hashing, verifying, tickets, random ids

The calls an authentication flow needs: `HashPassword` (salted, one-way), `VerifyPassword` (constant-work comparison against a stored hash, and a…

Time zones — the Zone type and its operations

Store and use civil time zones. `Zone` is a value-kind holding an IANA id (`"Europe/Stockholm"`); `zone.OffsetAt`, `zone.IsDst`…

Uri

Parse a URL into its parts with the C#-faithful `new Uri(url)` handle. Construct it from a URL string, then read `.Scheme`, `.Host`, `.Port`…

Uri and WebUtility escaping

Percent-encodes a string for a URL, and escapes a string for safe insertion into HTML. Escaping is exact and identical in the browser and on the…