WORKFLOW ENGINE
Flows is a serverless workflow engine that lets you write code in Python or JavaScript, deploy it with a single API call, and trigger it from anywhere. Every flow runs in an isolated container, scales automatically, and tracks its own analytics. No infrastructure to manage. No servers to babysit. Just code that runs when you need it to.
WHAT FLOWS CAN DO
Write flows in Python or JavaScript. Each runs in its own isolated container with full dependency support.
Every deploy creates a new version. Roll back instantly. Compare versions side by side.
Start flows from an API call, a webhook, a schedule, or let an AI agent decide when.
Get results immediately or fire and forget. Async flows deliver results when ready. You choose the mode per execution.
Store API keys and credentials per-user. AES-encrypted at rest, decrypted only at runtime inside the sandbox.
Success rates, p50/p95 duration, execution counts. Per-flow and platform-wide dashboards.
HOW IT WORKS
Python or JavaScript. Import any library. Use your own packages.
One API call. Automatic versioning. Zero downtime.
API, webhook, schedule, or let an agent decide.
Execution logs, analytics, error tracking. All built in.
from masonry import flowsflow = flows.deploy(name="onboard-customer",language="python",entrypoint="main",source=open("onboard.py").read())print(flow.version) # v3
result = flows.run(flow_id=flow.id,input={"customer": "Acme Inc"},mode="sync")print(result.status) # "success"print(result.duration) # 1.2s
MARKETPLACE
Package your flows and blocks as products. Sell them on the Masonry Marketplace with Stripe Connect payouts. Set your own pricing. Buyers get one-click installs.
WORKS WITH
Deploy your first workflow in minutes. No credit card required.