HyperBEAM Reference
Complete API documentation for HyperBEAM's 139 modules, based on v0.9-milestone-3-beta-3. Each module page includes an overview, public function specifications with type signatures, internal function documentation, common usage patterns, and test code examples.
The reference is organized into three categories:
- AR Utils — Low-level Arweave integration (cryptography, transactions, bundles)
- HB Core — Core infrastructure (messaging, caching, HTTP, storage, runtime)
- Devices — Pluggable device implementations (codecs, scheduling, execution, payment)
AR Utils (7)
| Module | Purpose |
|---|---|
| rsa_pss | RSA-PSS signatures (RFC 3447) |
| ar_wallet | Key generation, signing, serialization |
| ar_bundles | ANS-104 bundle creation and verification |
| ar_tx | L1 transaction creation and signing |
| ar_deep_hash | SHA384 recursive hashing for signatures |
| ar_timestamp | Network timestamp caching |
| ar_rate_limiter | HTTP request throttling |
HB Core (55)
Entry Points & Configuration
| Module | Purpose |
|---|---|
| hb | Main entry point and node startup |
| hb_app | OTP application behavior |
| hb_sup | Supervisor tree management |
| hb_opts | Configuration management |
Computation Engine
| Module | Purpose |
|---|---|
| hb_ao | Core AO resolution engine |
| hb_ao_device | Device loading and function routing |
| hb_ao_test_vectors | AO resolution test suite |
HTTP Stack
| Module | Purpose |
|---|---|
| hb_http | High-level HTTP request API |
| hb_http_server | Cowboy server integration |
| hb_http_client | Connection pooling and retries |
| hb_http_client_sup | HTTP client supervisor |
| hb_http_multi | Multi-node parallel requests |
| hb_http_benchmark_tests | HTTP performance benchmarks |
Caching & Storage
| Module | Purpose |
|---|---|
| hb_cache | High-level caching with commitments |
| hb_cache_control | Cache control heuristics |
| hb_cache_render | GraphViz cache visualization |
| hb_store | Storage abstraction layer |
| hb_store_fs | Filesystem backend |
| hb_store_gateway | Arweave gateway backend (read-only) |
| hb_store_lmdb | LMDB embedded database |
| hb_store_lru | LRU in-memory cache |
| hb_store_opts | Store options processing |
| hb_store_remote_node | Remote node proxy |
| hb_store_rocksdb | RocksDB backend |
Message Handling
| Module | Purpose |
|---|---|
| hb_message | Format conversion and commitments |
| hb_message_test_vectors | Message format test suite |
| hb_maps | Map operations with link resolution |
| hb_path | Path routing and hashpath calculation |
| hb_link | Link resolution and normalization |
| hb_singleton | Singleton message conversion |
| hb_private | Private message fields |
WASM Runtime
| Module | Purpose |
|---|---|
| hb_beamr | WASM runtime wrapper |
| hb_beamr_io | WASM memory I/O operations |
Utilities
| Module | Purpose |
|---|---|
| hb_util | Core utilities and type conversion |
| hb_crypto | Hashing and key derivation |
| hb_json | JSON encoding/decoding |
| hb_keccak | Ethereum-compatible hashing |
| hb_escape | String escaping utilities |
| hb_format | Pretty-printing and display |
| hb_structured_fields | HTTP Structured Fields (RFC 9651) |
Networking & Routing
| Module | Purpose |
|---|---|
| hb_client | Remote node communication |
| hb_gateway_client | Arweave GraphQL client |
| hb_router | Node routing configuration |
Process Management
| Module | Purpose |
|---|---|
| hb_persistent | Process grouping and workers |
| hb_name | Named process registry |
| hb_process_monitor | Process lifecycle monitoring |
Debugging & Monitoring
| Module | Purpose |
|---|---|
| hb_debugger | Interactive debugging |
| hb_event | Event logging and counters |
| hb_logger | Structured logging |
| hb_tracer | Execution tracing |
| hb_metrics_collector | Prometheus metrics |
| hb_features | Feature flags |
Testing & Examples
| Module | Purpose |
|---|---|
| hb_test_utils | Test store generation, benchmarking |
| hb_examples | Integration examples |
| hb_volume | Disk and volume management |
Devices (77)
Signature & Codec Foundation
| Module | Purpose |
|---|---|
| dev_codec_httpsig | HTTP Message Signatures (RFC-9421) |
| dev_codec_httpsig_conv | TABM ↔ HTTP conversion |
| dev_codec_httpsig_keyid | Key material extraction |
| dev_codec_httpsig_siginfo | Signature header encoding |
| dev_codec_httpsig_proxy | HMAC commitment proxy |
| dev_codec_flat | Flat path-based representation |
| dev_codec_structured | Rich typed messages (int, float, atom, list) |
Message Codecs
| Module | Purpose |
|---|---|
| dev_codec_json | JSON interchange format |
| dev_codec_ans104 | ANS-104 bundle format |
| dev_codec_ans104_from | ANS-104 → TABM extraction |
| dev_codec_ans104_to | TABM → ANS-104 conversion |
Authentication Codecs
| Module | Purpose |
|---|---|
| dev_codec_cookie | Cookie management and auth |
| dev_codec_cookie_auth | Cookie commitment interface |
| dev_codec_cookie_test_vectors | Cookie test suite |
| dev_codec_http_auth | HTTP Basic auth with PBKDF2 |
Core Message Operations
| Module | Purpose |
|---|---|
| dev_message | Default device, message manipulation |
| dev_stack | Device execution chaining |
| dev_multipass | Multi-pass execution control |
| dev_apply | Dynamic path-based execution |
| dev_patch | Message reorganization |
| dev_dedup | Message deduplication |
| dev_hook | Lifecycle event hooks |
Process Management
| Module | Purpose |
|---|---|
| dev_process | Core process execution engine |
| dev_process_cache | Computation result caching |
| dev_process_worker | In-memory state optimization |
| dev_node_process | Node-specific singleton processes |
| dev_meta | Node lifecycle and configuration |
| dev_monitor | Process execution monitoring |
Scheduling
| Module | Purpose |
|---|---|
| dev_scheduler | Core scheduler device |
| dev_scheduler_cache | Assignment caching |
| dev_scheduler_formats | Bundle ↔ AOS2 conversion |
| dev_scheduler_registry | Scheduler server registry |
| dev_scheduler_server | Long-lived scheduler servers |
| dev_cron | Scheduled message execution |
Storage & Caching
| Module | Purpose |
|---|---|
| dev_cache | Cache read/write operations |
| dev_lookup | Resource lookup with format negotiation |
| dev_trie | Radix trie for efficient key-value |
| dev_volume | Volume management for state |
Name Resolution
| Module | Purpose |
|---|---|
| dev_name | Name resolution via resolver chain |
| dev_local_name | Local name registration |
| dev_manifest | Arweave path manifest resolution |
Arweave Integration
| Module | Purpose |
|---|---|
| dev_arweave | Arweave network access |
| dev_arweave_block_cache | Block caching with indexing |
| dev_poda | Proof of Distributed Authority |
Network & Routing
| Module | Purpose |
|---|---|
| dev_router | HTTP message routing |
| dev_relay | Message relay between nodes |
| dev_push | Outbound message delivery |
| dev_whois | Network identity discovery |
Query & Indexing
| Module | Purpose |
|---|---|
| dev_query | Data query interface |
| dev_query_arweave | Arweave GraphQL queries |
| dev_query_graphql | Full GraphQL interface |
| dev_query_test_vectors | Query test suite |
| dev_copycat | Data replication orchestration |
| dev_copycat_arweave | Block-based indexing |
| dev_copycat_graphql | Query-based indexing |
Execution Runtimes
| Module | Purpose |
|---|---|
| dev_wasm | WebAssembly runtime (WAMR) |
| dev_wasi | WASI interface implementation |
| dev_lua | Lua 5.3 execution with sandboxing |
| dev_lua_lib | AO-Core functions for Lua |
| dev_lua_test | Lua test framework |
| dev_lua_test_ledgers | Token ledger test suite |
| dev_json_iface | JSON interface for WASM |
| dev_delegated_compute | Remote CU execution |
| dev_genesis_wasm | Legacy AO compatibility |
| dev_cu | Compute unit tracking |
Payment & Economics
| Module | Purpose |
|---|---|
| dev_p4 | P4 payment orchestration |
| dev_simple_pay | Flat-rate pricing and ledger |
| dev_faff | Friends & Family whitelist |
Security & Attestation
| Module | Purpose |
|---|---|
| dev_secret | Secret/wallet management |
| dev_auth_hook | Authentication hooks |
| dev_snp | AMD SEV-SNP attestation |
| dev_snp_nif | SNP NIF interface |
| dev_green_zone | Trusted execution zones |
Debugging & Tools
| Module | Purpose |
|---|---|
| dev_hyperbuddy | Web REPL interface |
| dev_cacheviz | Cache visualization |
| dev_profile | Performance profiling |
| dev_test | Testing utilities |