#Standard Library (ranvier-std)

Version: 0.33.0 Updated: 2026-03-15 Applies to: ranvier-std Category: Deep Dives


Built-in nodes for common logic, flow control, and data manipulation.

#Logic Nodes

Node Description
FilterNode Conditional validation and rejection flow
RandomBranch Probability-based traffic splitting (A/B testing)
SwitchNode Multi-arm pattern matching for requests

#Flow Control

Node Description
DelayNode Timed execution suspension (async-native)
IdentityNode Structural placeholders for explicit circuitry
HaltNode Explicit termination of workflow branches

#Data Utilities

Node Description
MathNode Standard arithmetic operations for numeric states
StringNode Transform, Case, and Concat operations
LogNode Trace-integrated structured logging

#Quickstart

use ranvier_std::prelude::*;

Axon::new("LogicLoop")
  .then(FilterNode::new(|x| x > 100))
  .then(LogNode::info("Validated input!"))
  .then(MathNode::add(10));

#Workflows

  1. Import ranvier-std in your Cargo.toml.
  2. Compose complex decision trees using SwitchNode.
  3. Apply LogNode for debugging node-level transitions.
  4. Use RandomBranch for canary releases or experiments.

#Key Types

Type Description
ranvier-std Core library providing reusable high-level transitions
FilterNode<T> Halts or branches if a predicate is not met
DelayedTransition Protocol for implementing time-aware logic steps
SwitchNode High-level branching node for complex routing inside Axon