Skip to main content

Installation

Requirements: Node.js 18+, ESM or CommonJS

NullBridge class

Constructor


nb.init()

Validates the license and starts background services. Call once on application startup.
Throws: NullBridgeLicenseError if the license is invalid or expired.

nb.shutdown()

Gracefully shuts down — flushes logs, stops heartbeats and license watchers.

nb.getLicenseInfo()

Returns the current license data.

nb.getVersion()

Returns the SDK version string.

nb.agents

nb.agents.register(agent)

Registers an AI agent with NullBridge. The agent will appear in the Agent Registry and SIEM events will be logged.
Parameters: Returns: Agent object with id, name, status, and registration details.
If an agent with the same id already exists, it will be updated rather than duplicated.

Available scopes


Agent tiers

Agents are automatically assigned a tier based on their scopes and risk profile:

Error types


CommonJS usage