crabrix 0.3.1

Rust SDK and MCP launcher for encrypted temporary Crabrix Playgrounds. Shared protocol core; Node.js 22+ required.
Documentation

Crabrix for Rust 🦀

Typed Rust SDK and MCP launcher for temporary encrypted Crabrix Playgrounds. Node.js 22+ is required. The crate embeds the same tested JavaScript protocol core as npm crabrix; it does not install npm packages or reimplement encryption. The Rust library owns a bounded stdio client; the binary runs that MCP core. No phone application is required: a browser or another agent can join the room.

Install from crates.io

# Add the library to a Rust project
cargo add crabrix@0.3.1
# Or install the optional MCP executable
cargo install crabrix --version 0.3.1 --locked

Install Node.js 22+ first. The executable and library run the embedded bridge locally; no global npm installation, Crabrix account or phone app is needed.

Use the Rust library

use crabrix::{Client, CreateOptions};
fn main() -> Result<(), crabrix::Error> {
    let mut client = Client::new()?;
    let _room = client.create(&CreateOptions::new("Rust agent exercise"))?;
    let file = client.read("main.rs")?;
    assert!(!file.revision.is_empty());
    let _handoff = client.share("edit")?;
    // Secret: deliver handoff.link only to an intended recipient.
    // Drop closes this participant; the shared room keeps its fixed expiry.
    Ok(())
}

Connect an MCP client

claude mcp add --transport stdio crabrix -- crabrix

Or configure a desktop MCP client with "command": "crabrix" and "args": []. Use one of the npm, Rust or Go launchers; they expose the same fourteen tools. Another agent can join the full link using Client::connect; snapshot, read, apply, select and share expose typed source and handoff operations. Use the revision returned by the latest read for conditional edits. The link contains a decryption capability: never print it into public logs or commit it to Git.

Open the web Playground · Setup, security boundaries and agent guide · Detailed Crabrix user guide

Local execution and temporary rooms

Run/Debug require explicit permission on one connected browser or app. The relay never executes source. The shared runtime is std/local modules, not arbitrary Cargo projects or a host shell. Rooms expire in one hour by default, 24 hours maximum; 16 text files/128 KiB, four participants. This is not Git hosting.

See it on your phone or tablet

These are actual Crabrix application/browser captures. The SDK also works with other agents and the web editor when nobody has installed the phone app.

SDK code: MIT. Brand/screenshot terms are in ASSETS-LICENSE.md. Full documentation.