BridgeRust
Ship One Rust Core to Python & Node.js
50xFaster Critical Pathsreplace pure Python hot loops
10xLower Memorylean native runtime footprint
1 CoreTwo Language SDKssingle Rust codebase, dual distribution
Write Once, Ship to Both Ecosystems
Section titled “Write Once, Ship to Both Ecosystems”BridgeRust wraps PyO3 and napi-rs behind one macro-first workflow.
You keep Rust-level performance and safety while shipping native packages to both Python and Node.js.
use bridgerust::prelude::*;
#[bridge]struct Calculator { value: f64,}
#[bridge_methods]impl Calculator { #[constructor] fn new() -> Self { Self { value: 0.0 } }
#[method] fn add(&mut self, value: f64) { self.value += value; }
#[method] fn get_value(&self) -> f64 { self.value }}from calculator import Calculator
calc = Calculator()calc.add(10.5)calc.add(5.3)
print(calc.get_value()) # 15.8import { Calculator } from "calculator";
const calc = new Calculator();calc.add(10.5);calc.add(5.3);
console.log(calc.getValue()); // 15.8One implementation. Two native SDKs. No duplicated glue code.
Where Teams Use BridgeRust
Section titled “Where Teams Use BridgeRust” Universal SDKs Build one Rust client and publish to both PyPI and npm.
Data Pipelines Move transformation-heavy paths to Rust while preserving Python/Node ergonomics.
Infra Utilities Ship fast parsers, formatters, and protocol tools into multiple runtimes.
Realtime Services Use Rust for throughput and expose a developer-friendly API surface.
BridgeRust vs Building Separately
Section titled “BridgeRust vs Building Separately”| Capability | BridgeRust | Separate Python + Node Implementations |
|---|---|---|
| Core logic duplication | None | High |
| Native performance | Yes | Depends |
| Cross-language type consistency | Strong | Manual |
| Release workflow | Unified | Split |
| Long-term maintenance | Lower | Higher |
Built With BridgeRust
Section titled “Built With BridgeRust” Embex Universal vector database client for Python and Node.js.
BridgeTime Rust-powered datetime toolkit with familiar Day.js/Moment-style APIs.
BridgeQ Queue toolkit with memory, Redis, and Postgres adapters.
Your Library Use BridgeRust to launch cross-ecosystem SDKs from one core.
Start Building Today
Install the CLI, scaffold your library, and ship Python + Node.js artifacts from one Rust project.