Skip to content

The standard library

The modules of std, each with its types, traits and functions: their signatures, contracts and docs. Generated from the code’s /// docs by strata docgen.

Module
std.agent An LLM agent loop: the model calls tools, the loop runs them and answers, until a reply calls none.
std.array
std.cli Command-line options read into a record, and commands into a union, with derive CommandLine.
std.code
std.collections
std.ffi Strata functions called from other languages.
std.fs Files and folders.
std.http HTTP/1.1 requests and responses, a client (send, fetch, TLS for https://) and a server (serve, a Router), over any std.net.Stream.
std.io The console, text in and out.
std.json JSON text, and records and sum types read from it and written to it.
std.lemmas Facts about the builtin collections, proven once by verify, for proofs to use (assert … by frame_with(d, k, v, done)).
std.memory Arenas, for programs that allocate much and keep little.
std.net TCP connections and listeners, through the Net capability.
std.orm The mapping between record types and tables.
std.process The running program’s arguments, environment and exit code, and the programs it runs.
std.python Calls to Python functions declared extern python "module" fn ….
std.regex Regular expressions in regex-syntax’s syntax, matched by a Pike VM or a DFA.
std.rust Calls to Rust functions declared extern rust "crate" fn ….
std.sqlite
std.term Text styled for a terminal with ANSI escape codes.
std.time
std.toml TOML 1.1 text (https://toml.io/en/v1.1.0) read into values and written from them, and derive Toml for records and sum types.
std.ts Calls to TypeScript functions declared extern ts "module" fn ….
std.typing
std.unicode Sets of code points, Unicode properties, simple case folding and grapheme clusters (Unicode 16.0.0).
std.unicode_tables Unicode 16.0.0 character data for std.unicode.
std.utf8 Text as UTF-8 bytes, and back.
std.web HTML pages built as values, written as markup or with one function per element, rendered by render or document.