torvyn 0.1.0

Ownership-aware reactive streaming runtime for WebAssembly components
Documentation

Torvyn

Ownership-aware reactive streaming runtime for WebAssembly components.

Torvyn composes sandboxed WebAssembly components into low-latency, single-node streaming pipelines with contract-first composition, host-managed resource ownership, and reactive backpressure.

This is the umbrella crate — it re-exports the entire Torvyn public API. For finer-grained dependencies, use the individual torvyn-* crates.

Quick Start

use torvyn::prelude::*;

let host = HostBuilder::new()
    .with_config(HostConfig::default())
    .build()?;

Crate Organization

Module Crate Description
[types] torvyn-types Identity types, errors, enums, state machines
[config] torvyn-config Configuration parsing and validation
[contracts] torvyn-contracts WIT contract loading and validation
[engine] torvyn-engine Wasm engine abstraction and invocation
[resources] torvyn-resources Buffer pools and ownership tracking
[security] torvyn-security Capability model and sandboxing
[observability] torvyn-observability Metrics, tracing, and export
[reactor] torvyn-reactor Stream scheduling and flow lifecycle
[linker] torvyn-linker Component linking and composition
[pipeline] torvyn-pipeline Pipeline topology construction
[packaging] torvyn-packaging OCI artifact assembly and distribution
[host] torvyn-host Runtime orchestration

Feature Flags

Feature Default Description
cli Yes Includes the torvyn binary. Disable for library-only usage.