with “node:ffi” you can:
- work with pointers, structs crossing js/c boundary
- call os apis (linux perf_event_open, windows etw, not exposed by node.js) to capture cpu cycles, cache misses, branch prediction without spawning subprocesses
- hook into eBPF or kernel trace points via native syscalls, avoiding overhead of spawning perf or strace
- access timers and performance counters in tight loops without the penalty of child processes or ipc
….. imagination is yours
Node.js 26.1.0 is out, with a new `node:ffi` module, `crypto.randomUUIDv7()`, and many more features and bug fixes.
Full changelog and download links:
nodejs.org/en/blog/release/v…