Skip to main content

Code execution nodes for Flowire workflow automation

Project description

Flowire Code Nodes

Code execution node package for Flowire workflow automation.

This package is intentionally separate from fw-nodes-core so servers can opt into code execution support by installing this package.

Installation

cd flowire-app/backend
uv pip install fw-nodes-code

Enable it in your .env file:

INSTALLED_NODE_PACKAGES=fw-nodes-core,fw-nodes-code

Included Node

Node Description
Code Execute JavaScript or Python code in an isolated sandbox

The node supports a runtime input (default latest) so you can route different versions to different sandbox services (for example 3.13, 3.9, 20).

Sandbox Services

This package includes the sandbox runtimes used by the Code node:

  • js-sandbox/ - JavaScript sandbox (isolated-vm + Fastify)
  • py-sandbox/ - Python sandbox (FastAPI + subprocess execution)

Local sandbox commands

cd fw-nodes-code
just js-sandbox-install
just py-sandbox-install
just js-sandbox
just py-sandbox

Environment Variables

  • CODE_NODE_SANDBOX_URL_MAP - JSON object mapping runtime keys to sandbox URLs.

Example:

CODE_NODE_SANDBOX_URL_MAP='{
  "javascript@latest":"http://localhost:3100",
  "javascript@20":"http://localhost:3110",
  "python@latest":"http://localhost:3200",
  "python@3.13":"http://localhost:3213",
  "python@3.9":"http://localhost:3209"
}'

Runtime keys are resolved as:

  1. {language}@{runtime} (for example python@3.13)
  2. {language}@latest
  3. (no fallback route; configuration must exist in the map)

If CODE_NODE_SANDBOX_URL_MAP is not set, defaults are used:

  • javascript@latest -> http://localhost:3100
  • python@latest -> http://localhost:3200

Development

just install
just js-sandbox-install
just py-sandbox-install
just js-sandbox
just py-sandbox
just test
just lint

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fw_nodes_code-0.0.1a1.tar.gz (35.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fw_nodes_code-0.0.1a1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file fw_nodes_code-0.0.1a1.tar.gz.

File metadata

  • Download URL: fw_nodes_code-0.0.1a1.tar.gz
  • Upload date:
  • Size: 35.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fw_nodes_code-0.0.1a1.tar.gz
Algorithm Hash digest
SHA256 6f225affa7f16ee87a3cee7ee292d35f9a1d90272b623aa8628719a83dd228e1
MD5 cd4859da90bcbf11b1dc34b231cf8da1
BLAKE2b-256 b9872b777c7376d8efed5fca875736e324803066552898abc578c6a69a2df639

See more details on using hashes here.

File details

Details for the file fw_nodes_code-0.0.1a1-py3-none-any.whl.

File metadata

  • Download URL: fw_nodes_code-0.0.1a1-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fw_nodes_code-0.0.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 58bdf424830a1b72a74cf7757c7af95fb4d45444aba6529c6c460e0b1d3dd207
MD5 52a9e84d1b97e8c0837eca78f4b06406
BLAKE2b-256 59bbcb9ff244b158dc624a6227f8048e0909da3c33e334b42344a70117fd9a7d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page