examples/

directory
v0.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2026 License: MIT

README

/examples

cd /

[!NOTE] asyncmachine-go is a batteries-included graph control flow library (AOP, actor model, state-machine).

Table of contents:

Examples

Headers link more info about each example.

aRPC Setup
CLI
  • #template #relations #handlers
CLI Daemon
  • #template #relations #handlers #arpc #payload
DAG Dependency Graph
  • #relations #handlers #async #auto #dependency-graph
Fan Out Fan In
  • #relations #handlers #async #auto #concurrency
FSM - Finite State Machine
  • #relations #handlers #negotiation #auto
  • origin
NFA - Nondeterministic Finite Automaton
  • #relations #handlers #async #multi
  • origin
PATH Watcher
  • #relations #handlers #async #negotiation #multi
  • origin
Pipes
  • #handlers #composition
  • origin
Mach Template
  • #template #handlers #telemetry #repl #relations #generator #negotiation #multi
Raw Strings
  • #relations #handlers #async #negotiation #auto
  • origin
Relations Playground
REPL
Subscriptions
Temporal Expense Workflow
  • #relations #handlers #async #negotiation #auto #temporal
  • origin
Temporal FileProcessing Workflow
Tree State Source
  • #relations #negotiation #auto #arpc #otel #metrics #grafana #generator #data
  • origin
TUI
  • #relations #handlers #cview #ui #global-handlers
WASM
  • #relations #handlers #arpc-handlers #arpc #relay #ui #websocket

Benchmarks

Benchmark gRPC
  • #relations #handlers #negotiation #arpc #grpc
  • origin
Benchmark libp2p PubSub
  • #relations #handlers #async #negotiation #libp2p
Benchmark State Source
  • #docker #go-wrt #caddy
  • origin

Demos

am-dbg Debugger

Interactively use the TUI debugger with data pre-generated by a secai bot:

go run github.com/pancsta/asyncmachine-go/tools/cmd/am-dbg@latest \
  --import-data https://pancsta.github.io/assets/asyncmachine-go/am-dbg-exports/secai-cook.gob.br \
  mach://cook

Apps

monorepo

Go back to the monorepo root to continue reading.

Directories

Path Synopsis
arpc
client command
server command
client command
worker command
cli
states
Package states contains a stateful schema-v2 for a CLI.
Package states contains a stateful schema-v2 for a CLI.
cli_daemon
cli command
daemon command
states
Package states contains a stateful schema-v2 for a CLI.
Package states contains a stateful schema-v2 for a CLI.
states
Package states contains a stateful schema-v2 for MachTemplate.
Package states contains a stateful schema-v2 for MachTemplate.
nfa
temporal_expense
gen_states command
tui
client command
server command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL