Skip to main content
The nono Node.js SDK provides native bindings to the nono sandboxing library, enabling you to apply Landlock (Linux) or Seatbelt (macOS) restrictions from within your JavaScript or TypeScript applications.

Key Features

Capability-Based

Define exactly which filesystem paths and network access your application needs

OS-Enforced

Restrictions are enforced by the kernel, not userspace — they cannot be bypassed

Irreversible

Once applied, the sandbox cannot be weakened or removed for the lifetime of the process

Zero Dependencies

Native Rust code compiled to a single .node binary with no runtime dependencies

Platform Support

Installation

Quick Example

Architecture

The SDK wraps the Rust nono crate using napi-rs, compiling to a native Node.js addon. This provides:
  • Performance: Native Rust code with zero JavaScript overhead for sandbox operations
  • Safety: Memory-safe Rust implementation with proper error handling
  • Compatibility: Works with Node.js 22+ on supported platforms

API Overview