Expand description
Typed Rust access to Crabrix’s temporary encrypted Playground rooms.
This SDK uses the same bundled local JavaScript protocol core as the npm SDK. Node.js 22+ is required, but no npm install or iPhone app is needed. It never compiles source on the relay. A browser/app must explicitly allow local Run/Debug. Source and capability links are never logged by this SDK.
use crabrix::{Client, CreateOptions};
let mut client = Client::new()?;
let room = client.create(&CreateOptions::new("Rust agent exercise"))?;
let source = client.read("main.rs")?;
assert!(!source.revision.is_empty());
// Explicit secret handoff; deliver only to the intended recipient.
let handoff = client.share("edit")?;
assert_eq!(handoff.mode, "edit");Structs§
- Apply
Options - Change
- Client
- Create
Options - Error
- Handoff
- A capability URL. Debug formatting deliberately redacts the link.
- Options
- No network installation is performed.
nodeis a local trusted executable. - Source
File
Functions§
- doctor
- Run the bundled
crabrix doctordiagnostics. It opens no room and reads no source. - serve_
mcp - Run the exact bundled MCP server over stdio, without an npm download.