# Ethereal API reference > The reference of the 66 modules of Ethereal, in C++ and in the C layer, generated from the headers of the SDK 1.0.0, with the guide of each module. Product site: https://ethereal.typenamestudios.com ยท Integration guide: https://ethereal.typenamestudios.com/integration/ ## Modules - [Ai::Agent](https://api.ethereal.typenamestudios.com/modules/ai-agent/): An agent runtime with a budget, context management, memory, checkpoints and deterministic replay. Its step-by-step API fits the tick of a game server or any event loop. - [Ai::Embed](https://api.ethereal.typenamestudios.com/modules/ai-embed/): Embedding models that run locally on the CPU, offline, with scalar and AVX2 kernels, int8 quantization and GGUF files from llama.cpp. Multilingual, including Portuguese. - [Ai::Llm](https://api.ethereal.typenamestudios.com/modules/ai-llm/): One API for Anthropic, OpenAI and servers compatible with the OpenAI API, with streaming that allocates nothing per event, a connection pool, smart retries and cost control. - [Ai::Mcp](https://api.ethereal.typenamestudios.com/modules/ai-mcp/): Turns a C++ app into a Model Context Protocol server in a few lines, checked against the official SDKs and the MCP Inspector. It also connects to any existing MCP server. - [Ai::Rag](https://api.ethereal.typenamestudios.com/modules/ai-rag/): Hybrid search with an in-house BM25 and a vector index, with filters, diversification and context assembly with citations, within the token budget. - [Ai::Schema](https://api.ethereal.typenamestudios.com/modules/ai-schema/): JSON Schema for LLM tools and structured outputs: compiles a schema into a flat program, validates JSON against it with no DOM, whole or in chunks, generates the schema from a C++ type and repairs the JSON a model wrote. - [Ai::Tokenizer](https://api.ethereal.typenamestudios.com/modules/ai-tokenizer/): Tokenizers that give the same token ids as tiktoken, Hugging Face and SentencePiece on the files they load: BPE, Unigram and WordPiece, a streaming decoder and token counting with no allocation. - [Ai::Tools](https://api.ethereal.typenamestudios.com/modules/ai-tools/): Turns C++ functions into tools a model can call: the schema comes from the struct, dispatch is by perfect hash, calls run in parallel and human approval is optional. - [assert](https://api.ethereal.typenamestudios.com/modules/assert/): Dispatch of assertion failures. Listeners observe the failure and a single policy decides the action. No allocation on the failure path. - [bench](https://api.ethereal.typenamestudios.com/modules/bench/): The measurement harness. It calibrates the batch, warms up until the frequency settles, reports median, p90, p99, minimum and MAD, records the environment and has a statistical regression gate. Includes the etl-bench tool. - [bits](https://api.ethereal.typenamestudios.com/modules/bits/): Bit manipulation: basic operations, masks, packing, scanning, Morton codes and a bit-level read and write stream. - [bundle](https://api.ethereal.typenamestudios.com/modules/bundle/): Licensing of Ethereal itself. One call per application unlocks the library, and another returns the license data. - [cache](https://api.ethereal.typenamestudios.com/modules/cache/): In-memory cache with a Robin Hood table over a preallocated block, and a sharded variant for multiple threads. - [cli](https://api.ethereal.typenamestudios.com/modules/cli/): Terminal output with its own buffer, color and style with graceful downgrade, column width, progress bar, line editor and an argument parser that does not allocate. - [compression](https://api.ethereal.typenamestudios.com/modules/compression/): Compression, decompression and the checksums of the containers. The format is a value (Compress, Decompress, CompressBound), with format detection from the start of the stream. - [concurrency](https://api.ethereal.typenamestudios.com/modules/concurrency/): Job system with groups and execution modes: persistent worker threads or detached asynchronous routines. - [config](https://api.ethereal.typenamestudios.com/modules/config/): Loads configuration from many sources (TOML v1.0.0, INI, strict and lenient JSON, environment, command line), merges them in layers once, and then reads without searching. - [containers](https://api.ethereal.typenamestudios.com/modules/containers/): Fixed-capacity structures that never touch the allocator after construction. Templates only. - [coroutine](https://api.ethereal.typenamestudios.com/modules/coroutine/): Fibers with assembly context switching and an M:N work-stealing scheduler, with groups, cancellation, fiber synchronization and channels. - [crashreport](https://api.ethereal.typenamestudios.com/modules/crashreport/): Error reports and their delivery. Context is recorded in a block preallocated at Init, and sending happens only with the user's consent. - [cryptography](https://api.ethereal.typenamestudios.com/modules/cryptography/): Checksums, digests, authenticated encryption, key derivation, key agreement, signatures and obfuscation, all implemented inside the library. - [diagnostics](https://api.ethereal.typenamestudios.com/modules/diagnostics/): Warnings and errors formatted in std::format style, and a library exception class. - [ecs](https://api.ethereal.typenamestudios.com/modules/ecs/): Entities, components and systems with archetype storage, in 16 KB chunks with one contiguous array per component, and 64-bit generational entities. - [encoding](https://api.ethereal.typenamestudios.com/modules/encoding/): Converts bytes to text and back: hex, base64, base32, percent-encoding, quoted-printable and Unicode transcoding. A leaf module with no dependency on any other module. - [event](https://api.ethereal.typenamestudios.com/modules/event/): Signals and an event bus with no std::function and no shared_ptr. A slot is a context and function pointer pair in a contiguous vector. Reentrancy is handled. - [file](https://api.ethereal.typenamestudios.com/modules/file/): File and folder utilities, and a C file API with memory mapping and UTF-8 paths on both platforms. - [FormaUI](https://api.ethereal.typenamestudios.com/modules/formaui/): A user interface module, in development. It will ship with the Full edition. - [guard](https://api.ethereal.typenamestudios.com/modules/guard/): Anti-reverse-engineering hardening primitives for legitimate software. The module detects, measures and protects, and never decides: it does not terminate processes and does not talk to the network. Everything ships off, with one CMake option per piece. - [http](https://api.ethereal.typenamestudios.com/modules/http/): HTTP/1.1 client over the TLS 1.3 of the tls module: a synchronous client with a connection pool, an asynchronous one on the event loop and Server-Sent Events. If your code never calls it, none of it enters the binary. - [i18n](https://api.ethereal.typenamestudios.com/modules/i18n/): Makes a product speak more than one language: CLDR 48.2 plurals, locale-aware formatting, ICU MessageFormat messages and compiled catalogs generated by the etl-i18n tool. - [licensing](https://api.ethereal.typenamestudios.com/modules/licensing/): Ed25519 license kit that you embed in your product to license your own users. The product verifies with the public key only, and the issuer signs on the seller's server. It is separate from bundle, which licenses Ethereal itself. - [log](https://api.ethereal.typenamestudios.com/modules/log/): Logging to file, console and debugger output, in synchronous or asynchronous mode. - [math](https://api.ethereal.typenamestudios.com/modules/math/): Scalars, vectors, matrices and geometric primitives, with SIMD concentrated in batch functions that transform, normalize and multiply thousands of elements at once. - [memory](https://api.ethereal.typenamestudios.com/modules/memory/): Arena and pool allocators, and a central manager that tracks allocations by tag. - [meta](https://api.ethereal.typenamestudios.com/modules/meta/): Compile-time type description (structs, enums, flags), header-only, with no RTTI and no allocation. - [Ml::Anomaly](https://api.ethereal.typenamestudios.com/modules/ml-anomaly/): Detects anomalies and change without labels. Produces a calibrated score with a reason, for a review queue. The module never acts. Requires Ml::Trees. - [Ml::Features](https://api.ethereal.typenamestudios.com/modules/ml-features/): Takes per-entity events and delivers the vector the model expects, in the order of the spec. It exists to prevent skew between training features and production features. - [Ml::Neural](https://api.ethereal.typenamestudios.com/modules/ml-neural/): Inference of small networks (MLP, convolutions, LSTM and GRU) inside the binary, from an in-house format converted from ONNX by the etl-neural tool. The client never reads ONNX. - [Ml::Trees](https://api.ethereal.typenamestudios.com/modules/ml-trees/): Loads a tree model trained in LightGBM or XGBoost and predicts with the same numbers as the source library. The model is converted once by the etl-trees tool to a memory-mapped format, with no parsing at load time. - [ModelGuard](https://api.ethereal.typenamestudios.com/modules/modelguard/): Treats the model as a protected asset. Signs it with Ed25519, encrypts it at rest with ChaCha20-Poly1305, binds it to a license, watermarks it with the licensee, loads it into a protected region and verifies the loaded weights in memory. - [mutex](https://api.ethereal.typenamestudios.com/modules/mutex/): Recursive mutex with owner tracking and an RAII guard. - [network](https://api.ethereal.typenamestudios.com/modules/network/): TCP, UDP, the in-house ETL-RUDP reliable protocol over UDP, a completion-based event loop and an encrypted channel. - [platform](https://api.ethereal.typenamestudios.com/modules/platform/): System introspection: modules, processes, threads, regions and another process's memory, exports, image integrity, privileges, system and CPU facts, disks, network interfaces and machine fingerprinting. Every piece is checked against an independent oracle. - [plugin](https://api.ethereal.typenamestudios.com/modules/plugin/): Dynamic plugin loading with a C contract, and an ABI gate that rejects an incompatible plugin without running a single line of it. Hot swap with calls in flight. - [process](https://api.ethereal.typenamestudios.com/modules/process/): Spawns and waits on child processes and provides local IPC: a framed message channel, shared memory, a zero-copy ring and named cross-process synchronization. - [profiler](https://api.ethereal.typenamestudios.com/modules/profiler/): Per-section timing, with a report and CSV export. - [random](https://api.ethereal.typenamestudios.com/modules/random/): Fast random generation, deterministic from a seed, or secure through the operating system generator. - [regex](https://api.ethereal.typenamestudios.com/modules/regex/): Automata-based regular expressions with no backtracking, always linear in the length of the input. UTF-8 text and patterns, with RE2 and Perl semantics. - [resilience](https://api.ethereal.typenamestudios.com/modules/resilience/): Policies that wrap a call that can fail: retries, circuit breaker, concurrency limit and rate limit, composed in a fixed order. - [rpc](https://api.ethereal.typenamestudios.com/modules/rpc/): RPC with a fixed 24-byte binary frame protected by CRC, dispatch by method number negotiated once per connection, windowed streams, multiplexing and a topic bus. A per-request identifier keeps a late response from becoming the answer to the next call. - [scheduler](https://api.ethereal.typenamestudios.com/modules/scheduler/): Job calendar (for example, every weekday at 03:00 local time) with no thread of its own. It uses the time clocks and dispatches on an executor supplied by the integrator. - [serialization](https://api.ethereal.typenamestudios.com/modules/serialization/): Two formats: a portable, versioned binary stream with a sticky error, and strict RFC 8259 JSON read and written with no DOM and no allocation, whole or in chunks. - [statemachine](https://api.ethereal.typenamestudios.com/modules/statemachine/): Finite state machine with a declared transition table and run-to-completion dispatch. - [stats](https://api.ethereal.typenamestudios.com/modules/stats/): Descriptive statistics over sample streams. - [storage](https://api.ethereal.typenamestudios.com/modules/storage/): Embedded transactional key-value store with a page-based B+ tree and a full-page WAL. One writer and many readers that never wait for it. It creates no threads and is not SQL. - [string](https://api.ethereal.typenamestudios.com/modules/string/): In-house ASCII and wide strings with small-string optimization (up to 64 characters), plus comparison and formatting functions. - [system](https://api.ethereal.typenamestudios.com/modules/system/): Console, threads and measurement of CPU, memory and disk, per process and per machine. - [telemetry](https://api.ethereal.typenamestudios.com/modules/telemetry/): Metrics, traces in the W3C Trace Context standard and export to Prometheus, OTLP (protobuf and JSON), StatsD and JSON lines. It has no built-in thread, socket or address: export runs when the integrator calls Tick. - [testing](https://api.ethereal.typenamestudios.com/modules/testing/): Dependency-free test framework. Header-only assertions and registration (C++17), plus a ready-made runner and main. It uses no exceptions or RTTI, and assertions do not allocate. - [text](https://api.ethereal.typenamestudios.com/modules/text/): Everything that requires knowing what each character is in Unicode 18.0.0: properties, normalization, case, segmentation, line breaking, width, collation, IDNA and bidi. Tables are generated from the UCD, and no path uses dynamic memory. - [time](https://api.ethereal.typenamestudios.com/modules/time/): Durations, instants, clocks, stopwatch, deadlines, calendar, date formatting and parsing, timers and sleep. A leaf module. - [tls](https://api.ethereal.typenamestudios.com/modules/tls/): In-house TLS 1.3 (RFC 8446), client and server, with the X.509 it needs: DER, certificates, chains, host names, PEM and the system roots. TLS 1.3 only, on purpose: 1.2 would double the attack surface. - [uid](https://api.ethereal.typenamestudios.com/modules/uid/): 128-bit identifiers as values: generate, parse, compare, sort and hash. - [updater](https://api.ethereal.typenamestudios.com/modules/updater/): Signed update channel: Ed25519 over a manifest, plus SHA-256 per artifact and per file. It creates no threads and opens no sockets on its own. Networking comes in through interfaces, and everything advances through Tick. - [VectorIndex](https://api.ethereal.typenamestudios.com/modules/vectorindex/): Embeddable nearest-neighbor search: hnswlib-style HNSW, with exact brute force alongside. Below about 10,000 vectors the automatic mode picks brute force. - [version](https://api.ethereal.typenamestudios.com/modules/version/): Stores and returns the application name and version as a C string, std::string or CAString. - [Common headers](https://api.ethereal.typenamestudios.com/common/): Types, status codes and macros that every module uses: the platform layer, the status codes of the C layer and the attributes.