JavaScript/TypeScript Overview
Openexus is designed to use the language you want with the framework (or not) of your choice. As such, creating nodes in Openexus is mostly programming language and framework agnostic.
JavaScript and TypeScript are both fully supported by Openexus, including a complete API, a variety of popular frameworks, and suppport for external packages from NPM.
Supported Frameworks
Openexus support for JavaScript/TypeScript allows for the optional usage of several popular open-source JavaScript/TypeScript frameworks. You may choose which framework to use from the list of supported frameworks below.
It should also be noted that Openexus supports ANY framework you might want to work with, so long as we support the underlying programming languages. We provided a number of helpers and documentation for the most common frameworks, but any framework that renders to the DOM and HTML is perfectly fine with us.
The Framework you choose will dictate the way your node is setup. Please see the Frameworks section documentation for more details.
While using a framework may be helpful for some, it is entirely optional as Openexus supports standard Javascript/TypeScript, HTML, CSS, and DOM manipulation.
For JavaScript and Typsescript nodes, Openexus suports the following frameworks:
Node Structure
The following illustrates the recommended file and folder structure for a node.
./
manifest.yaml
properties.yaml
src/
main.js
Component.js
utils.js
Entry Point
All nodes must have a main
file. This is the code which is run when the node is instantiated. It can reference other files and the like, but all the logic starts here. By default, we look for the main entry point file at src/main.*
.