Use Rust Crates from TypeScript

Instantly package any crates.io crate into a native Node.js module via napi-rs. Search, build, download — all automated.

npm install -g @tsffi/cli
regex serde_json openssl-sys libsqlite3-sys zlib-sys ring tokio
"compress files" "encrypt password" "parse JSON" "hash sha256" "database sqlite"
tsffi install sha2 # Install a crate as native module
tsffi search "hash sha256" # Find crates by natural language
tsffi list # List available packages
0
Packages Built
Auto
Background Build
CLI
tsffi install
// After install, import and use directly import { sha256 } from '@tsffi/sha2'; const hash = sha256('hello world'); console.log(hash); // Native Rust performance