Skip to main content

Crate crabrix

Crate crabrix 

Source
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§

ApplyOptions
Change
Client
CreateOptions
Error
Handoff
A capability URL. Debug formatting deliberately redacts the link.
Options
No network installation is performed. node is a local trusted executable.
SourceFile

Functions§

doctor
Run the bundled crabrix doctor diagnostics. It opens no room and reads no source.
serve_mcp
Run the exact bundled MCP server over stdio, without an npm download.

Type Aliases§

Result