Back to modules
v0.1.53

tinysystems/js-module

View Source

Container Image

europe-west2-docker.pkg.dev/tinyplatform/tinysystems/js-module-v0:0.1.53

Components 1 available

J

js_eval

JavaScript evaluation (ECMAScript 5.1 + ESM imports). Script must export a default function: export default function(inputData) { return { result: inputData.value * 2 }; }. The function receives inputData (configured via edge) as its only argument. The return value becomes outputData on the response port. Context is NOT available inside the script — it passes through automatically from request to response. Use scenarios to define the output schema for downstream edge validation.

Release Notes

Tiny Systems JS Module

JavaScript evaluation engine for inline scripting within flows.

Components

Component Description
JS Eval Execute JavaScript (ES5) with ESM module support over HTTP

Installation

helm repo add tinysystems https://tiny-systems.github.io/module/
helm install js-module tinysystems/tinysystems-operator \
  --set controllerManager.manager.image.repository=ghcr.io/tiny-systems/js-module

Run locally

go run cmd/main.go run --name=js-module --namespace=tinysystems --version=1.0.0

Part of Tiny Systems

This module is part of the Tiny Systems platform -- a visual flow-based automation engine running on Kubernetes.

License

This module's source code is MIT-licensed. It depends on the Tiny Systems Module SDK (BSL 1.1). See LICENSE for details.