SDKs
Rust
Use valkyr-core directly from a Rust game server: create an engine, feed events, read verdicts and trust, record and replay matches.
valkyr-core is a plain Rust library with no I/O, no clock and no unsafe code. Add it to your server:
cargo add valkyr-core --git https://github.com/kwy404/valkyr
Feed events, read verdicts
The crate documentation example: a player that covers 1 m every 50 ms (20 m/s) is flagged for speed.
use valkyr_core::{Engine, Config, Event, Frame, Vec3}; let mut engine = Engine::new(Config::default());for i in 0..100u64 { // A player that covers 1 m every 50 ms: 20 m/s, far above 7 m/s. let frame = Frame { player: 7, seq: i, client_time_ms: i * 50, server_time_ms: i * 50 + 30, position: Vec3::new(i as f64, 0.0, 0.0), yaw: 0.0, pitch: 0.0, on_ground: true, jump: false, }; for verdict in engine.ingest(&Event::Frame(frame)) { for flag in &verdict.flags { println!("{}: {}", flag.rule, flag.summary); } }}assert!(engine.trust(7, 5000).probability > 0.1);```
Engine:: returns the verdicts the event produced. Each Verdict has the flags (rule, severity, summary, evidence), the player's trust and the recommended action.
What to send
Use the server's own state: positions after your movement code ran, view angles from the validated input, shots with the latency you measured. See Concepts for the event types and Your own game for the minimum set.
Configuration
Config:: is tuned for a typical shooter at walking speeds around 7 m/s. Every field can be changed; the Configuration page lists them all.
Record and replay
Because the engine is deterministic, a Recording of a match replays to the same verdicts anywhere. Attach recordings to review cases, or replay them after you change a threshold to see what would have happened.
Bevy and other engines
Call the engine from a system that runs after movement and combat resolution, once per tick, with the authoritative state. Keep the engine on one thread; it is cheap enough to run inline at server tick rates.