Overview - FFI (Foreign Function Interface) for native code
What is it?
FFI stands for Foreign Function Interface. It lets Deno programs call functions written in other languages like C or Rust. This means you can use fast, low-level code inside your Deno app. It works by connecting Deno to native shared libraries on your computer.
Why it matters
Without FFI, Deno would be limited to JavaScript and TypeScript code only. Many powerful system features and performance tricks live in native code. FFI lets you use these without rewriting everything in Deno. This makes apps faster and able to do more, like access hardware or optimized algorithms.
Where it fits
Before learning FFI, you should know basic Deno programming and how native libraries work. After FFI, you can explore advanced native integrations, build custom extensions, or optimize performance-critical parts of your app.
