slop-ai 0.1.0

Rust SDK for the SLOP protocol — let AI observe and interact with your app's state
docs.rs failed to build slop-ai-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: slop-ai-0.2.0

slop-ai

Rust SDK for SLOP (State Layer for Observable Programs).

Expose application state as a structured tree that AI agents can subscribe to, inspect, and act on over WebSocket, Unix socket, stdio, or Axum-backed endpoints.

Crates.io Documentation

Installation

cargo add slop-ai

For Axum integration:

cargo add slop-ai --features axum

Quick start

use serde_json::json;
use slop_ai::SlopServer;

let slop = SlopServer::new("my-app", "My App");

slop.register("todos", json!({
    "type": "collection",
    "props": { "count": 1 },
    "items": [
        { "id": "1", "props": { "title": "Ship docs", "done": false } }
    ]
}));

Feature flags

Feature Default Description
native Yes Enables the native transport set
websocket No WebSocket provider and client support
unix No Unix socket provider and client support
stdio No Stdio transport for CLI and subprocess workflows
axum No Axum WebSocket integration

Documentation