Skip to main content

Runtime Configuration

There are a couple of relevant fields related to how your node should run.

Open Node Protocol Architecture

Environments

Determine the execution environments in which this node can run in. This is important because it determines what nodes can be run on a specific assembly. For example, if a user is building a backend pipeline, browser-only nodes cannot be run in that assembly.

  • browser: Execution of this node is limited to browser-based environments. Usually when your node is a visual node that renders some HTML element, a browser is required, and would be a browser-only node. Examples: Text Field, Image Gallery, Button, etc.
  • js-runtime: Execution of this node is limited to non-browser environments (e.g. Node JS) and cannot be run in a browser.
  • browser|js-runtime: Execution of this node is allowed in either browser or js-runtime environments. Usually when your node is a simple javascript function, it can run in the backend or the frontend (in the browser).

Sandbox

This field determines the isolation strategy for the node. Currently, this field mostly only affects browser nodes.

  • browser.shadow: Node will be executed within a browser's ShadowRoot.