hyperstack-interpreter
AST transformation runtime and VM for HyperStack streaming pipelines.
Overview
This crate provides the core components for processing Solana blockchain events into typed state projections:
- AST - Type-safe definition of state schemas and event handlers
- Compiler - Compiles AST specs into optimized bytecode
- VM - Executes bytecode to process events and maintain state
- TypeScript Generation - Generate client SDKs automatically
Installation
[]
= "0.1"
Usage
Define State Types
use ;
Compile and Generate TypeScript
use ;
let config = default;
let compiler = new;
let typescript = compiler.compile?;
Feature Flags
| Feature | Default | Description |
|---|---|---|
otel |
No | OpenTelemetry integration for distributed tracing and metrics |
Benefits
- Type Safety - Compile-time checking of state structure
- No String Typos - Field paths validated at compile time
- IDE Support - Full autocomplete and navigation
- Refactorable - Rename fields, accessors update automatically
License
Apache-2.0