Type a keyword to jump straight to a function signature, or browse the module directory below.
94 kernel reference modules · 14 extension libraries · 6,833 reference entries
Kernel modules (3,143 references / 94 modules)
Foundation (487 references / 21 modules)
core
5Version, ABI, module queries
features
0Module compile-switch mapping (generated, no API)
error
27Structured error objects and cause chains
error_format
1Error formatting output
memory
15Heap-allocation chokepoint and allocator replacement
memory_debug
11Allocation fault injection and leak detection
memory_stats
4Process-level memory statistics
temp
17Zero-allocation arena scratch memory
string
83The full string toolkit
regex
54Regex (compile, match, replace, sets)
pattern
37Structured pattern matching ({name} captures)
charset
69Charsets and Unicode conversion
number
15Number parsing and formatting
html
3HTML entity encode/decode
template
32Typed templates
codec
20Hex / Base64 / Percent codecs
compress
18Deflate / Inflate compression
math
20Math utilities
hash
9Hash functions
random
39PCG32 and cryptographically secure randomness
xid
11Distributed unique identifiers
Containers (434 references / 10 modules)
array
50Dynamic arrays and pointer arrays
list
28Doubly linked lists
buffer
23Segmented buffers
slot_map
16Stable-index slot maps
avl
43AVL balanced trees
map
62Hash maps and integer maps
set
34Hash sets and set operations
stack
74The five-piece stack family
queue
46SPSC/MPSC/MPMC lock-free queues
pool
58Object pools and variable-size memory pools
Data layer (233 references / 5 modules)
value
143xvalue dynamic values and COW containers
json
30JSON parsing and serialization
xlon
36The XLang Object Notation
jsonl
12JSON Lines reading and writing
xlonl
12XLON Lines reading and writing
Concurrency (328 references / 13 modules)
atomic
29Atomic operations
spin
7Spinlocks
sync
48Mutex/cond/semaphore/rwlock/events
thread
22Threads and TLS
wait
3Waiting primitives
cancel
9Cooperative cancellation
coroutine
51Stackful coroutines and schedulers
channel
42Go-style channels and Select
future
44Future / Promise and combinators
future_bridge
8Future bridges
executor
10Executor abstraction
task
36Task pools and task groups
signal
20Cross-platform signal handling
Files & system (442 references / 10 modules)
file
97File read/write, mapping, locking, atomic writes
vfs
31Virtual file system
file_async
34Asynchronous file I/O
path
32Path parsing and manipulation
io
42Reader / Writer abstractions
console
4Console output
environment
4Environment variables
process
37Process creation and management
logger
76Logging system
time
58Time and time zones
Security (245 references / 4 modules)
asn1
27ASN.1 / DER encode/decode
crypto
122AES-GCM, ChaCha20, SHA, Ed25519, RSA
pem
7PEM encode/decode
x509
89Certificate parsing, path validation, CRL
TLS (268 references / 8 modules)
tls
140In-house TLS 1.2/1.3 protocol stack
tls_client
10TLS client configuration
tls_server
9TLS server configuration
tls_session
29TLS session management
tls_stream
52TLS stream layer
tls_resume
7Session resumption
tls_identity
13TLS identities
tls_verify
8TLS verification
Networking (377 references / 9 modules)
net
172Addresses, engine, workers, buffer pools, ports
tcp
63TCP streams
tcp_server
15TCP servers
udp
73UDP datagrams
net_file
4Network file transfer
net_frame
9Framing layer
net_interface
12Network interface queries
proxy
23Proxy configuration
task_net
6Network tasks
Web protocols (253 references / 14 modules)
http
59HTTP semantic primitives
http1
25HTTP/1.1 parsing and encoding
http1_net
2HTTP/1.1 network binding
http1_tls
2HTTP/1.1 TLS binding
http_connection
5HTTP connection management
http_decode
10HTTP decoders
http_encoding
12HTTP encoding
http_expect
8Expect header
http_te
10Transfer-Encoding
http_trailer
6HTTP trailers
http_upgrade
10HTTP upgrade
websocket
57WebSocket frame protocol
websocket_stream
38WebSocket streams
websocket_upgrade
9WebSocket upgrade
Extension libraries (2,846 references / 14 libraries)
xhttp
1036HTTP clients and servers
xssh
586SSH2 protocol primitives and client runtime
xacme
61ACME certificate issuance and management. Five cloud DNS providers, EAB, propagation confirmation, and one-call Obtain.
xjwt
28JWT/JWS signing and verification. HS/RS/ES families and JWKS key sets with kid-based selection.
xoauth2
32OAuth2 client and OIDC application composition. Auth code, PKCE, token refresh and introspection.
xllm
100Single model calls, streaming and provider adapters. OpenAI-compatible/Anthropic/Responses dialects, transport retry and usage stats.
xllm-session
77Session ledger, budgets, compaction and persistence. Context budgets, turn windows and JSONL archival.
xwork
71Agent loop, tool execution and approval. Bounded tool loop, sub-agent delegation and the unified task system.
xruntime
442Dynamic types and object system
xmail
280SMTP/IMAP/POP3 mail protocols
xws
133WebSocket runtime
Naming conventions and the error model
Library-wide conventions: functions are xrt + module prefix + PascalCase (e.g. xrtHttp1RequestParse);
types are lowercase with an x prefix (xnetstream, xhttpcall); constants are all-caps.
Headers are trimmed via XRT_MODULE_* / XHTTP_MODULE_* macros; dependency assertions are enforced with #error.
Error handling is a four-layer model: the parsing layer returns offset-carrying error structures (xhttp1errorinfo); the network layer uses the result code
xnetresult to separate errors from control flow (AGAIN / CLOSED / TIMEOUT / CANCELLED);
the runtime layer uses thread-level structured errors xrtGetError / xrtSetError (with domains, operation names, and the cause chain xrtErrorWrap);
the async layer uses xwaitresult.
The most authoritative reference is always the headers themselves (commented, module-trimmed, with complete dependency assertions):
- Kernel:
include/xrt/*.h(94 headers), umbrella headerinclude/xrt.h; single-header artifactsingle/xrt.h. - Extensions: each
extlibs/<product>/include/, facade headers<xhttp.h>/<xws.h>/<xruntime.h>/<xmail.h>/<xssh.h>. - Generated API indexes: each product's
docs/api/reference.md(generated from module manifests bytools/generate_api_reference.py, regenerated with the build).