Bun FFI
Integrates native C and C++ shared libraries into Bun runtimes using high-performance foreign function interface bindings.
The Bun FFI skill equips Claude Code with expert guidance on using Bun's native Foreign Function Interface (`bun:ffi`) to bind and execute C and C++ shared libraries directly within JavaScript and TypeScript. It covers platform-agnostic dynamic library loading via `dlopen`, type mapping with `FFIType`, string encoding with null-terminators, raw pointer manipulations, struct definitions via DataViews, and bidirectional callbacks. Developers can leverage this skill to bypass Node-API overhead, tap into system-level APIs like SQLite or custom native modules, and handle low-level memory allocation safely without leaving the Bun runtime environment.