Skip to main content

Code Configuration

The Source Code of a Node is any part of the Node's specification that contains executable software instructions in the form of a supported programming language. When a Node is used the source code is interpretted and run to produce the Node's output. Additionally, as the Node is interacted with, the source code can respond to the changes in the Node and produce different output. Some Nodes require no source code while other require a little source and still others require lots of source code. It all depends on what the objective of the Node is.

Supported Languages

Currently Openexus supports the following languages for source code:

  • JavaScript
  • TypeScript
  • Python (Coming Soon!)

Frameworks

In addition to supported languages, some languages also have specific frameworks that work with Openexus. For example, you can write your Node's Source Code in JavaScript using the React framework. This means that the Source Code supports the language and framework you are most comfortable using.

Using a Framework is mostly only useful when creating a Node that has a UI component to it and takes advantage of these UI frameworks.

Currently the following frameworks are supported within the following languages:

  • JavaScript & TypeScript
    • Vanilla (Standard JS/TS without framework)
    • Solid
    • React
    • Vue
    • Svelte

Openexus SDK

In order to interact and work within Openexus your Source Code will need to use the Openexus SDK. The SDK defines a series of Types, Objects, Functions, etc, as appropriate to the language of choice, that are used to manipulate the Node and its surrounding instances.

The SDK is its own section of this documentation and further broken down by language of choice. Please visit the SDK sections below to learn more about all the SDK calls.

Whenever possible Openexus has attempted to make the SDK as similar as possible across languages; however, this is not always entirely feasible and differences and nuances may exist between them.