Many workflow platforms keep the workflow definition and its runtime together. Moving a workflow outside the platform often means rewriting it, which creates a second implementation that has to be maintained, tested and reviewed on its own.
Dittoly takes a different approach. An approved Flow can become a standalone TypeScript application with its own runtime, API and optional frontend. The workflow becomes the application.
To see what that means in practice, I exported a small expense approval system and ran it without Dittoly. What follows describes Dittoly 0.1 as of November 2026: the behavior I describe as tested comes from that one export, and the rest comes from Dittoly's export guide.
Why workflows should not be tied to their runtime
Some automations belong outside an internal tool: a form customers fill in, or a service another team deploys.
Rewriting the workflow by hand for those places produces a copy that can drift from what was reviewed. Dittoly generates the code from the approved version instead, so the application starts from the approved workflow definition at the time of export rather than from a hand-written copy.
From workflow to application
The example is 1 Flow with 2 steps. A form asks for a reference, a requester, an amount and a reason; a manager approves; the request is written to a table. Before approval, Dittoly read it back in plain words:
1. Manager approves: waits for an approver to sign off.
2. Record the expense: CHANGES (adds or updates) a row of the team's data table "Expenses".
I approved version 1 and opened Export an app, which admins and approvers see in the menu. I picked the Flow, chose API + simple UI, and Check what it needs listed the environment variables: tokens and a state store, but no app credentials, since this Flow calls no outside app. Then Download bundle.
What the app factory generates
The export is an ordinary TypeScript project: the Flow as code, a runtime in its own src/runtime/, a built-in UI, an OpenAPI description, a Dockerfile and a Compose file. Settings and credentials are passed in as environment variables.
The approved Flow is written out as plain TypeScript, with a warning at the top:
// Expense request, version 1: written out from the approved definition by Dittoly.
// Changing this file makes the app do something other than what was approved.
export default defineFlow({
key: 'expense-request',
version: 1,
steps: [
{ id: 'approve', type: 'approval', title: 'Manager approves' },
{ id: 'record', type: 'table', table: 'Expenses', op: 'put',
key: (s) => ref(s, 'inputs.reference'), /* … */ },
],
});
The runtime is selective. A core of engine, server and broker is always included; beyond that, this application got the state stores, because its Flow waits for a person and keeps a table, and no AI, schedule or webhook code, because the Flow has none.
| Capability | Engineering value |
|---|---|
| Standalone export | No dependency on a running Dittoly instance |
| Approved workflow as source | Less room for drift between what was reviewed and what runs |
| Selective runtime generation | Optional runtime parts are included only when the Flows use them |
| Persistent human approvals | Waiting runs are kept in Redis or Postgres and can outlast a restart |
| Module integrity check | Module code is checked against its approved SHA-256 at start, and the app refuses to start if it changed |
| Versioned exports | Each export is tied to specific approved versions |
| Several frontend frameworks | The same Flows behind React, Next.js, Angular, Astro or Vue |
| AI only where a step keeps it | The app is not designed to call a model outside the AI steps you kept |
Running without Dittoly
I built the application with Node 26 and ran it against a local Redis, with no Dittoly instance anywhere. A request through its API stopped at "Manager approves", appeared in the app's inbox, and once approved, wrote its row and finished. A call without a token was refused.
Then I stopped the application while a second request was waiting for approval and started it again. The request was still in the inbox, and approving it finished the run. Waiting runs and table rows are stored encrypted in Redis or Postgres, so they can outlast a restart or redeploy as long as that store and the app's secret are kept.
One workflow, four deployment options
| Kind | What you get |
|---|---|
| Runner | Runs the Flows on their schedules and webhooks; no API, no pages |
| Headless API | Start runs and read results over HTTP, with an OpenAPI description |
| API + simple UI | The API plus a branded web app with run forms, results and approvals, as in this example |
| Your framework | The API plus a frontend project in React, Next.js, Angular, Astro or Vue, laid out from your Flows |
For the framework option you make the layout first: Make the default layout gives a page per Flow without any AI, and Draft the layout with AI works from a short brief or a layout image. Either way the result is a page plan, not code, and a tested template renders it. Each Flow is started by holders of the app's API token, or by anyone, public and rate limited.
Preserving approval and security boundaries
Supported security and execution controls travel with the exported application. According to the export guide, module code runs in worker processes with no network and an empty environment, and outside requests go through the same broker design that allows only declared hosts. These are process-level restrictions, not container isolation, so they are meant for approved module code rather than as a defence against hostile code.
Approval still needs a person. A waiting run can send a notice with signed approve and reject links; each link opens a confirmation page first, so a scanner that only opens the link does not approve the step.
Authoring and execution stay separate. AI can help draft the Flow and its modules in Dittoly; the exported application is designed to call a model only at the AI steps you kept, with your own key, and it has no self-fixing.
Where the abstraction ends
Identity changes on the way out. In Dittoly a step runs as the person who started the run, a team account, or a teammate for that 1 step. An exported application has 1 identity, the credentials in its environment, so they should grant only what its Flows need.
Some steps cannot be exported in the current version, and the export names them per Flow: steps that build or fix code from git, browser steps, steps handed to a named teammate, and modules imported from MCP servers.
An export is a snapshot. When a Flow gets a newer approved version, Earlier exports marks it New versions available, Review shows what would change, and Download new export makes a fresh one; nothing updates itself.
Beyond workflow automation
Dittoly does not need every workflow to live inside it. Authoring, approval and execution can be separated from the infrastructure that finally runs the workflow.
Build the workflow in Dittoly, review its behavior, approve a version, and ship it as code: an application another team can deploy, inspect, maintain and own without running Dittoly itself.
Dittoly is self-hosted and Apache 2.0. The project site has the short tour, and the repository has the app-export guide.
Top comments (0)