New: Introducing the Lemma MCP Server, and what we learned building it.New: Introducing the Lemma MCP Server. Read the blog post

Skip to main content

Write the Step. Bring Your Libraries.Run It Isolated.

When the next step needs more than a mapping or a single API call, write it as a function in Python or Node.js. It runs as a step of the Worker, with the libraries, browser, credentials and files the task needs, in an isolated sandbox Lemma deploys and runs for you.

Code, Where the Process Needs It.

When the next step needs more than a visual mapping or a single API call, write it. A function runs as a step of the Worker, with the libraries, browser, credentials and files the task needs, in an isolated sandbox Lemma deploys and runs for you.

In the Worker

Run custom code as a step of the Worker.

Add your function as a step wherever the process needs logic of its own. A payroll reconciliation passes its records to Python that calculates the discrepancies, and the Worker uses the result to decide whether to open a review. Lemma deploys and runs the function, so there is no server to keep.

A step like any other
A published function sits in the Worker beside the other steps; the next step reads its result.
Python and Node.js
Python 3.13 and Node.js 22 runtimes, with TypeScript editor tooling and SDK support. Go is coming soon.
A version you choose
A published version fixes the code, its inputs and outputs, and its packages; each Worker picks the version it runs.
Typed in and out
Inputs and outputs described as JSON Schema, edited as a tree or inferred from a successful test.
Libraries

Bring the Python libraries the task needs.

Declare the public PyPI packages you need and their versions. Lemma builds them before deployment, so nothing is installed each time the code runs and there is no container image of your own to maintain.

Declared, then built
Packages and versions are resolved and built before the function deploys.
pandas and NumPy, standard
Included in the standard Python runtime, for reconciling extracts or grouping transactions.
Documents and scans
A document-processing runtime with tooling for PDFs, Office documents, images and OCR.
Where it is enabled
Your own libraries are available where they are enabled for your account.
Browser automation

Automate the tasks only a browser can reach.

Some systems offer what you need only through a web page. The browser runtime runs Playwright with Chromium: open a vendor portal built in JavaScript, sign in with a credential the Worker supplies, find the report, download it and capture a screenshot, then return both to the Worker as files.

  • Pages built in JavaScript, forms and downloads, with Playwright and Chromium
  • The report or a screenshot returned as a file for the next step
  • A draft run against the real page, with a test credential
Credentials and files

Work directly with credentials and files.

A function declares what it needs by name: a credential such as payroll_api, an input file such as source_report, an output file such as exceptions_file. The Worker supplies the actual credential and file. The code reads the report from a local path, returns a small JSON summary, and writes the discrepancies to a file for the next step.

Named, then supplied
One function serves many Workers
Files by path
Read and write files, not bytes in JSON
A result and its file
A count with the CSV behind it
Integration data
Read-only, where enabled
Isolation

Run that code in an isolated environment.

Each version runs in its own container. Your code cannot be changed while it runs, it is checked before it starts, and it is stopped at its time limit; where configured, a hardened sandbox such as gVisor wraps it all. Network access follows your deployment’s policy.

  • Read-only code
  • Checked before it runs
  • Time limit enforced
  • Sandbox such as gVisor
  • Network per policy
  • Metrics per version

Python and Node.js, Ready Today.

Choose a runtime when you create a function: five ship today across Python 3.13 and Node.js 22, and Go is coming soon.

Python 3.13

Standard, with pandas and NumPy; Document Processing, for PDFs, Office documents and OCR; and Your own libraries, with the PyPI packages you declare, where enabled for your account.

Node.js 22

Standard, for JSON and async work; and Browser Automation, with Playwright and Chromium for the pages only a browser can reach. TypeScript is supported in the editor and the SDK.

Go

Coming soon to the runtime catalog.

The Last Mile,Inside the Platform.

Every real process has a step no vendor shipped. When that step is code inside the Worker, it inherits the retries, the identity, the scope, and the record the rest of the run already has, and nothing new has to be operated to run it.

Bring the Step Nobody Shipped.

See code run inside a Worker with our team.

Request a Demo