Libraries
01Servers#
Serving requests and running work: the HTTP framework and its request and response values, WebSockets, DNS and MQTT brokers, job queues and schedules, and the base for building servers.
DNS messages, zones and zone files, resolvers, a server over UDP, TCP and DNS over HTTPS, a client, a recursive lookup and record validators.
An HTTP framework on hyper: routes, hooks, parameters with validators, requests and responses.
Building blocks for MQTT 5.0 and 3.1.1 brokers: the packet codec, a subscription trie, per-connection delivery state, a broker over adapters (Tokio on TCP, TLS and WebSocket; in-memory) with keep-alive timers, and a client.
A task queue: messages, publishers and consumers on Redis, Redis Cluster and NATS JetStream, and a worker server with hooks, retries and concurrency.
A scheduler that reconciles schedules from a source of truth and dispatches cron, interval, delayed and fixed-time occurrences without silently skipping a run.
The base of Utopia-style servers: hooks with params, validators, injections, groups and labels, and the mode and hook registries a server keeps.
WebSocket servers behind one adapter interface (Tokio, in-memory), with hooks, fan-out sends and error stages, and a WebSocket client.
02Transport#
Reaching other services: HTTP and SMTP clients, NATS, and connection strings.
An HTTP/1.1 client with immutable configuration, destination checks on every connection, redirects, retries with backoff, streaming and pooling.
Data source names (connection strings), parsed into scheme, credentials, host, port, path and options.
A NATS client: publish, subscribe, request-reply and batched requests over TCP, TLS and WebSockets, with JetStream streams and consumers, a key-value store, an object store and NATS micro services.
An async SMTP client: STARTTLS and implicit TLS, PLAIN, LOGIN and XOAUTH2, partial recipient refusal, and MIME messages with attachments built for the wire.
03Data#
Keeping data: databases and the queries over them, caches and file storage.
Key-value caching with expiring entries over memory, files, Redis, Redis Cluster, Memcached and Hazelcast, with sharding, pooling, circuit breaking and purge-safe leases.
Document database: collections, attributes, indexes, documents, queries, permissions, relationships and tenancy over pluggable adapters (PostgreSQL, MariaDB, MySQL, SQLite, in-memory, Redis, Pool, Mirror).
MongoDB client: commands, CRUD, indexes, sessions and transactions with causal consistency, on the official driver.
Queries as data, compiled to SQL (MySQL, MariaDB, PostgreSQL, SQLite, ClickHouse) and MongoDB commands; schema builders; a SQL tokenizer, parser, serializer and statement classifier.
File storage devices: the local disk and S3-compatible object stores (AWS, DigitalOcean Spaces, Backblaze, Linode, Wasabi), with chunked uploads, conditional writes, telemetry and upload validators.
04Security#
Who is calling and how often: password hashing, sessions, tokens, OAuth2 and passkeys, and abuse limits.
Rate limits: fixed windows, sliding windows and token buckets over Redis, Redis Cluster, pooled connections, document stores and Appwrite tables, and reCAPTCHA verification.
Password hashing, proofs, session stores, JWT issuers and verifiers, OAuth2 server values and WebAuthn passkeys.
05Observability#
Seeing what a service does: audit trails, telemetry, tracing spans and usage metrics.
Audit trails: who did what to which resource, from where and when, stored in a utopia-database collection or a ClickHouse table, and read back by user, resource, event, time and custom queries.
Span tracing: attributes on the current span of each task, W3C trace context, and exporters to stdout, a terminal and Sentry.
Metrics instruments (counters, histograms, gauges, observable gauges) over pluggable backends: none, in memory, and OpenTelemetry (OTLP over HTTP).
Usage metrics: events summed and gauges sampled, written in batches and read as totals, time series and dimensional breakdowns over ClickHouse or a utopia-database collection; canonical samples with completeness evidence.
06Platform#
The ground a service runs on: CLIs and consoles, configuration, dependency injection and registries, system information, locks, pools, circuit breakers, events, and the PHP engine semantics the Rust crates share.
A synchronous in-process event bus: typed events, listeners with injected dependencies, failures isolated and recorded on the current span.
Circuit breakers judged on a rolling failure rate, with half-open probes, state shared through Redis or an in-process table, and telemetry.
Command-line applications: tasks with validated params and injected resources, init, shutdown and error hooks, and adapters that run them.
Application configuration: a process-wide parameter registry, and typed configs loaded from env, dotenv, JSON, YAML or PHP files and validated against a schema.
Console helpers: coloured log lines, prompts, process titles, shell-safe commands, and running commands with input, output, progress and a timeout.
A dependency injection container: factories with declared dependencies, built once, resolved through parent containers.
Locks: Redis leases across hosts, in-process mutexes and semaphores, and file locks across processes.
PHP engine semantics (the value model, juggling and comparison, string, number, JSON, serialize, igbinary, sorting, filter and URL functions) for crates that must behave exactly like PHP.
Modules, services and actions: describe an application's HTTP routes, CLI tasks and queue workers once, and register them on their servers.
Fixed-capacity pools of lazily created resources (connections), with bounded waits, recovery, upkeep, groups and telemetry.
Named resources created on first use by registered factories, cached per context.
Environment variables and machine facts: OS, architecture, CPU, memory, disk, IO and network.
07Utilities#
Focused helpers: input validation, translations, domain and email parsing, user-agent and device detection, OpenAPI documents, compression, load balancing and image processing.
Choosing between endpoints: options with state, filters, the First, Last, Random and RoundRobin algorithms, and groups of balancers tried in order.
Compression algorithms (Brotli, Deflate, GZIP, LZ4, Snappy, XZ, Zstd) and Accept-Encoding negotiation, byte for byte as PHP's extensions.
Detects a project's packager, runtime, framework and rendering from its file names, languages and manifests.
Domain names split against the Public Suffix List, domain validators, and registrar clients for availability, prices, purchases, renewals and transfers.
Email address parsing, canonical forms per provider, free, disposable and corporate classification, and validators.
Image previews: decode, crop by gravity or focal point, borders, rounded corners, opacity, rotation and background, then encode to JPEG, PNG, GIF, WebP or AVIF.
Translations: languages, default and fallback locales, and placeholders.
OpenAPI 2.0, 3.0 and 3.1 documents read into one version-independent, immutable model.
User-agent parsing: operating system, client, device and bot.
Request parameter validators with their user-facing messages.
08Integrations#
Third-party services: AI agents, version control, orchestration, CDNs, messaging providers for email, SMS and push, and moving data between backends.
AI agents on LLM providers: conversations, messages with image attachments, structured output schemas, streamed responses, token accounting, embeddings, and diff checks.
CDN cache purges (Cloudflare, Fastly, and a fan-out over several) and certificate providers (Cloudflare custom hostnames, Fastly domains and TLS subscriptions, and a proxy routing between them).
Email, SMS, push and chat messages sent through provider adapters (SMTP, SES, Mailgun, Sendgrid, Resend; Twilio, Vonage, Bird, WhatsApp and a dozen more SMS gateways with routing by calling code; FCM and APNs; Discord), with per-recipient results and send telemetry.
Moves resources between services: sources (Appwrite, Supabase, NHost, Firebase, CSV, JSON) and destinations (Appwrite, CSV, JSON, a local backup), with the transfer, its cache and status counters.
Container orchestration on Docker, through the Docker CLI or the Engine API on its Unix socket: images, containers, executions, networks and usage statistics.
Version control system adapters: GitHub, GitLab, Gitea, Forgejo, Gogs, Bitbucket and Origin: repositories, branches, tags, files, commits, pull requests, comments, statuses and check runs, webhook parsing and signature validation, app installation tokens, and shallow sparse clone commands.