Standard Library

The standard library ships with the compiler under the std namespace. Import any of it with use:

imports.adm
use std.strings
use std.net.http
use std.data.encoding::(json)

Core

std.strings

formatC-style formatting (%d, %s, %x, …)
Scannercursor over text for hand-written parsers
similarity, SimilarityAlgorithmLevenshtein, Dice, Hamming, Jaro and Jaro-Winkler similarity

Most string operations are methods on string in the prelude.

std.text.unicode

category, Category, combiningClass, scriptUnicode 18 character properties
displayWidththe columns a character or a text takes in fixed-pitch layout: 2 for East Asian wide characters, 0 for combining marks; in a text an emoji made of several characters counts once
normalize, NormalForm, decompose, composenormalization (NFC, NFD, NFKC, NFKD)
mirror, isDefaultIgnorable, isExtendedPictographicbidi mirroring, ignorables, emoji
lineBreaks, LineBreakline break opportunities (UAX #14)
toLower, toUpper, toTitle, caseFoldUnicode case mapping and folding, full mappings, final sigma
isCased, isCaseIgnorable, isNoncharacter, codePointscasing properties, noncharacters, a text as code points
decompositionType, joiningType, hangulSyllableTypedecomposition tags, cursive joining, Hangul syllable types

std.text.precis

enforce, prepare, compare, ProfilePRECIS (RFC 8264): usernames, opaque strings (passwords) and nicknames (RFC 8265, RFC 8266)
derivedProperty, allowed, StringClass, bidiRulethe derived property of a code point, the string classes, the Bidi Rule
PrecisErrorerrors

std.text.idna

toASCII, toUnicode, IDNAOptionsinternationalized domain names: UTS #46 processing (Unicode 18), IDNA2008 rules when strict
derivedProperty, DerivedProperty, allowedInContext, bidiRuleIDNA2008's derived property of a code point, its contextual rules, the Bidi Rule (RFC 5892, RFC 5893)
punycodeEncode, punycodeDecodePunycode (RFC 3492)
IDNAErrorerrors, with the UTS #46 code

std.text.templates.jinja

parse, Template, OptionsJinja2 templates
Safetext marked safe from autoescape

std.adm.lexer

tokenizeevery token of ADM source, ending with EOF; comments optional, white space on request
Lexernext() one token at a time; scan() its kind and span without the text, allocating nothing
Tokenkind, character offsets start/end, text (identifiers in NFC)
TokenKindtoken classes; the value of a punctuation, operator or keyword member is its spelling
isLiteral, isPunctuation, isOperator, isKeywordclassify a kind

std.adm.syntax

parsethe lossless syntax tree of ADM source; never fails, diagnostics for what the grammar refused
SyntaxTree, SyntaxNodenavigation by offset, children, siblings, ancestors; edit() reparses one block and shares the rest; dump()
Green, greenTokensthe immutable, position-free elements with their trivia
SyntaxKind, TriviaKind, Trivia, Diagnostickinds, trivia pieces and parse diagnostics

std.adm.symbols

analyze, FileSymbolsthe declarations, scopes and imports of a file; what a name means at an offset
Symbol, SymbolKinda declaration: kind, qualified path, name span, doc comment, annotations, members, stable id, whether it is a meta def
Scope, ScopeKindthe scope tree with lookup by offset
Workspacemany files: a module's parts, resolution through parts and imports, ids kept across edits; register parses a file on first use, loadAll in the background, moduleSymbols names every module from the file headers alone; resolveCallable is what a called name calls past a value of that name; filesNaming the files a declaration's name may stand in
Navigatordefinition, completions, type of an expression, signature, usages and rename edits from declared types; struct literal keys, named arguments and loop variables resolved; at an annotation, the metas that can annotate the declaration it stands on; in a style body, the properties of the styles it embeds; at a value, what fits its type (insertText spells an enum member); where a declaration starts, only the keywords and modifiers that may follow what is written (SymbolKind.Keyword rows), and types after a field's name
Doc, DocExample, DocTag, DocTagInfo, parseDoc, groupTags, tagLabel, docTagsa doc comment taken apart: description, example fences, trailing @tags; the tags with a meaning (@author, @see, @since, @deprecated, @param name text)
Hoverwhat an editor shows for a symbol: signature, module, value type, parsed doc
isImplementerKindwith Navigator.satisfies, contracts and implementers: implicit implementation of interfaces and datatypes, both directions
Classified, TokenClasssemantic classes of every name token from Navigator.classify, for colouring and the x-ray view
NameProblem, NameProblemKind, UnresolvedNamediagnostics over names from Navigator.nameProblems: unresolved names, unknown members, struct keys and named arguments where the type is known
Type, TypeKinda type as the editor knows it, made once per workspace: primitives, named types with their arguments, type parameters, ?T, !T, async T, arrays, maps, channels, SIMD vectors and masks, matrices, functions, tuples, unions, intersections, and unknown for what cannot be told; Navigator.typeAt gives the type at an offset
InlayHint, InlayHintKindwhat Navigator.inlayHints shows over a range: the inferred type after a name declared without one, the parameter's name before a literal argument
SignatureHelp, SignatureInfo, ParameterInfowhat Navigator.signatureHelp shows inside a call's parentheses: every overload, constructor or component's inputs, each parameter's type, default and @param text, the parameter being written and the overload the arguments choose
UsageCounthow many places across the workspace name each declaration of a file, from Navigator.usageCounts, answered from per-file indexes without loading the whole workspace
DeclaredNamea top-level declaration from Workspace.declaredNames(kind), known without parsing its file: name, kind, module, file and whether it is internal
ImportCompletiona completion from Navigator.importCompletions for a name or module the file does not import yet: the text to write and the edit that adds the use, merged into the file's imports
TypeProblema type error from Navigator.typeProblems over a range, with the compiler's code and message: a value of another type in a typed let, an assignment, a return or a struct field, a call no overload takes, named arguments that do not fit, a value called that is no function, a dropped !T result; only what is certain is reported
TypeRefa type as written: its node, its file, and the type arguments its type parameters stand for through a member chain
docText, trailingDocTextthe doc comment rule

std.glob

glob, Globshell-style patterns (*, ?)

std.bytes

Buffergrowable byte buffer, read and written
Readerreader over a byte array
BinaryReadertyped reads in either byte order, varints
Bitstreambit-level reader
RecordReader, RewindableReaderrecord and rewindable readers
Pipein-memory stream between two tasks
Endian, Whencebyte order, seek origin

std.math

sqrt, sin, cos, atan2, ln, log2, log10, …numeric functions
approxfloat comparison with a tolerance
erf, erfcerror function and its complement
Decimal, parseDecimal, RoundingModeexact decimal numbers
Randomseeded random numbers of any numeric type: of<T>, range, normal

Other operations are methods on the numeric types; exponentiation is **.

std.math.geom

Point, Vec2, Vec3, Size, Rect, Rectanglepoints, vectors, sizes, rectangles
Circle, Line, Ray, Polygonshapes
Edges, Corners, Axesper-side, per-corner and per-axis values
Transform2D2D affine transform
Quaternion3D rotation: axis-angle, matrix, slerp, Euler angles
Path, FillRule, StrokeStyle, LineCap, LineJoinpaths: build, stroke, dash, measure, trim, morph, boolean operations
BezierPath, QuadraticBezier, CubicBeziercurves

std.math.geo

Coordinate, DistanceMethod, earthRadiuspositions on WGS84; geodesic and haversine distance, bearing, destination, interpolation
Boundslatitude and longitude boxes, across the antimeridian too
Geometry, GeometryKindpoints, lines, polygons and collections: area, length, centroid, point in polygon, simplification
Feature, FeatureCollection, parseGeoJSON, parseGeoJSONGeometryGeoJSON (RFC 7946)
parseWKT, parseEWKT, parseWKB, parseEWKBWKT and WKB, PostGIS extended forms
parseGeohash, geohashNeighborsgeohash cells
Tile, parseQuadkey, toWebMercator, fromWebMercator, maxMercatorLatitudemap tiles, quadkeys, Web Mercator
UTM, parseUTMUniversal Transverse Mercator grid

std.math.bezier

linear, quadratic, cubicBézier curve evaluation and derivatives
cubicParametersolver behind CSS cubic-bezier

std.math.easing

Easingeasing function type
easeInQuad … easeInOutBouncethe easings.net curves
cubicBezier, stepsCSS timing functions
springdamped spring

std.math.processing

fft, ifft, rfft, irfftFourier transforms of any length
Fouriera transform planned once and run on many inputs of one length
dct, idctcosine transforms (DCT-II/III)

std.math.ecc

Field, BinaryField, PrimeFieldfinite fields: GF(2^m), GF(p)
ReedSolomonReed-Solomon: encode, correct with errors and erasures

std.math.linalg

solve, leastSquares, inverse, pseudoInverse, determinantlinear systems on matrix<float>
lu, cholesky, qr, svd, eigen, eigenSymmetricdecompositions (LU, Cholesky, QR, SVD, Eigen, SymmetricEigen)
norm, Norm, rank, condition, tracemeasures of a matrix
zeros, identity, diagonalbuilders
LinalgError, LinalgErrorKindwhy an operation failed: shape, singular, no convergence

std.math.stats

mean, median, quantile, mode, variance, deviation, skewness, kurtosis, sum, min, maxdescriptive statistics of a float[]
covariance, correlation, rankCorrelation, linearRegression, Regressiontwo samples
covarianceMatrix, correlationMatrixmany variables in a matrix
zscores, ranks, histogram, Histogramtransforms and counts
Normal, Summarythe normal distribution; running statistics of a stream

std.units

Length, Mass, Time, Temperature, Angle, DataSize, …base dimensions
Speed, Force, Energy, Voltage, DataRate, …derived dimensions
Pixels, Percent, ViewportHeight, ViewportWidth, FontRelative, Extentlayout dimensions (UI extents)
parseUnitquantity from text
quantityquantity from a number

Used by quantity literals; the catalogue lists every unit.

std.time

Timepoint in time on the wall and monotonic clocks
now, since, sleepclock
parse, parseDurationRFC 3339 times, durations
Month, Weekdaycalendar fields
Date, TimeOfDay, DateTime, parseDate, parseDateTimecivil dates and times without a zone
Cron, parseCroncron expressions
formatHTTPDate, parseHTTPDateHTTP dates
formatMailDate, parseMailDateRFC 5322 mail dates

std.errors

StackTrace, StackFrame, Locationstack traces
printStackTraceprints the current stack

std.data.collections

List, LinkedList, DoublyLinkedList, Deque, Queue, Stack, RingBuffersequences
HashMap, SortedMap, OrderedMap, MultiMap, LRUCachemaps
Set, HashSet, SortedSet, OrderedSet, MultiSet, DisjointSetsets
Heap, MinHeap, MaxHeap, PriorityQueueheaps
BinaryTree, BinarySearchTree, AVLTree, RedBlackTree, BTree, BPlusTree, Trie, RadixTreetrees
Graph, DirectedGraph, WeightedGraphgraphs
BitArray, BitSet, BloomFilterbits
SparseArray, SparseSet, SparseMatrixsparse storage
sort, Comparable, SortMethodstd.data.collections.sort
search, SearchMethodstd.data.collections.search

std.data.db

connect, driversopen a SQL database by URL with the driver linked for its scheme; drivers are the libraries adm.database.sqlite, adm.database.postgres, adm.database.mysql
Connection, Transaction, Queryableexec, query, prepare with positional or named arguments; beginTx, commitTx, rollbackTx
pool, Poola connection shared between tasks: up to limit real connections, one lent per statement, result, transaction or prepared statement
Statement, Rows, Column, Resultprepared statements; rows read one at a time with typed readers
read, readAll, values, @column, Storedrows to objects and objects to arguments
positional, placeholders, Placeholder:name placeholders rewritten for a database that binds by position
@connection, sqlExec, sqlOne, sqlOptional, sqlAll, sqlRow, sqlOptionalRow, sqlRows, sqlCell, sqlOptionalCell, sqlBound, sqlDefault, sqlNamed, providewhat a sql def compiles to, and where one without a @connection finds its connection
Driver, @driver, Isolationwhat a driver library implements and registers
isolateinside a transaction block: the isolation level and read-only mode of the database transactions the block begins after the call
sqlScript, sqlRoutineCall, routineKindOf, @routine, routines, Routine, RoutineKind, RoutineValuesql def scripts and stored routines: what they compile to, and the routines a program declares
@sqlschemacheck a type's sql def statements against a schema file when the program is built
Dialect, dialectOfwhat a driver adds for stored routines, the migration lock and its quoting
lockMigrations, unlockMigrations, installRoutine, readVersion, writeVersionwhat the Database service migrates a database with
DbError, ErrorKind, errorOffailures with their kind, SQLSTATE and the database's error number

std.data.semver

Semversemantic version; precedence and satisfies(range)
parse, compare, isRangeparsing, comparison, and whether a range parses

std.i18n

Locale, parseLocale, negotiate, parseAcceptLanguagelocales (BCP 47) and negotiation
Language, Region, Script, Currencydisplay names and data from CLDR
NumberFormat, NumberOptionsnumbers, percentages, currencies, units, compact notation
DateTimeFormat, DateTimeOptionsECMA-402 date and time formatting, every calendar
TimeZone, ZonedDateTime, parseTimeZone, systemTimeZonetime zones from the tz database
Calendar, CalendarDateGregorian, Hebrew, Islamic, Chinese, Japanese and other calendars
pluralCategory, pluralRange, PluralCategoryplural rules
Message, parseMessage, MessageError, MessageParttranslated text with places for values, in the ICU MessageFormat syntax: plurals, select, numbers, dates
Catalog, CatalogEntry, CatalogHeaderthe messages of one language, with contexts and gettext plural forms
translate@translate: a field whose reads return translated text
SpellOutnumbers in words

std.validations

isEmail, isURL, isIP, isUUID, isJSON, isXML, isBase64, isUTF8, …text checks
luhnCheckcard number checksum

System

std.os

Fileopen file
readFile, writeFile, open, stat, readDir, exists, remove, rename, mkdir, rmdir, chmod, touchfile operations
join, dir, base, extension, split, clean, isAbs, absolutepaths, in the system's form (on Windows with drives and shares, \ and /)
run, outputstart a program (needs adm.runtime.spawn)
Process, Pipea program started by Runtime.start that runs beside this one: input, output and errors pipes (io.Reader/io.Writer), wait(), wait(timeout), terminate(), kill(), id()
mapFile, Mappingmemory-mapped files: read copies a range, pages is an array over the mapping's own pages (no copy; a file larger than memory)
File.sync, File.lock, File.unlockpush writes to the device, advisory whole-file locks
memoryFile, File.seala file with no path that lives in memory (Linux); making its content final before handing it to another process
symlink, freeSpace, totalSpace, unixMode, fromUnixModelinks, disk space, Unix mode bits
watch, Watcher, Change, ChangeKindchanges to files and directories
appHomethe application's own folder
tempDir, tempFilethe folder for temporary files (TMPDIR or /tmp, %TMP% on Windows); a new file there, or in a folder given, with a name no one else has, open for reading and writing
homeDir, resolvethe user's home folder; the absolute, shortest form of a path, where ~ is that folder and a relative path starts at the working directory

std.io

Reader, Writer, Closer, Aborterstream interfaces, and their combinations
readFull, readAll, copystream helpers

Interfaces only; the types that own the data implement them.

std.fs

FileStorefile tree interface
DiskStorethe disk, optionally confined to a folder
MemoryStorefile tree in memory
copyfile or tree between any two stores
cleanPatha store path in its shortest / form, on every system
FileEntry, FileKindlisting entries

std.mem

copy, move, set, zero, copyN, moveN, setN, set32raw memory

std.sync

Mutex, ReadWriteLocklocks a task may hold across calls that wait
Semaphorea number of permits, to bound how many tasks run something at once
WaitGroup, Oncewait for work to end; run a function one time

std.services

Application, ServiceStatus, StartMode, RestartMode, Lifecycle, Dependencies, ServiceInfo, ServiceStatusChangethe application service and the types every service shares
Storage, Config, Logging, Cache, Scheduler, Messaging, Telemetry, Runtime, Network, Diagnostics, Policy, Notifications, Clipboard, Browser, …builtin services, each in its own module std.services.<name> (use std.services.cache::(Cache))
std.services.browser: Browser, BrowserInfo, PageMetadata, Cookie, SameSite, PermissionState, BrowserError, BrowserFailure, browserFailurethe page of a web build: address and history, metadata, cookies, storage, permissions, installing, the service worker

Every method and annotation: services reference.

std.proto

DBusConnection, dbusConnect, dbusSessionBusAddress, dbusSystemBusAddressD-Bus client for the session and system buses (Linux)
DBusMessage, DBusWriter, DBusReaderD-Bus wire format: a writer that aligns each type, with dictionary entries (dictString, dictBool, dictBytes, beginEntry) and nested arrays and structs (beginArray/endArray, beginStruct); a reader that walks a body by signature

std.proto.jsonrpc

Peer, FramingJSON-RPC 2.0 over a byte stream, both directions
Dispatcherserver methods, also an HTTP handler
HttpClientcalls over HTTP POST
Request, Handler, Call, Replyrequests, handlers, batches
RPCError, ErrorCode, errorOf, kindOferror objects
NoReplythe failure of a handler that must not be answered

std.proto.msgpackrpc

PeerMessagePack-RPC over a byte stream, both directions
Request, Handlerrequests and handlers
RPCError, ErrorCode, errorOferror objects

std.proto.mcp

@mcp.tool, @mcp.resource, @mcp.promptmake a function or a method a tool, a resource or a prompt of an MCP server
serveserves every marked function over standard input and output
Serveran MCP server: registration in code, discover, add, stdio, streams and HTTP
Requestwhat a handler gets: progress, log messages, cancellation, questions to the client, the access token and require for scopes
Client, connect, launchan MCP client over a stream or HTTP, or of a server it starts as a program
Authorization, CredentialStorea client's way into a server that asks for an access token: discovery, registration, the code flow, refresh, more scopes on demand
Tool, ToolResult, ToolHints, ToolHandlertools
Task, TaskStatus, TaskSupport, ToolRuntasks: tool calls a server carries on after it answered (@mcp.tool(task = …); Client.start, wait, task, cancelTask)
Resource, ResourceTemplate, ResourceContents, ResourceHandlerresources
Prompt, PromptArgument, PromptMessage, PromptResult, PromptHandlerprompt templates
Content, ContentKind, text, image, audio, embedded, link, Annotations, Rolecontent of results and messages
Completion, CompletionHandler, Referencecompletion of arguments
Elicitation, ElicitAction, ElicitationRequest, SamplingRequest, SamplingMessage, SamplingResult, ModelPreferences, Rootwhat a server asks of its client
Implementation, Icon, ClientCapabilities, ServerCapabilities, LogLevel, ProgressHandleridentity, capabilities, logging, progress
McpError, McpErrorKindwhy a call or a transport failed

Speaks protocol revisions 2026-07-28, 2025-11-25, 2025-06-18, 2025-03-26 and 2024-11-05, over a stream of lines (standard input and output) and over HTTP. Server.protect(guard, scopes) puts an oauth2.ResourceServer in front of the HTTP endpoint.

std.proto.journald

Client, Entry, Field, Prioritysystemd journal, native protocol
parse, fieldName, validName, defaultSocketreading an entry, making and checking field names, the journal's socket
Encoderlog encoder for the Logging service
JournalError, JournalErrorKindwhy an entry was not encoded, read or sent

std.proto.auth.jose

Jws, sign, parseJwsJSON Web Signature, compact and JSON
Jwe, encrypt, parseJweJSON Web Encryption, one or several recipients
Jwk, JwkSet, parseKey, parseKeySet, generateKeyJSON Web Keys
RemoteKeySetkey set fetched from a jwks_uri, with rotation
Claims, Validation, verifyJwt, parseClaimsJWT with RFC 8725 checks
SignatureAlgorithm, KeyAlgorithm, ContentEncryptionevery JOSE algorithm

std.proto.auth.oauth2

Client, Token, AuthorizationRequest, DeviceAuthorizationOAuth 2 client: code with PKCE, client credentials, refresh, device flow, token exchange, DPoP
AuthorizationServer, ClientStore, GrantStoreauthorization server
ResourceServer, AccessToken, Introspectionresource server: JWT and introspected tokens, challenges that name scopes and metadata
ResourceMetadata, discoverResource, parseResourceMetadataprotected resource metadata (RFC 9728): what a resource publishes, and how a client finds its authorization server
ServerMetadata, discover, ClientRegistrationmetadata discovery, dynamic client registration
ClientMetadata, ClientDocumentsclient metadata; Client ID Metadata Documents: a client's own URL as its id, rendered by the client and fetched by the server
parseToken, parseMetadatareading a kept token and a metadata document

std.proto.auth.openid

RelyingParty, connect, Login, IdClaimsOpenID Connect relying party
Profile, SignInProviderwho signed in, the same for every provider; the interface the adm.auth sign-in libraries implement
Provider, UserStoreOpenID Connect provider
ProviderMetadata, discoverprovider discovery
LogoutEventRP-initiated, front- and back-channel logout

std.proto.auth.saml

ServiceProvider, LoginOptions, Assertion, LogoutSAML 2.0 service provider: Web SSO and Single Logout
IdentityProvider, PendingLogin, Decision, ServiceProviderStore, MemoryServiceProviderStoreidentity provider
EntityDescriptor, IdpDescriptor, SpDescriptor, KeyDescriptor, Endpoint, parseMetadata, parseMetadataSet, writeMetadataSetmetadata, signed or not
BindingRedirect, POST, Artifact and SOAP bindings
NameId, NameIdFormat, Attribute, Attributesname identifiers and attributes
SamlError, SamlErrorKind, StatusCodeerrors and status codes

std.proto.auth.otp

HOTP, TOTPone-time passwords, RFC 4226 and RFC 6238
KeyURI, parseKeyURIotpauth:// URIs for authenticator apps
generateSecret, parseSecretBase32 secrets

std.proto.auth.webauthn

RelyingParty, RegistrationOptions, AuthenticationOptions, CredentialWebAuthn relying party: registration and sign-in
verifyAttestation, AttestationResultattestation: packed, TPM, Android key, SafetyNet, FIDO U2F, Apple, compound
Client, parseRegistrationOptions, parseAuthenticationOptionsthe browser's part, for native apps
SecurityKey, HIDTransport, securityKeysFIDO2 security keys over USB: CTAP 2.2 and U2F, PIN, credential management, large blobs, fingerprints
SoftDevice, SoftAuthenticatorauthenticators in software
COSEKey, parseCOSEKey, AuthenticatorDataCOSE keys, authenticator data

Extensions: credProps, prf, largeBlob, credProtect, credBlob, minPinLength, appid, appidExclude. USB on Linux only for now.

Data

std.data.encoding

JSON, jsonJSON: encode, decode into objects, map<string, any>, any[] and typed arrays (User[] from a top-level array), parse into plain values
XMLNode, XMLWriter, XMLXML objects (encode, decode, @xml), tree, writer and well-formedness check
YAML, YAMLErrorYAML 1.2: parse and parseAll into plain values, decode into objects and typed arrays (User[] from a top-level sequence), encode; errors with line and column
TOMLTOML
JSON.parseJSON into maps, arrays and scalars
CBOR, CBORValue, CBORReader, cborCBOR (RFC 8949), deterministic encoding
MsgPack, MsgPackValue, MsgPackReader, msgpackMessagePack, ext types and timestamps
BSON, BSONValue, BSONKind, BSONReader, BSONVectorType, ExtendedJSON, bsonBSON documents, MongoDB Extended JSON v2 both ways; BSON.bind fills an object from a decoded tree
ObjectId, parseObjectId, Decimal128, parseDecimal128MongoDB identifiers and 128-bit decimals
Protobuf, ProtoMessage, ProtoReader, ProtoWriter, protoFieldProtocol Buffers wire format, with or without a schema; ProtoField.payload reads a field's bytes without a copy
ProtoSchema, ProtoFile.proto files: messages, enums and services
CSV, CSVReader, CSVWriter, csvCSV, any separator: whole texts or streams, rows bound to objects by header, separator detection
XMLSignature, signXML, parseXMLSignature, canonicalizeXML signatures and canonical XML
encryptXML, decryptXMLXML encryption
Base64, Base32, Base83, hexencode, hexdecodeBase64, Base32, Base83, hex
QuotedPrintablequoted-printable
htmlEncode, htmlDecodeHTML character references
PEMBlock, pemDecodePEM
ASN1Element, asn1Parse, berParse, OIDASN.1 DER and BER
Layoutfixed binary layouts from struct declarations
Binarytyped self-describing binary stream
putVarint, varintvarints

std.data.encoding.jsonschema: schemaOf (the JSON Schema of an ADM type), valueOf (a JSON value as that type), Callable (a function or method described as JSON Schema and called with a JSON object), Parameter, SchemaError, SchemaErrorKind; compile, CompileOptions, Draft, Validator, ValidationError (validating JSON values against a schema of drafts 2020-12, 2019-09, 7, 6 and 4, with every format and ECMA-262 patterns).

std.data.encoding.codepages

CodePageCP437, Windows-1252, Latin-1
decode, encode, forCharsetconversion, lookup by charset name

std.data.encoding.shiftjis

encode, decodeShift JIS (JIS X 0208)

std.data.compress

flateDEFLATE Reader/Writer, Inflater, inflate for one stream held in memory (with the bytes it took), and deflate to compress a whole input (large ones on several tasks)
gzip, zlibgzip and zlib; zlib.compress, zlib.decompress and zlib.inflate for streams held in memory
lzwLZW
bzip2bzip2
lzmaLZMA and LZMA2
xzxz, with the delta and x86 filters
brotliBrotli, reading only
lz4LZ4 blocks and frames
snappySnappy blocks and framed streams
zstdZstandard, reading and writing, with dictionaries
ppmPPMd variant H, reading only (7z and RAR streams)

std.crypto

rand, randRange, randOfrandom numbers
UUID, UUIDVersion, parseUUID, uuidNamespaceDNS, uuidNamespaceURL, uuidNamespaceOID, uuidNamespaceX500UUIDs (RFC 9562): random V4, time-ordered V7, name-based V5 and V3
ULID, parseULID128-bit identifiers that sort by the millisecond they were made, monotonic within one
KSUID, parseKSUID160-bit identifiers that sort by second, base62 text
nanoid, nanoidAlphabetshort random URL-safe identifiers, custom size and alphabet
RSAPublicKey, RSAPrivateKey, generateRSAKey, RSAPaddingRSA signatures and encryption (OAEP, PKCS #1 v1.5)
ECDSAPublicKey, ECDSAPrivateKey, generateECDSAKeyECDSA, P-224 to P-521, secp256k1, brainpoolP256r1/384r1/512r1
Ed25519PublicKey, Ed25519PrivateKeyEd25519
Ed448PublicKey, Ed448PrivateKey, generateEd448KeyEd448 and Ed448ph
x25519, x448, ecdhkey agreement
MLKEMPublicKey, MLKEMPrivateKey, generateMLKEMKeyML-KEM (FIPS 203)
bcrypt, bcryptVerifypassword hashes
parsePKIXPublicKey, parsePKCS1PrivateKey, parsePKCS8PrivateKey, marshalPKCS8PrivateKey, marshalPKCS1PrivateKey, parseEncryptedPKCS8PrivateKey, marshalEncryptedPKCS8PrivateKey, …key encodings (PKIX, PKCS #1, PKCS #8 both ways, password-encrypted PKCS #8)
constantTimeEqualconstant-time comparison

std.crypto.hash

MD5, SHA1, SHA256, SHA512, SHA3256, Keccak256, BLAKE2b512, RIPEMD160, …hashes (Hasher)
SHAKE128, SHAKE256extendable output
CRC8 … CRC64, Adler32, crc32c, xxh32, xxh64checksums
murmur64a, murmur3MurmurHash64A and MurmurHash3 x64 128, for hash tables and feature hashing
HMAC, hmacHMAC
hkdf, pbkdf2, concatKDF, argon2id, argon2, Argon2Kindkey derivation (Argon2: RFC 9106, memory-hard)
Hashevery digest by name

std.crypto.cipher

AES, Camellia, Blowfish, DES, TripleDES, CAST5, Twofish, IDEAblock ciphers (Block); CAST5, Twofish and IDEA for old OpenPGP data
CBC, CFB, CTRmodes
GCM, OCB, EAX, ChaCha20Poly1305, XChaCha20Poly1305, SIV, CBCHMACauthenticated encryption (AEAD)
wrapKey, unwrapKeyAES key wrap (RFC 3394, RFC 5649)
cmacCMAC

std.crypto.x509

Certificate, parseCertificate, parseCertificatesPEMX.509 certificates
Template, createCertificate, createRequestmake certificates (self-signed or signed by a CA) and certificate signing requests
CertPool, systemCertPooltrusted roots
VerifyOptionschain verification
Namedistinguished names

std.crypto.openpgp

generateKey, KeyOptions, KeyAlgorithmnew keys (RFC 9580 version 6, or version 4): Ed25519/X25519, Ed448/X448, NIST curves, RSA
Key, KeyInfo, readKeys, RevocationReasoncertificates and secret keys: user IDs, subkeys, expiry, lock and unlock, renew, revoke, merge, sign, cleartext signatures
Keyring, Message, Verificationdecrypt and verify messages, detached and cleartext signatures
encrypt, EncryptOptionsencrypt to keys or a passphrase, signed and compressed (SEIPD v2 AEAD, or v1 for version 4 peers)
armor, dearmor, Armored, ArmorKindASCII armor
lookupWKD, KeyServerfind keys by Web Key Directory and on HKP key servers
PublicKeyAlgorithm, SymmetricAlgorithm, AEADAlgorithm, HashAlgorithm, CompressionAlgorithm, OpenPGPErroralgorithm IDs and the error type

Formats

std.formats

FileFormat, SignatureMatcherformat detection by content
MediaType, parseMediaTypeMIME types
typeByExtension, extensionsByTypeextension table
detectContentTypecontent sniffing

std.formats.image

Image, load, infoimage, implements gfx.Raster
ImageSequence, ImageFrameanimations: frames, delays, loops
PNG, APNG, GIF, JPEG, WEBP, BMP, TIFF, PSD, TGA, PCX, XPM, ICO, CUR, ANI, PNM, JPEG2000, J2Kcodecs; JPEG 2000 decodes all of Part 1 and encodes lossless or lossy (JPEG2000 writes .jp2, J2K raw codestreams); JPEG decodes every process but hierarchical (12-bit, lossless, arithmetic, CMYK) as libjpeg-turbo does and keeps iccProfile and exif; PNM reads and writes PBM, PGM, PPM, PAM and PFM (PNMFormat)
SVG.decode, SVG.pictureSVG and SVGZ rendering, SMIL animation at a given time; picture(data, foreground = ink) draws currentColor and unset fills in a text colour, as a page does an inline SVG
SVG.encodecanvas pictures as SVG
SVG.parsePath, SVG.pathDataSVG path data
exif.Tag, exif.IFD, exif.ImageTag, exif.PhotoTag, exif.GPSInfoTagEXIF tags

std.formats.audio

AudioStream, open, load, save, write, info, AudioInfodecoded audio, seekable
WAV, AIFF, AU, FLAC, MP3, Vorbis, Opus, AAC, M4A, WMAcodecs, read and write
AC3, EAC3, AMR, AMRWBcodecs, read only
AudioFormat, AudioDecoder, AudioEncoder, AudioCodec, @codeccodec interfaces, registering a format
AudioTags, tagstags and covers for every format
ID3Tags, OpusTags, M4aMetadata, FlacMetadata, FlacPicture, WAVCue, AIFFMarker, AIFFCommentformat-specific metadata
OpusEncoderOpus one packet at a time (2.5 to 60 ms, discontinuous transmission), for live connections; config() is the header a container stores
Convertersample rate and channel conversion
Midi, MidiTrackMIDI files
SoundFontSoundFont banks
PCMraw samples

AAC decodes AAC-LC and HE-AAC (SBR, parametric stereo) up to 7.1; the encoder writes AAC-LC.

std.formats.video

Video, openvideo file: tracks, frames, sound
VideoFrame, toImage, draw, fittedSizedecoded picture
fromPacked, PackedLayoutpacked 4:2:2 camera bytes (YUYV, UYVY) to a picture
VideoInfo, Track, Packet, FrameRate, VideoStreamtracks and packets
Container, ContainerFormat, VideoDecoder, ContainerCodec, @codec, @decodercontainer and decoder interfaces, registering a format
MP4, MKV, AVI, FLV, OGV, MPEG, TS, ASF, MXF, ElementaryStreamcontainers
H264, HEVC, AV1, VP9, Mpeg2, Mpeg4Part2, Msmpeg4v2, VP8, Theora, MJPEGdecoders
VideoEncoder, VP8Encoder, H264Encoderencoding pictures to packets at a bitrate (VP8, H.264 Constrained Baseline: key frames on request, temporal layers)
WebMWriter, save, writewriting WebM: packets of VP8, VP9, AV1, Vorbis and Opus tracks, or pictures and sound encoded as VP8 and Opus
VideoHardware, HardwareDecoder, GpuPicture, GpuImage, importGpuImage, downloadGPU decoding (NVDEC, VA-API), frames kept on the GPU and drawn there by the OpenGL and Vulkan renderers

std.formats.archive

Archive, ArchiveWriter, loadarchive by signature
extractAll, extractEntryextraction
Zip, Tar, SevenZiparchives
Gz, Bz2, Xz, Tgz, Tbz2, TarXz, Zst, TarZstcompressed files and tarballs

std.formats.docs

Document, Block, Inline, loaddocument model
Markdown, PlainText, Rtf, Html, Pdf, Docx, Odt, Epubcodecs; PlainText.marks (PlainTextMarks) says what its layout writes around styled text; Html.tree gives a page's element tree as a browser reads it
PdfFile, PdfObjectPDF objects

std.formats.mail

Messageinternet message, built or parsed
Part, HeaderMIME parts, headers
Address, parseAddress, parseAddressListaddresses
MaildirMaildir folders

std.formats.fonts

Font, Face, load, infofonts and faces
TTF, OTF, WOFF, WOFF2, EOT, FONcodecs
Outline, FontMetrics, Bitmapglyphs and metrics
shape, features, ShapedRun, ShapedGlyph, ShapeOptions, TextDirectionOpenType shaping
Hinting, Baselines, Axishinted outlines (TrueType, CFF), baselines
VariableFace, VariationAxis, OpenTypeFacevariable fonts, OpenType tables
sfnt.Sfnt, sfnt.Cmap, sfnt.Head, sfnt.Hhea, sfnt.Names, sfnt.Os2, sfnt.Postthe SFNT container and its tables

std.formats.playlist

PlaylistEntry, load, saveplaylists
M3U, PLScodecs

std.formats.calendar

Calendar, load, savecalendars, occurrences with overrides
CalendarEntry, EntryKind, Alarm, Attachmentevents, to-dos, journal entries
RecurrenceRule, Occurrencerepeating entries
TimeZone, Observance, FreeBusytime zones, free/busy
ICalendar, VCalendar, XCalcodecs

std.formats.contacts

Contact, load, savecontacts
PersonName, Address, Organization, ContactDatecontact fields
VCard, XCard, LDIF, ContactsCSVcodecs

std.formats.translations

load, save, supports, localeOfNametranslation catalogs read into and written from std.i18n.Catalog
Pogettext .po and .pot, written as msgcat lays them out
CatalogFormat, CatalogCodec, codec, CatalogFormatErrorthe format interface, its registration and its error

std.formats.data

INI, INIFile, INISection, INIEntry, iniINI files: sections, comments, typed getters, objects bound by field
DotEnv, dotenv.env files: variables with quotes and ${NAME} expansion, loading into the environment

std.formats.data.mmdb

open, Database, MetadataMaxMind DB files (GeoIP2, GeoLite2, DB-IP, IPinfo)
Recordthe data stored for an IP address and its network
Location, Placecontinent, country, subdivisions, city, coordinates, time zone
AutonomousSystemAS number and organization

std.formats.ai

ModelFile, load, infomodel file: metadata and tensors; a file loaded by path is memory-mapped, pages gives a tensor's bytes without a copy; new ModelFile() and add build one to save
Gguf, Safetensorscodecs, read and write
TensorType, TensorInfotensor types (every ggml quantized type)
dequantize, blockSize, blockBytesquantized blocks to floats

std.formats.ai.onnx

OnnxModel, load, decodeONNX model file: graph, initializers, functions, external data; encode, save
Graph, Node, Attribute, Functionoperator graph
TensorData, SparseTensorData, decodeTensorstored tensors of every element type
ValueInfo, ValueType, ElementTypedeclared types of graph values

std.barcodes

Symbology, Symbol, Barcodesymbol grid or bars, decoded result
encode, decodeany symbology; every barcode in an image

std.barcodes.qr

encode, decode, LevelQR Code and Micro QR
sequencestructured append

std.barcodes.datamatrix

encode, decode, ShapeData Matrix ECC 200, square and rectangular

std.barcodes.aztec

encode, decode, FormatAztec compact and full-range
runeAztec runes

std.barcodes.pdf417

encode, decodePDF417, compact PDF417, MicroPDF417
sequenceMacro PDF417

std.barcodes.linear

encode, decodeEAN-13/8, UPC-A/E with add-ons, Code 128, Code 39, Code 93, ITF, Codabar

std.formats.sheets

Workbook, Sheet, Cell, CellKind, Rangespreadsheets: sheets of typed cells with formulas and number formats
load, saveread and write by signature or extension
Workbook.calculate, Workbook.evaluateformula evaluation: operators, references across sheets, about 110 functions
documenta workbook as a docs.Document of tables
Xlsx, Ods, Csvcodecs
reference, parseReference, parseRange, columnNameB2 and A1:C3 references
serialOf, timeOfspreadsheet day numbers and time.Time

std.formats.models

The model, the loader and the glTF, GLB, OBJ and STL codecs are built; the other codecs are declared with their signatures, extensions and options, and their decode/encode bodies are pending.

Model, Node, Axisa 3D scene: a tree of placed nodes, the meshes, materials, textures, cameras, lights, skins and animations it owns, embedded resources, unit and up axis
Mesh, Primitive, Topology, MorphTargetgeometry as flat attribute arrays and indices; normals, tangents, vertex merging, triangulation
Material, Texture, TextureRef, TextureTransform, AlphaMode, Wrap, Filtermetallic-roughness shading with an emissive strength and the classic Phong fields, metadata for what the file attached beyond the fields, textures by resource name or URI, each reference with its coordinate set, strength and transform
Camera, Light, Skin, Animation, Channelcameras (projection), lights, skinning (jointMatrices) and keyframe animation (sample, apply, duration)
load, Model.save, Model.writeread and write by signature or extension
ModelCodec, ResourceReader, ResourceWriter, DirectoryResources, ModelErrorthe codec contract, with the files a model keeps beside it
StlSTL, text and binary, with VisCAM and Materialise colours
ObjWavefront OBJ with its .mtl libraries and textures: objects and groups as nodes, polygons of any size, lines, points, vertex colours; decodeMaterials/encodeMaterials for a library on its own
Gltf, GlbglTF 2.0 as JSON with files beside it or data URIs (embed), and as one GLB: every core feature (scenes, nodes, meshes with every attribute, morph targets and sparse accessors, materials, textures and samplers, cameras, skins, animations) plus KHR_lights_punctual, KHR_materials_unlit, KHR_materials_emissive_strength and KHR_texture_transform; other extensions kept as text
Ply, Fbx, ThreeDS, Dxf, Dwg, Jtcodecs (declared)

Planned

std.formats.slides, the std.formats.models codec bodies and the container formats of std.formats.data.

Networking

std.net

Socket, Address, Connection, Streamsockets and connections; Socket.connectDatagram, send, receive for a datagram socket with one peer; Connection.setNoDelay (on by default), Connection.peerUserId (the user at the other end of a Unix socket)
DatagramTransportwhole datagrams to and from one peer
Listener, Server, StreamServer, DatagramServerserver interfaces
NetError, ErrorCodetyped failures
resolve, NetInterfacename resolution, interfaces
parseIPText, ipTextIP address text to bytes and back
IPBlock, parseIPBlockCIDR blocks of IPv4 and IPv6 addresses and whether one holds an address
writeAll, readFullevery byte to, or a full buffer from, any stream
RemoteFilesremote file access (FTP, SFTP, WebDAV)

std.net.tcp, std.net.udp

Client, ServerTCP and UDP clients and servers
dial, PeerUDP socket bound to one peer, a datagram transport

std.net.tls

Conn, dial, client, serverTLS 1.3 and 1.2 connection, over a socket or any stream
HandshakeCarrierTLS 1.3 handshake without records, for QUIC
Configcertificates, names, versions
KeyPair, parseKeyPair, loadKeyPaircertificate chain and private key from PEM, encrypted PKCS #8 keys with a password
DTLSConn, dtlsDial, dtlsClient, dtlsServerDTLS 1.3 and 1.2 over any datagram transport
DTLSListener, dtlsListenDTLS server on a UDP socket, stateless cookies
DTLSConfig, SRTPProfile, SRTPKeysDTLS settings, DTLS-SRTP profiles and keys, connection IDs

std.net.tls.acme

Manager, CertificateKeycertificates obtained and renewed for an HTTPS server: on demand, tls-alpn-01, http-01 and dns-01, renewal information
CertificateStore, FolderStore, VaultStorewhere the account key and certificates are kept
Client, Directory, Account, Order, Authorization, Challenge, Identifier, Status, ChallengeTypethe ACME protocol (RFC 8555) step by step
ExternalAccountBinding, RenewalInfo, renewalIdexternal accounts, renewal windows (RFC 9773)
DNSProvider, dnsRecordName, dnsRecordValue, tlsAlpnCertificate, reverseName, acmeTLSProtocol, http01Prefixchallenge responses
Problem, AcmeErrorthe CA's problem documents
letsEncrypt, letsEncryptStaging, zeroSSL, buypass, buypassStaging, googleTrustServices, googleTrustServicesStagingCA directories

std.net.quic

dial, listen, ListenerQUIC client and server (RFC 9000, 9001, 9002)
Connection, Streambidirectional and one-way streams, datagrams, key update
ConfigTLS settings, limits, idle timeout, keep-alive, Retry
TransportError, TransportCode, ApplicationError, ClosedErrorerrors
appendVarint, varintLength, parseVarintvariable-length integers

std.net.stun

dial, client, Client, ClientConfigSTUN and TURN client (RFC 8489, RFC 8656): binding, allocate
Allocation, RelayedPeer, AllocateOptions, Relayeda relayed address on a TURN server: permissions, channels, UDP and TCP relays (RFC 6062)
ServerSTUN and TURN server over UDP, TCP, TLS and DTLS
Message, parseMessage, isMessage, Method, AttributeType, Integritythe message codec, integrity and fingerprint
longTermKey, shortTermKey, restCredentialscredentials: long-term (MD5, SHA-256), short-term, shared secret
parseURI, resolveURI, ServerURI, Transportstun:, stuns:, turn: and turns: URIs
StunError, ErrorCodeerrors, with the server's error code

std.net.sdp

parse, SessionDescription, MediaDescription, AttributeSDP session descriptions (RFC 8866), read and written
RtpMap, FormatParameters, RtcpFeedback, Extension, SourceAttribute, SourceGroup, Rid, Simulcast, Msidthe media attributes WebRTC uses
Group, Fingerprint, TransportParameters, Setup, DirectionBUNDLE groups, certificate fingerprints, ICE and DTLS parameters, directions
Candidate, parseCandidate, candidateText, CandidateTypeICE candidates, in a description or trickled
SdpErrorerrors, with the line

std.net.rtp

Packet, parsePacket, isRtcpRTP packets (RFC 3550) read without copying and written into a buffer, header extensions (RFC 8285)
parseRtcp, Compound, SenderReport, ReceiverReport, ReceptionReport, SourceDescription, ByeRTCP reports
Nack, Pli, Fir, Remb, TransportFeedbackRTCP feedback (RFC 4585, RFC 5104, REMB, transport-wide congestion control)
Packetizer, depacketize, PayloadFormat, startsFrame, startsKeyframe, temporalLayerpayload formats: Opus, VP8 (with temporal layers), VP9, H.264, AV1
retransmission, original, FecSender, FecReceiverretransmission packets (RFC 4588) and FlexFEC repair packets (RFC 8627)
redBlock, redundant, redundantCount, writeRedundant, ulpAsFlexredundant data (RFC 2198): the primary block, the blocks sound carries again, ULPFEC repair blocks (RFC 5109)
JitterBuffer, Framepackets in any order, frames out in order
srtp, SrtpSessionSRTP and SRTCP (RFC 3711, RFC 7714), keyed from DTLS-SRTP, packets protected in place
RtpErrorerrors

std.net.sctp

connect, accept, Association, AssociationState, OptionsSCTP associations (RFC 9260) in user space over any datagram transport, as WebRTC runs them over DTLS
Stream, Message, PayloadProtocolstreams of whole messages, ordered or not, reliable or given up after a number of sends or a lifetime, with stream reset
SctpErrorerrors

std.net.webrtc

PeerConnection, Configuration, IceServer, IceTransportPolicya connection to a browser or another program through NATs (ICE, DTLS, SCTP), set up by offer and answer
LocalTrack, RemoteTrack, TrackKind, Stats, SendStats, ReceiveStatsaudio and video tracks: encoded frames (Opus, VP8, VP9, H.264, AV1) written and read whole; simulcast layers (addSimulcast, rid); skip for sound left out
SessionDescription, SdpType, IceCandidatewhat signalling carries: descriptions and candidates
DataChannel, DataChannelOptions, DataMessagedata channels: text and binary messages, ordered or not, reliable or given up after a count or a time
PeerConnectionState, SignalingState, IceConnectionState, IceGatheringState, DataChannelStatestates
WhipClient, WhepClient, WhipServer, WhepServerpublishing to and playing from a server with one HTTP request (WHIP, WHEP)
WebRtcErrorerrors

std.net.proxy

Dialer, connecttunnels through SOCKS4, SOCKS4a, SOCKS5, HTTP and HTTPS proxies; chains
Binding, AssociationSOCKS BIND and SOCKS5 UDP relay
SocksServer, Request, CommandSOCKS4, SOCKS4a and SOCKS5 server
relaycopies both ways between two streams
ProxyError, ErrorKinderrors

std.net.http

Client, get, post, postJSONclient
Server, ServeMux, Context, Handler, Middlewareserver
Request, Response, Header, Cookie, CookieJarmessages
FileServer, serveFilestatic files
Transportconnection pool, HTTP/1.1, HTTP/2 and HTTP/3
HTTP3Modewhen the client uses HTTP/3: Off, Advertised (Alt-Svc), Always
Proxy, EnvironmentProxy, StaticProxyHTTP, HTTPS and SOCKS proxies for the client, from the environment or one URL
ForwardProxyhandler that serves as an HTTP proxy (CONNECT tunnels, forwarded requests)
CrossOriginProtectioncross-origin request protection
EventReader, ServerEventreads server-sent events from a response body
parseChallenges, AuthChallengethe challenges of WWW-Authenticate headers: scheme and parameters

std.net.http.http2

Conn, Stream, FramerHTTP/2
Encoder, DecoderHPACK

std.net.http.http3

Conn, Stream, SettingsHTTP/3 over QUIC
Encoder, Decoder, TableQPACK
Http3Error, ErrorCodeerrors

std.net.grpc

Client, ClientStream, CallOptionsgRPC client: unary and streaming calls
Server, ServerCall, UnaryHandler, StreamHandlergRPC server
Status, Code, Metadatastatus codes and metadata
Codec, Compressionmessage codecs, compression

std.net.http.websocket

Conn, dial, UpgraderWebSocket; on the web dial opens the browser's
ReconnectingConn, Hubreconnects, broadcast

std.net.http.webpush

Sender, PushMessage, Urgency, maxPayloadsend and cancel push messages (RFC 8030), encrypted with aes128gcm (RFC 8291)
VapidKey, generateVapidKey, parseVapidKeyapplication server identification (VAPID, RFC 8292)
Subscription, parseSubscriptiona browser's push subscription
PushError, PushErrorKindthe push service's refusals: expired subscriptions, rate limits

std.net.http.openapi

parse, DocumentOpenAPI descriptions (3.2; reads 3.0 and 3.1), JSON or YAML, written back with json and yaml; problems checks them against the specification
Info, Server, PathItem, Operation, Parameter, RequestBody, MediaType, Encoding, Response, Header, Callback, Example, Link, Tag, Components, SecurityScheme, OAuthFlowsthe objects of a description, with their extensions and references
Document.addRoutes, Document.serve, Document.pageoperations from a ServeMux's routes; /openapi.json, /openapi.yaml and a documentation page
Validator, ValidatorOptions, Match, Problemrequests, responses and webhooks checked against a description; middleware answering with problem documents
ParameterIn, Style, SchemeKind, OpenAPIErrorparameter locations and styles, security scheme types, errors

std.net.graphql

parse, DocumentGraphQL documents (September 2025 specification), printed as graphql-js prints them
parseSchema, schemaOf, Schema, @graphqlschemas from SDL or from annotated ADM types (subscriptions from methods returning channels): validation, execution, introspection, schema coordinates
Request, Response, GraphQLError, Locationa request and its response, decode into a typed value
ResolveInfo, Resolver, Subscriber, TypeResolver, ScalarCoercionresolvers, subscription sources, abstract types and custom scalars
Subscriptiona running subscription's responses
HandlerGraphQL over HTTP and graphql-transport-ws (subscriptions over WebSocket) for std.net.http
Clientrequests over HTTP, subscriptions over one shared WebSocket
SchemaElement, ElementKindwhat a schema coordinate names
SchemaError, ClientError, SyntaxErrorerrors of schemas, clients and documents

std.net.http.httptest

Server, ResponseRecorder, newRequestHTTP test kit

std.net.http.webdav

Client, ServerWebDAV, over any std.fs store
caldav.Client, caldav.Calendars, caldav.CalendarObjectCalDAV client and server
carddav.Client, carddav.AddressBooks, carddav.AddressObjectCardDAV client and server

std.net.dns

Client, lookup, lookupHost, lookupMX, …resolver
serviceTargetsthe host:port of a service's SRV targets, in order
Server, Zone, Mux, Forwarder, Secondaryserver
Message, Recordwire format
Update, TSIGKeydynamic updates, TSIG

std.net.dns.secure

TLSTransport, HTTPSTransportDNS over TLS and HTTPS
TLSServer, HTTPHandlerthe server side

std.net.dns.dnssec

Validator, verify, TrustAnchorsvalidation
signZone, generateKeyzone signing

std.net.dns.mdns

query, browse, Servicemulticast DNS, service discovery
Responderannounces services

std.net.url

URL, parseURLs
Values, parseQueryquery strings
TemplateRFC 6570 templates
PatternURL patterns
urlEncode, pathEscape, queryEscapeescaping

std.net.multipart

Reader, Writer, Form, Partmultipart bodies

std.net.ssh

Client, Server, SessionSSH
Process, Channelcommands, shells, subsystems
PrivateKey, PublicKey, generateKey, loadKeykeys
CertificateOpenSSH certificates
Agent, KnownHostsagent, known hosts

std.net.sftp

Client, ServerSFTP

std.net.ftp

Client, ServerFTP and FTPS

std.net.mail

mail.Clientmail account: send, list, fetch, watch
smtp.Client, smtp.ServerSMTP
imap.Client, imap.Server, imap.SearchIMAP
pop3.Client, pop3.ServerPOP3
imap.MaildirAccount, pop3.MaildirDrop, smtp.MaildirHandlerMaildir storage

std.net.ldap

Client, ServerLDAPv3
Entry, DN, Filterentries, names, filters
MemoryDirectorydirectory in memory
parseLDIFLDIF

std.net.snmp

Client, Server, TrapReceiverSNMP v1, v2c, v3

std.net.mqtt

Client, Server, MessageMQTT 3.1.1 and 5.0

std.net.ntp

ClientNTP and SNTP queries
Clockclock following several servers
ServerNTP server

std.net.features

FeatureServerfeature server: signed assignments per subject over one HTTP POST; the client is the Features service
Rules, Segment, Condition, Rule, Feature, Group, Variantrules: segments by place, network, version, system, locale and attributes; rollout in percent; A/B groups with weighted arms
compile, RuleSet, bucketchecking rules and deciding with them
RuleSource, MemoryRules, FileRuleswhere a server takes its rules from; a JSON file read again when it changes
Subject, Seen, Assignments, Assignment, GroupAssignmentthe request and the reply
sign, verify, digestOfEd25519 signature of a reply and the digest of its content
FeaturesError, FeaturesErrorKinderrors

std.net.syslog

Client, Server, Messagesyslog, RFC 5424 and RFC 3164
Encoderlog encoder for the Logging service

std.net.irc

Client, Server, MessageIRC with IRCv3

std.net.telnet

Client, Server, SessionTelnet

std.net.sasl

ScramClient, ScramServer, ScramCredentialsSCRAM authentication
saslprepSASLprep (RFC 4013) for user names and passwords

Planned

std.net.jmap.

Media & Devices

std.media.player

MediaPlayerplays audio and video
Playlist, Trackwhat it plays
AudioSink, Visualizer, LevelBarsVisualizeroutput, visualizers

See the example.

std.media.call

localAudio, localVideoa microphone or sound stream, a camera or video stream, as WebRTC tracks (Opus; VP8 or H.264)
playa remote sound track through a speaker
frames, RemoteVideothe decoded pictures of a remote track

std.media.dsp

Biquad, Equalizer, EqBand, EqPresetfilters, equalizers
Compressor, Limiter, Gain, Balance, StereoWidthdynamics, levels
Reverb, Delay, Choruseffects
Spectrum, LevelMeteranalysis
MelSpectrogram, MelScale, MelFramingenergy in mel bands frame by frame, the input of speech models
AudioEffect, AudioProcessor, EffectSwitcheffect interfaces, bypass switch

std.media.synth

Synthsynthesizer: built-in waveforms or a SoundFont, MIDI playback

std.devices

Camera, cameras, openCameracameras (V4L2): frames at a chosen size, rate and format; the camera's modes, controls (exposure, focus, white balance) and configure
Frame, PixelFormat, toImage, toVideoFramea captured frame (MJPEG, YUYV, UYVY, NV12, YUV 4:2:0, grey) as an RGBA image or as YUV planes
CameraMode, CameraControl, ControlKindwhat modes() and controls() report
Speaker, speakers, defaultSpeaker, openSpeakersound output through the desktop's sound server (shared memory where it allows) or the sound card; an empty id follows the desktop's default; the speaker's own volume, mute, unmute, muted
Microphone, microphones, defaultMicrophone, openMicrophonesound input, the same way, with its own volume and mute
volume, muted, mute, unmutea speaker's or microphone's own volume and mute, shared by every program using it: through the sound server or on the card's mixer
soundChanges, SoundChange, SoundChangeKindspeakers and microphones added, removed, changing volume or mute, and the desktop's default changing, as they happen
InputDevice, inputDevices, openInput, InputEvent, InputKind, Axiskeyboards, mice and game pads read event by event outside any window: reports, axes, keys down, exclusive grab, rumble
Gamepad, gamepads, openGamepad, GamepadControl, GamepadState, GamepadEventgame pads by the names games use (A, B, X, Y, shoulders, triggers from 0 to 1, sticks with a dead zone, D-pad, Start, Back, Guide), rumble
GamepadMapping, parseGamepadMappingswhich of a pad's buttons and axes make each control, as lines of SDL's game controller database; pads that follow the kernel's layout need none
PowerSource, powerSources, powerChanges, PowerChange, PowerKind, ChargeState, BatteryHealthbatteries, AC adapters and UPSs: charge, charging state, time to empty or full, health, wear, cycle count, a peripheral's battery; from UPower, the kernel or a UPS's HID reports, with their changes as they happen
HidDevice, hidDevices, openHidraw HID devices: input, output and feature reports, report descriptors
SerialPort, serialPorts, openSerial, Parity, FlowControl, ModemLinesserial ports in raw mode at any baud rate: timed reads and writes (a net.Stream), framing, flow control, drain, break, the modem lines
Gps, gpsDevices, openGps, GpsFix, Satellite, GnssSystem, FixQuality, FixModeGPS receivers on a serial port (NMEA 0183, the baud rate found) or through gpsd: position, altitudes, speed, course, time, fix quality, DOPs and the satellites in view and used
NmeaSentence, parseNmeaone NMEA 0183 sentence taken apart, its checksum checked, and written back

Linux only for now.

AI

std.ai.llm

LanguageModel, load, Devicelanguage model from a GGUF file or a Hugging Face model folder (Llama, Mistral, Qwen2, Qwen3, Qwen3-MoE, Gemma 2/3, Phi-3), on the CPU or the GPU; load's gpuMemory caps the GPU memory it takes, and a mixture-of-experts model larger than that keeps a part of its experts in host memory (hostMemory caps the page-locked copies); weights are read from the mapped file, so a model larger than memory loads
Sessionconversation: sampling, generation, chat; schema and fill(target, text) hold the answer to a JSON Schema (a struct's, filled from the reply); precision runs prompt batches on the GPU's tensor cores
ChatMemory, Forgettinga conversation kept within a budget of tokens: older turns summed up by the model or dropped, room made before each question
LiveChat, LiveProvider, LiveConnection, LiveEvent, LiveEventKind, LiveSetupa spoken conversation both ways at once with a hosted model (OpenAI's Realtime API, Gemini's Live API through the adm.ai libraries' client.live()): sound and text in, speech, words and calls out as they come
ToolOutputa tool result with pictures (a screenshot, a chart), from a tool's look
Chat, RemoteChata conversation with any model: a local Session or a hosted one (the adm.ai provider libraries' client.chat()), with the same tools, messages and streaming; model can change between replies
ChatProvider, ChatRequest, ReplyStream, ReplyEvent, Usage, StopReasonwhat a provider library implements so RemoteChat runs over its API
RemoteError, RemoteErrorKind, remoteErrorKind, schemaOfthe failures of hosted APIs, one kind list for every provider; a tool's parameters as JSON Schema
withDocumentsa message with its documents written as Markdown before its text
Tuning, TargetLoRA fine-tuning from model.tune(rank, alpha, targets, precision): learn from texts or chat conversations (AdamW steps on the CPU or the GPU, the model's weights untouched), loss, save as a GGUF adapter llama.cpp and Ollama read
Adaptera GGUF LoRA adapter and its scale, applied by load(path, adapters = ...)
Message, Role, Reasoning, RemoteFilechat messages (text, pictures, sound, videos, documents), thinking; files uploaded to a hosted model's provider, named in a message
ChatFormat, detectChatFormatchat formats of model families
Tokenizer, loadTokenizertokenizers of GGUF models (BPE, SentencePiece, WordPiece, Unigram) and Hugging Face tokenizer files (tokenizer.json, vocab.json with merges.txt, vocab.txt); pairs of texts for cross-encoders
Statsprompt and generation speed
toolsOfthe tools of an MCP server (std.proto.mcp) as tools of a session

std.ai.tensor

Weights, loadWeightsquantized weights, SIMD matrix-vector multiply
rmsNorm, layerNorm, softmax, silu, gelu, GeluForm, erf, ropetransformer operations
Tensor, tensorOfn-dimensional values of any ONNX element type

std.ai.onnx

Model, loadONNX model ready to run: run takes input values by name and returns the outputs; on a GPU the graph runs there with its tensors kept in device memory, its products on the tensor cores with precision = gpu.Precision.Tf32
Valuea tensor or a sequence of tensors

std.ai.retrieval

Index, load, Matchingtexts and documents cut into passages, embedded by any embedder, searched by meaning, by words (BM25) or both, the best reordered by a reranker; large indexes searched through a graph (HNSW); ask a chat to answer from the best passages; saved to a file
Passage, passagesOfa passage found with its source and score; how a text is cut

std.ai.speech

SpeechModel, load, SpeechTaskWhisper speech to text: transcribe a recording, listen to a microphone as you speak
Voice, loadVoiceKokoro text to speech: speak English text as sound with an American or British voice, misaki's pronunciations built in
Hearda sentence listen heard so far, and whether it is finished

std.ai.diffusion

DiffusionModel, loadStable Diffusion: draw a picture from a prompt
Loraa LoRA file and its strength, merged into the model at load

std.ai.embeddings

EmbeddingModel, load, Poolingtexts as vectors, from GGUF (BERT, Nomic BERT) or ONNX embedding models
similarity, nearestcosine similarity, the closest vectors of a list
Embedderwhat turns texts into vectors: a loaded model, or a hosted one of the adm.ai libraries
RerankModel, loadReranker, Rerankercross-encoders (bge-reranker, ms-marco MiniLM; GGUF or ONNX): how well each passage answers a question, from 0 to 1

Graphics & UI

std.ui

UI, UIConfigUI service
StyleSheet, StyleRule, rulerules that restyle components by selector; UI.addStyles(sheet), UI.removeStyles(sheet), components.Styled(sheet), StyleSheet.add, changed
ComponentRenderer, RenderContext, RenderPasses, Geometry, TextKind, WindowState, WindowKind, CloseRequest, MenuEntry, PointerEvent, PointerPhase, Modifiers, Limit, TextInputClient, TextRange, StateChange, @action, Action, ActionInfo, actionsOf, Viewport, Theme, Palettecomponent drawing, resolved layout, state events, actions
Theme, themeOfthe values styles read as theme; themeOf(component) is the theme that component's style reads: the nearest one provided, else UI.theme()
DragData, DropEffectwhat is dragged: a value of the application's own, text, file paths, other forms by MIME type; what a drop would do (none, copy, move, link)
StyleNode, StyleClass, BoxStyle, FontStyle, Selectorstyle model
IconSetnamed icons an application adds with UI.addIcons; components take an icon by name (Button(icon = "plus"))
ClickEvent, KeyEvent, MouseMoveEvent, TextInputEvent, …events; target is the component under the pointer, the window's root when no other is
Key, KeyCode, typesCharacterthe key of a KeyEvent by its meaning in the layout (Key.A, Key.Enter, Key.F5); whether a key types a character
Display, Appearance, ColorScheme, Contrastdisplays and system appearance (Linux)
pickFolder, pickFiles, saveFile, FileFilterthe system's file dialogs (the desktop portal on Linux, the common item dialog on Windows), shown over the active window: let picked = try await pickFiles("Open", filters = [FileFilter{name: "Images", patterns: ["*.png"]}], multiple = true); none or an empty array when cancelled. Run them on a task from a handler.

std.ui.icons

@iconson a partial type: turns a folder of SVG files into an icon set while the program is built (@icons("assets/icons") partial type AppIcons {}); the type gets set() !IconSet for UI.addIcons and one name per file (arrow-left.svg is ArrowLeft)
fromSvgan IconSet from SVG documents read at run time; a tinted icon follows the text colour where it says currentColor or sets no fill, and keeps the colours it sets

std.ui.styles

Box, Layout, Tracks, Clippingsize, placement and arrangement
Shape, Background, Borders, Outline, Shadows, Filters, Backdrop, Compositing, Effects, Transformspainting and effects
Decorated, Controlumbrellas: everything a box is painted with (background, borders, outline, shadows on one shape); a control's paint, text, pointer behaviour and timing
Foreground, Typography, Editable, TextRenderingtext
Interaction, Scrollbars, ImageContent, Motionpointer, scrollbars, images, transitions
Font, Fill, Sizing, Auto, Anchors, AnchorLine, AnchorEdge, LineStyle, Border, Paint, BackgroundFill, Ring, Shadow, Filter, Transform, Track, Cell, FontWeight, ParagraphLayout, Decoration, TextRun, Cursor, Scrollbar, Transition, Easingstyle values
Align, Alignment, Direction, Arrange, Distribute, Position, Layeralignment, direction, arrangement and positioning

std.ui.charts

Chart, ChartViewport, ChartPointa plot of the series in its block: bound viewport (an empty axis fits the data), wheel zoom and drag pan, onPointSelected and event pointSelected, drawTo(painter, width, height)
LineSeries, AreaSeries, BarSeries, ScatterSeriesseries of ys over xs (the indices without); long lines are thinned per pixel column keeping every peak
Axis, AxisSide, Legendmarks of round steps on a side of the plot, with label, grid and format; the series and their colours
ChartTransform, ChartPart, ChartSeries, niceTicks, tickTextfrom data to pixels and back; what a part and a series of a chart answer; round axis steps and their text

std.ui.maps

MapViewa map of raster tiles: bound center and zoom, tiles, drag pan, wheel and double-click zoom; tiles fetched on its tasks and kept
Marker, Polyline, Polygonwhat its block puts on it: something at a coordinate (a pin without content), a line, an area
TileSource, XyzTiles, MapErrorwhere tiles come from; tiles at an XYZ address over HTTP, kept in cacheDir; a tile the server did not give
MapTransform, MapPart, worldPixel, worldCoordinatefrom coordinates to the view's pixels and back; what a part answers; a coordinate's pixel of the world map at a zoom and back

std.ui.navigation

route, Routes, Outleta component as the page at a path; the page for the current location, inside the pages around it that place an Outlet; notFound; the event located after each change (a link to a part of the page shown, #name, keeps the page)
Router, History, MemoryHistorywhere a window is: go, back, forward, location, canGoBack; the entries behind it, each keeping how far its ScrollView(persist = ...)s were scrolled (scrollOf, keepScroll). Without a history given, Routes uses the browser's on the web (the address bar shows the location; back and forward walk it) and a MemoryHistory elsewhere
Pagewhat describes the page it holds: title (the window's title while it is shown), description, canonical, image, language, robots, themeColor
Location, parseLocation, locationText, RoutePattern, parsePattern, matchPattern, declaredRoutesa path with its query and fragment; a route's path and the values a location gives it; the pages the build found

std.ui.components

Row, Column, HBox, VBox, Grid, Layered, Panel, ScrollView, SplitPane, Spacer, Divider, WindowDraglayout: rows, columns, grids, stacked layers, scrolling, panes a divider resizes, the bar an undecorated window is moved by
TabMovea tab of a TabStrip dragged from one place to another (onMove, event moved); onClose gives each tab a cross
FocusScoperemembers which component in it had the keyboard focus and gives it back when Tab returns; trap keeps Tab inside
PersistScopeputs the kept values of what it holds under its name: PersistScope("left") { Editor() }
ViewHost, TakenViewviews placed by key from code (insert, remove, move, replace); take moves a live view to another host
List, RowItem, Source, SourceChange, SourceChangeKind, SelectionMode, ListStyle, ListRowStylea virtualised list List<T, I = T> (an item is its own id unless id returns another) over an array or a Source<T> (count(), at(i), changes()): id, selected, selection, rowHeight, rowRenderer (takes a RowItem<T>: content, index, selected, current, and in a tree depth and expanded), onChange, onOpen, events changed and opened, reveal(id), current()
Tree, NodeToggle, TreeStylea tree Tree<T, I = T> on a List of the rows that show: roots, id, expand (a node's children, asked when it first opens), leaf, expanded, selected, selection, rowHeight, rowRenderer, onChange, onOpen, onToggle, events changed, opened and toggled (a NodeToggle<T>), reveal(id), current()
DataGrid, GridColumn, GridSort, DataGridStylea grid DataGrid<T, I = T> on a List: rows or source, columns (GridColumn<T>: title, cell, width, order, sortable, key, resizable), id, selected, selection, rowHeight, sortBy, descending, persist, onChange, onOpen, onSort, events changed, opened and sorted (a GridSort), reveal(id), current()
Form, Fielda form (onSubmit, submit(), invalid(), event submitted) and one of its values with a name and an error shown under the control; the form submits only while no field has one
Themedgives what it holds a theme of its own (theme): their styles read it where they name theme
Provide<V>gives what it holds a value they find with context<V>()
Draggable, DropTargetsomething dragged inside a window, with a preview that follows the pointer; a place it, or files and text dragged in from another application, are dropped on
Text, Heading, Label, Link, Image, Icon, Badge, Chip, Avatartext, pictures, icons by name, short notes and tokens
Canvasa box the application draws in itself
Button, ToggleButton, SplitButtonbuttons (any component takes onClick)
Checkbox, Radio, Switch, Slider, Dropdown, ComboBoxchoices; a dropdown and a combo box take options of any type, read through text
TextField, TextArea, SearchField, NumberFieldtext and number entry
ColorPicker, ColorWella colour picked on a square of saturation and value, strips of hue and opacity, hex or swatches; a well opens a picker from a square of the colour
Stepper, Stepthe steps of a task done in order, one page shown at a time under a line of their titles
MenuBar, Menu, MenuItem, SubMenu, MenuSeparator, ContextMenumenus; a long one scrolls its lines past twelve, and with openAtChecked opens at its checked line
Tabs, Tab, TabStrip, Breadcrumbs, Accordion, AccordionItem, Toolbar, StatusBarpages, sections, bars
Popover, Dialog, Drawer, HoverCard, Tooltip, Toast, Sidecontent that floats over the window; the side it opens on
Toasts, ToastHost, ToastKind, ToastNotice, ToastActionnotices asked for in code: Toasts is an interface (show(text, kind, lasts, action, onAction), show(ToastNotice), dismiss(number), clear()) found with context<Toasts>(), callable from any task; ToastNotice has title, body, kind, lasts, actions (ToastAction{label, run}), progress (a bar; the notice stays while it is below 1) and replaces (the number of a shown notice to update in place); ToastHost(limit = 3) { ... } provides the standard one and stacks its notices; Toast has body, kind, action, onAction, actions and progress
WindowChromethe frame of a window drawn by the application, given as WindowConfig.chrome: title, icon, header, minimize, maximize, close
ProgressBar, Spinnerprogress
ButtonStyle, ToggleButtonStyle, TextStyle, TextFieldStyle, MenuItemStyle, PanelStyle, RowStyle, ColumnStyle, GridStyle, ScrollViewStyle, DialogStyle, PopoverStyle, MenuStyle, DropdownStyle, MenuBarStyle, AccordionItemStyle, ControlStyle, MarkedStyle, MarkStyle, BarStyle, FigureStyle, BoxStylethe components' styles

std.ui.renderer

Host, GLSurface, VulkanSurface, PixelSurfacewhat a window system provides: windows, events, text input, clipboard, displays, tray; OpenGL or Vulkan surfaces, or windows that take pixels
Renderer, getRendererrenderer interface
Window, WindowConfig, PlatformEvent, Framewindows, low-level events, frames
NativeWindow, WindowHandlesa window as the window system names it (X11 id, HWND, NSWindow), from a host that implements WindowHandles; what a native dialog is shown over
opengl, vulkan, cpurenderers: OpenGL, Vulkan 1.2 or newer (the same GPU canvas as SPIR-V, in floats on a device without doubles), the CPU canvas shown as pixels with no GPU (desktop windows and web canvases alike)

std.gfx

Rasterpixel surface shared by images and canvases
Mask, RectangleMask, CircleMask, PathMaskmasks
RowMask, coverageRow, coverageBounds, luminanceCoveragemasks a row at a time, and where they cover

std.gfx.color

Color, parsecolors, CSS syntax
RGB, HSL, CMYK, YCbCr, Gray, …color models
Palette, BlendModepalettes, blending

std.gfx.canvas

CanvasCPU drawing surface, implements gfx.Raster
LiveRastera raster changed in place part by part: mark(rect) says what changed, and GPU renderers update only those rectangles of the texture they keep
Painter, DrawContext, Picture, recorddrawing interface, recording, replay, picking, SVG and PDF export, comparing recordings call by call; drawAtlas for sprites, mesh warps
Paint, LinearGradient, RadialGradient, ConicGradient, Pattern, Noise, MeshGradient, linear, radial, noisecolors, gradients (OKLab, linear light, sRGB), image and picture patterns, noise, mesh gradients
ColorStop, Spread, ColorSpacegradient stops, spread and interpolation space
ShaderPaintpaint from a @fragment shader, on the GPU or the CPU
DrawState, Composite, Sampling, ClipRegiontransform, clip, alpha, Porter-Duff operators, blend, sampling
Border, LineStyleCSS borders: width, paint and style per side, rounded corners
Effect, DropShadow, InnerShadow, OuterGlow, InnerGlow, Blur, Outline, ColorAdjust, ColorMatrixgroup effects
Layers, Layer, LayerGroup, LayerItemlayer stacks with masks, clipping layers and folders
TextStyle, TextAlign, TextBaseline, TextOrientation, TextMetrics, GlyphBoxshaped, hinted text, horizontal or vertical
Paragraph, ParagraphStyle, TextSpan, TextLinewrapped paragraphs of styled spans in both directions (Unicode bidi): aligned or justified lines, indents, tab stops, word spacing, a line limit with an ellipsis, balanced lines; shaped once and set again in any width (withWidth), the first baseline from the font metrics (firstBaseline)

std.gfx.render

DrawCommand, CommandKindrender commands a recording keeps for GPU renderers (clears, blits, video, moves of the pixels a frame already shows)

std.gfx.scene

Draws a std.formats.models scene to an image on the CPU: the model's camera or one framing the scene, its lights or a key light, skins and morph targets at an animation time, metallic-roughness shading with every texture slot, mipmapped textures, blended surfaces, supersampling.

renderrender(model, width, height, options) draws the model into a new Image
RenderOptionscamera (the node to look through), time (seconds into the animations), background, samples (drawn pixels per output pixel along each axis, 1 to 4)

std.gfx.processing

Pipelinechained image operations
filtersblur, sharpen, grayscale, contrast, …
transformresize, crop, fit, seam carving
analysissaliency, histogram, dominant color, perceptual hashes and similarity, local features, BlurHash

std.simd

load16, store16, add, mul, min, max, shuffle, blend, sum, …operations on vector types

std.gpu

DeviceBuffer, upload, deviceBufferGPU memory kept between cuda def launches; deviceBuffer<T>(count) makes one of zeros on the device without copying from the host
Readbackreads a buffer back without waiting for launches queued after its start
HostBuffer, hostBufferpage-locked host memory; buffer.write(from, start, count, at) queues a copy of a range of it to the device and returns at once
available, deviceName, freeMemory, capabilitydevice info, bytes of GPU memory free, compute capability times ten (0 on the CPU path)
Precisionhow the AI libraries multiply on the GPU: Exact (the default) or Tf32, the tensor cores of Ampere and newer GPUs, several times faster with results that differ slightly

Tooling

std.testing

@test, @benchmark, @fuzz, @skip, @only, @timeout, @parallel, @goldenannotations for check suites
beforeAll, beforeEach, afterEach, afterAlllifecycle hooks of a suite
expect, expectEqual, expectTrue, expectError, …assertions
skipa test that finds it cannot run on this machine (no device, no permission) ends with return testing.skip(reason) and is reported skipped

std.reflection

attrs, decls, fields, methods, invokediscovery and calls, behind attributes
Fieldone field of a value: its name, kind, type and annotations (attr, hasAttr), the doc comment of an annotated field (doc), typed reads and writes, and set, which stores a boxed value of any kind the field holds
typeName, kindOfruntime type info
MetaContext, …meta contexts
receive, closea channel carried as any, whatever its element type: the next message boxed and whether there was one; closing it
instantiate, field, arrayField, elements, arrayOf, mapOf, defaultOfarrayField addresses an array carried as any as a Field of its own; defaultOf computes the default a parameter of an annotated function is declared with; building and reading values by descriptor; arrayOf makes an array of a described element type from boxed values, mapOf a map<string, V> of a described value type
TypeDescriptor, TypeKinda type as spelled in a signature or field: kind, typeName, the optional/errorable/future flags, an array's, map's or channel's element, a map's key, a tuple's elements
EmbeddedFilea file an annotation builds into the program
BuildMetaContext<T>context of an annotation that runs during the build
SourceEditor, SourceField, SourceAnnotationthe fields a build-time annotation of a type reads, and the members and declarations it adds

std.reflection.buildhost (run, runType) is the build machine's side of those annotations; the compiler's helper programs call it.

std.ide

@ide, IDEservice panels for a connected IDE
IdeTable, IdeLog, IdeLogEntry, IdeKindpanel kinds: value, table, series, tree, text, log

std.cli

parseArgs, Argsthe command line, read by asking: has, flag, count, value (string, int, float, duration, an enum member), values, then unknown and rest, or end, which gives the positionals and refuses a name nobody asked for with a "did you mean" (hide keeps a name out of those)
@flagannotation: fills a module variable or constant from the command line; on a field or a parameter, a flag of a command (annotations)
@command, @argannotations: a function, method or type as a command or a group of commands; a field or parameter as a positional argument
runruns the command the command line names and returns the exit status; --help and help at every level; completion bash|zsh|fish|powershell writes the shell's completion script (eval "$(tool completion bash)"), which completes commands, flags and enum values; a program with @flag variables and no commands writes it for --completion <shell>
completegives completion the candidates for a value only the program knows: a flag or argument by name ("profile", "remote add name"), or the words of a command added by a call
addCommandadds a command by a call: a path ("cache clear"), a description and a function that reads the Args left for it
help, helpTemplate, helpMarkdownthe help screen --help prints for the @flag variables; a Jinja template that draws it instead of the built-in layout; descriptions read as Markdown
UsageError, UsageKindwhat is wrong with a command line

std.cli.terminal

isTTY, size, colorswhether a standard stream is a terminal, its Size in cells, how many colors it shows (ColorDepth)
failure, warning, success, info, heading, emphasis, dim, link, code, promptstyle text for a theme role; plain text when the stream shows no colors
role, colorthe style function of an application's own role; one-off color and attributes
Color, Ansi, parseColor, TextStylepalette, indexed and RGB colors, degraded to what the terminal shows; colors and attributes of a role
Theme, theme, defaultTheme, darkTheme, lightTheme, autoTheme, parseTheme, loadThemerole styles, the current theme, shipped themes, themes from TOML
input, passwordread a line; read a line from the terminal without echo, as a Secret<string>
readKey, Key, KeyCodeone key press, with an optional wait
keyReleases, KeyActionkeys reported as they go down, repeat and come up (Key.action), on terminals with the kitty keyboard protocol
drawImage, imageProtocol, ImageProtocola std.formats.image Image drawn at the cursor, fitted into a number of cells, on terminals with the kitty graphics protocol or iTerm2 inline images; false on the others
supports, Featureasks the terminal whether it knows a protocol: extended keys, synchronized output, bracketed paste, the mouse, mouse moves
readEvent, Event, EventKinda key press, a resize of the terminal window, pasted text or a mouse report
bracketedPaste, mouse, Mouse, MouseButton, MouseActionpastes as one event; mouse presses, releases, drags and the wheel
extendedKeys, synchronizedOutput, mouseMovesunambiguous keys (kitty keyboard protocol), a redraw shown at once, pointer moves with no button held
copy, clipboardtext to and from the system clipboard through the terminal (OSC 52)
rendera std.formats.docs Document (Markdown, HTML, …) laid out for the terminal: wrapped text, lists, boxed tables, with the theme's styles and clickable links
raw, alternateScreen, showCursorterminal modes, switched on and off; put back however the program ends
moveTo, clear, clearLinecursor and screen control

Colors follow NO_COLOR, FORCE_COLOR, CLICOLOR_FORCE, TERM and COLORTERM.

std.cli.prompts

aska line of text, with a fallback and a validation that keeps the question open
texttext of several lines: Enter starts a line, Ctrl+D ends the text
secret, date, filea line shown as dots; a date; a file picked by walking folders, optionally only files of given extensions, dot files on request
confirma yes-or-no question
choose, chooseManyone or several choices from a list the arrow keys move in and typing narrows
spinner, Spinnera turning mark beside a label while work runs: label, log (a line written above it), done, failed
progress, Progressa bar that fills as steps are reported: advance, update, log, done, failed
Cancelledthe error a question fails with on Escape or Ctrl+C

Questions are asked key by key on a terminal; with input or output redirected each answer is read as a line.

std.metrics

Counter, Gauge, Histogram, Togglemetrics (Metric)
Distributiona histogram's counts by range, from Histogram.distribution(); Histogram.last() is the newest sample