Three runnable applications demonstrating merkql's core patterns, integrity verification, and event sourcing capabilities.
Getting Started
Each example is a standalone Cargo project that runs end-to-end in a temporary directory. No external services, no configuration, no cleanup.
cargo run -p merkql-sensor-pipeline
cargo run -p merkql-audit-trail
cargo run -p merkql-event-sourced-cart
A complete IoT data pipeline: ingest 1,000 sensor readings with keyed records, consume with two independent consumer groups for analytics and alerting, exercise LZ4 compression and retention policies, and verify that committed offsets survive a full broker restart.
Read the walkthrough →Demonstrates merkql's cryptographic integrity guarantees: generate and verify SHA-256 merkle inclusion proofs, observe root hash progression as records are appended, confirm that earlier proofs remain valid after growth, and detect on-disk data tampering through hash comparison.
Read the walkthrough →Implements event sourcing and CQRS: a stream of shopping cart domain events is replayed by two independent consumer groups, each building a different materialized view—one for cart state, one for revenue reporting. Then demonstrates incremental projection updates without full replay.
Read the walkthrough →Reference
Each example is a standalone Cargo project with a path dependency on merkql.
examples/
├── sensor-pipeline/
│ ├── Cargo.toml
│ └── src/main.rs # 249 lines
├── audit-trail/
│ ├── Cargo.toml
│ └── src/main.rs # 234 lines
└── event-sourced-cart/
├── Cargo.toml
└── src/main.rs # 321 lines
# Build all examples
cargo build -p merkql-sensor-pipeline \
-p merkql-audit-trail \
-p merkql-event-sourced-cart
# Run individually
cargo run -p merkql-sensor-pipeline
cargo run -p merkql-audit-trail
cargo run -p merkql-event-sourced-cart