PJS Domain Layer - Pure Business Logic
This crate contains the pure domain logic for PJS (Priority JSON Streaming Protocol) with ZERO external dependencies (except thiserror for error handling).
The domain layer is WASM-compatible and can be used in both native and WebAssembly environments.
Architecture
Following Clean Architecture principles:
- Value Objects: Immutable, validated domain concepts (Priority, JsonPath, etc.)
- Entities: Domain objects with identity (Frame, Stream)
- Domain Events: State change notifications
Features
std(default): Standard library supportserde: Serialization support for WASM interopwasm: Enables WASM-specific optimizations