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.
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.
One Engine. Every Language.
Write your bot in the syntax you love without sacrificing native performance.
// 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(())
}
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
- ✓
search_docs— Query Discord REST & Types - ✓
generate_bot— Instant multi-lang boilerplate - ✓
calculate_permissions— Bitwise calculator - ✓
validate_intents— Gateway intent verification