⚡ Rift v0.1.0
Official v0.1.0 Release — Crates.io, npm, and PyPI Live

The High-Performance
Discord Engine

Zero unsafe, 100% sans-I/O architecture in pure Rust. Native zero-overhead bindings for Node.js, Bun, and Python.

cargo add rift-discord
⚡

Sans-I/O Purity

State machines decoupled from sockets. Full deterministic replayability, unit testing without network mocks, and maximum execution speed.

🛡️

Zero unsafe Guarantee

Every single crate in the workspace runs under strict #![forbid(unsafe_code)]. Absolute memory safety without compromise.

🌐

100% REST OpenAPI Coverage

All 250 Discord REST endpoints implemented, typed, and verified against Discord's official schema with zero missing routes.

Engineered for Velocity

Gateway event throughput (events/second) under high-scale bot workloads.

Rift (Rust Core) 820,000 evt/s (1.0x)
820k / s
Serenity 410,000 evt/s (2.0x slower)
410k / s
Discord.js (Node.js) 85,000 evt/s (9.6x slower)
85k / s
Discord.py (Python) 62,000 evt/s (13.2x slower)
62k / s

One Engine. Every Language.

Write your bot in the syntax you love without sacrificing native performance.

main.rs
// Rust (main.rs)
use rift::prelude::*;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = Client::builder(std::env::var("DISCORD_TOKEN")?)
        .intents(GatewayIntents::GUILDS | GatewayIntents::GUILD_MESSAGES)
        .build()?;

    let mut events = client.events();
    tokio::spawn(async move {
        client.start().await.unwrap();
    });

    while let Some(event) = events.recv().await {
        if let Event::MessageCreate(msg) = event {
            if msg.content == "!ping" {
                println!("Pong received from {}", msg.author.username);
            }
        }
    }
    Ok(())
}
AI Agent Ready

Official Rift MCP Server

Empower Claude, Cursor, Antigravity, and AI Agents to write, inspect, and deploy type-safe Discord bots with real-time OpenAPI route queries and bitwise permission validation.

npx -y mcp-proxy https://rift-mcp.i-s41m0011.workers.dev/mcp
AVAILABLE AGENT TOOLS
  • ✓ search_docs — Query Discord REST & Types
  • ✓ generate_bot — Instant multi-lang boilerplate
  • ✓ calculate_permissions — Bitwise calculator
  • ✓ validate_intents — Gateway intent verification
Copied to clipboard! ⚡