No description
  • Python 82.5%
  • TypeScript 11.8%
  • Just 4.4%
  • Dockerfile 1.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Eddy Hintze e397a67311
All checks were successful
Tag & Publish / tag-and-publish (push) Successful in 4s
feat: add tag and publish workflow for PyPI
2026-03-07 08:54:47 -05:00
.forgejo/workflows feat: add tag and publish workflow for PyPI 2026-03-07 08:54:47 -05:00
fw_nodes_code fix: update Python default code comments for clarity and refactor user code execution 2026-03-06 17:29:34 -05:00
js-sandbox Refactor code execution context to use node results instead of input data across multiple files 2026-03-01 17:43:28 -05:00
py-sandbox fix: update Python default code comments for clarity and refactor user code execution 2026-03-06 17:29:34 -05:00
tests Refactor code execution context to use node results instead of input data across multiple files 2026-03-01 17:43:28 -05:00
.gitignore Initial commit 2026-02-09 19:39:01 -05:00
justfile Initial commit 2026-02-09 19:39:01 -05:00
LICENSE Update copyright year in LICENSE and fix flowire-sdk version in pyproject.toml 2026-02-26 23:28:58 -05:00
pyproject.toml fix: update Python default code comments for clarity and refactor user code execution 2026-03-06 17:29:34 -05:00
README.md fix: add PyPI version badge to README 2026-03-05 20:30:20 -05:00

Flowire Code Nodes

PyPI version

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