| Crates.io | mockforge-world-state |
| lib.rs | mockforge-world-state |
| version | 0.3.31 |
| created_at | 2025-11-27 02:18:53.408795+00 |
| updated_at | 2026-01-04 23:24:11.664167+00 |
| description | World State Engine - Unified visualization of all MockForge state systems |
| homepage | https://mockforge.dev |
| repository | https://github.com/SaaSy-Solutions/mockforge |
| max_upload_size | |
| id | 1952946 |
| size | 202,951 |
Pillars: [Reality][DevX]
Unified visualization of all MockForge state systems - like a "miniature game engine for your backend."
The World State Engine aggregates and visualizes all state systems in MockForge, including:
use mockforge_world_state::{WorldStateEngine, WorldStateQuery};
use std::collections::HashSet;
// Create engine
let mut engine = WorldStateEngine::new();
// Register aggregators (typically done by the main application)
// engine.register_aggregator(Arc::new(PersonaAggregator::new(...)));
// Create a snapshot
let snapshot = engine.create_snapshot().await?;
// Query with filters
let query = WorldStateQuery::new()
.with_layers(HashSet::from([StateLayer::Personas, StateLayer::Protocols]));
let filtered = engine.query(&query).await?;
The World State Engine integrates with:
mockforge-core: Reality, time, consistency, behaviormockforge-data: Personas, lifecycle, schemasmockforge-recorder: Recorded data and replay stateSee the API documentation for detailed API reference.