2026-11-26 15:39 UTC

Lee Nathan releases self-hosted Elixir workflow engine for agent-built automations

state: seedheat: mediumuncertainty: mediumrelevance: highagent-workflows workflow-engines inference-infrastructureLee Nathan

What is this?

PurpleFlow is an early, MIT-licensed, self-hostable workflow engine created by AI enthusiast and automation engineer Lee Nathan. Announced through a Show HN post on November 20, 2026, it is built with Elixir/OTP on the BEAM and stores workflows as human-readable TOML files intended for agents to create and modify. Its repository describes a web UI for managing workflows and credentials, integrations through HTTP, SSH, and Postgres, and sample multi-agent swarm workflows. Nathan says he has used it in production for almost two months. The project and performance figures are supported here by Nathan’s own README and HN post; no independent validation is supplied.

Why it matters

PurpleFlow explores a different design for agent automation: instead of relying on a large visual catalog of connectors, agents write simple workflow files and call APIs, while a lightweight BEAM runtime handles concurrent executions. If the project’s author-reported efficiency holds up in broader tests, this could make self-hosted, high-concurrency agent workflows cheaper to run and easier to package or distribute. The trade-off is a less visual authoring experience and greater reliance on agents and API knowledge; maturity and security also need scrutiny.

Current assessment

New: Lee Nathan announced PurpleFlow on Show HN on November 20, 2026, linking directly to his GitHub repository. The repo presents it as his own AI-assisted project, a minimal Elixir/OTP alternative to n8n, with MIT licensing and Docker Compose deployment. Workflows are TOML files that people or agents can edit; the UI manages runs, files, and credentials. The repo includes HTTP, SSH, Postgres, and code steps, plus a sample recursive multi-agent swarm. Nathan says he has used it in production for nearly two months and reports that 10,000 one-second jobs ran concurrently in about 3.2 seconds under 512 MB, compared with n8n using 2 GB for 100 equivalent jobs. These are first-party claims and the supplied evidence contains no independent reproduction; the HN text also cites about 330 MB in its benchmark while the case study and README headline 512 MB. Treat the comparison as suggestive, not established. The product’s distinctive bet is that agents can generate readable, version-controlled workflows without a visual drag-and-drop builder or extensive connector library, potentially lowering infrastructure costs and enabling self-hosted automation or SaaS built on top. The author’s README acknowledges an unresolved risk: code-node scripts in the runner sidecar may interact with one another, particularly where plaintext secrets are passed. Early-stage adoption, operational reliability, security under real workloads, and benchmark comparability remain open questions.

Measured heat

now 0 pts/hpeak 8 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 169h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-19 14:24 (minted)⭐ origin echo-reconstructedThe repository README is the originating artifact; it presents PurpleFlow as Lee Nathan’s own project and says, “So I architected PurpleFlow
Lee Nathan (@leetheguy) on github (echo) · attributed from hn.story.50560170 · published time unknown
—
11-19 13:57first on hacker news · published · lag ?Show HN: Purple Flow – AI-first n8n alternative, 10k+ workflows on 512MB
leetheguy
—
11-19 13:57amplified on hacker news 👑hn.story.50560170
leetheguy
peak 5 · 4 comments · 100% of case engagement
11-19 14:20our radar first saw it · lag ?discovery anchor: hn.story.50560170—
pace: p55 vs 2096 stories at the 168h mark (now 169h old) — ahead of ai-screening-for-visa-document-fraud (1.1x), behind biscotti-selfhosted-imessage-agent (0.9x)

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnShow HN: Purple Flow – AI-first n8n alternative, 10k+ workflows on 512MB
Retrieved article excerpt

Open article · Retrieved 2026-11-19T14:22:32.143248+00:00

# PurpleFlow

[CI](https://github.com/leetheguy/purple_flow/actions/workflows/ci.yml) [Coverage Status](https://coveralls.io/github/leetheguy/purple_flow?branch=master)

[Elixir 1.20](https://camo.githubusercontent.com/d9dddf574dca1cf365b63994e956f63768a83b94fdeb61153f7ad28f02a84b3d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f656c697869722d312e32302d707572706c652e737667) [License: MIT](https://github.com/leetheguy/purple_flow/blob/master/LICENSE)

[AI automation engineer for hire](https://leenathan.com)

PurpleFlow makes building automated workflows as easy for AI as n8n makes
it for people.

It was also designed to build and orchestrate AI swarms that build and orchestrate AI swarms. (see the samples)

And it even has a dark mode in the UI!

## [Live demo](https://leenathan.com/demo)

## [Discord](https://discord.gg/USwqPgBpYY)

[A screenshot of the PurpleFlow Canvas](https://github.com/leetheguy/purple_flow/blob/master/image-1.png)
[A screenshot of the PurpleFlow UI](https://github.com/leetheguy/purple_flow/blob/master/image-2.png)

## Human written intro

Hi! I'm Lee Nathan. I'm an AI enthusiast, an automation engineer and an AI-assisted software architect. And this is Purple Flow, a project that perfectly encapsulates all three. If you know someone who could use my services, I'd love to talk.

<https://leenathan.com/>

</shameless\_plug>

---

I love n8n with all of my heart. It's an amazing tool that's quick to
learn, quick to master, and so fun and easy to build with.

But, like every solution at all ever, it has its limitations. For me, those
limitations looked like:

- Stripped down AI Agent output (I want the full OpenAI JSON please)
- Limited streaming ability
- AI reasoning challenges (not much training data as most tutorials are
  video; MCP can be confusing for light models)
- Latency issues
- No self-hosted middle rungs between "just me" and business for
  (currently) $960 per month
- No Git version control without enterprise
- Scalability and licensing challenges (can't easily turn your solution
  into a SaaS or sell it)

### Origin story

So I architected PurpleFlow and built it using AI-assisted development.
It's a minimal, first-principles reimagining of n8n made with Elixir. It
was built from scratch using OTP efficiency and reliability.

Doing so means I can run 10,000+ concurrent workflows on 512MB of RAM. It
means that PurpleFlow is 200x as memory efficient as n8n.

[docs/n8n\_case\_study.md](https://github.com/leetheguy/purple_flow/blob/master/docs/n8n_case_study.md)

### What reimagining means

The BEAM is a battle tested VM designed to manage as many processes as
possible within memory constraints. And it does so highly efficiently by
keeping those processes as small as a few KB each.

OTP is a standard and a collection of tools for managing BEAM processes. It
was used in the 90s to maintain 99.9999999% telephone network uptime.
Network-wide annual outages were counted in milliseconds.

Elixir is the current language of choice built on the BEAM VM with OTP.
Discord relies on Elixir to maintain their own often 100% uptime months.

I chose to build PurpleFlow on Elixir to take advantage of the concurrency,
memory savings, and speed of Elixir and the Beam VM.

PurpleFlow nodes load in their own processes, meaning that each one is fast
and light thanks to the BEAM VM and capable of failure without crashing the
app thanks to OTP. Simple workflows complete in single-digit millisecond
time.

I believe that PurpleFlow's approach makes it the best suited tool for
agentic swarms and complex automations that run even more efficiently than
SaaS apps compared to JavaScript and Python-based solutions.

### How it works

All the workflows and nodes are plain-text TOML files. Easy for agents to
reason about while still being human readable.

Most n8n nodes are convenience wrappers for APIs. Many of them don't cover
every use case and you need to drop down to http requests anyway. AI can
easily look up APIs and generate http requests for them, so no convenience
wrappers are needed. Here's what you get instead:

- triggers
  - webhook
  - cron
  - manual
- nodes
  - http - your trusty http request node
  - ssh - run commands on other machines (and send or fetch files)
  - postgres - only one db for now; but http can cover anything with a REST
    interface
  - code - just a reference to an actual .exs code script
  - batch - gathers items into groups for bulk work
  - wait - pauses each item for a while or until a time
  - respond - answers the webhook early while the run keeps going
  - noop - does nothing, on purpose
  - workflow - calls sub-workflows to keep things tidy and reusable
  - if/else - except not really a node; flow control is a natural part of
    workflows

### Getting started

Details are in the AI written section, but here's a more human friendly
summary of how to get started.

1. Clone the repo.
2. Inside the repo, copy `.env.example` to `.env` and fill in the fields.
   - If you're behind Cloudflare or another proxy, set
     PURPLEFLOW\_CLIENT\_IP\_HEADER. Without it, three failed sign-ins lock
     everyone out.
3. Make the workflows folder its own repo: `git init workflows`.
   - This lets you version control and protect your workflows.
4. Copy AGENTS.md from samples to `workflows`
   - Optionally copy the samples as well to help you and your favorite
     agent get your heads around the nitty gritty.
5. Run `docker compose up -d --build`
6. Visit `localhost:4000` (or your `PORT`) and sign in with your
   `PURPLEFLOW_ADMIN_USERNAME` and `PURPLEFLOW_ADMIN_PASSWORD`.
7. Send your friendly neighborhood agent to `yourdomain.com/agents`.
   - If you choose to connect with MCP, use `yourdomain.com/mcp`
   - Otherwise, it will then want the `PURPLEFLOW_AGENT_TOKEN`.
   - With that token comes great power; remind your agent to be responsible.
   - (Muse has a dedicated system to keep the token out of your agent's
     hands and it works well with PurpleFlow; just sayin')
8. Your agent can now build workflows that connect anything to anything,
   just like n8n, Make, Zapier, and friends.

### Where are the connectors?

The one catch is that you don't have a bunch of convenience nodes for
connectors. But with AI, you don't need them. Just have your AI look up
whatever API you want to access and create your workflows.

I like using this simple pattern:

- AI calls endpoint with consistent params: {"body": {"endpoint":
  "list\_all", "verb": "GET/POST/PUT, etc.", "parameters": {}}}
- A normalizer code node deciphers the request body and returns the
  expected fields as variables.
- The http request slots the variables into place.

Doing it this way avoids complex routing and building out 500
workflows/sub-workflows to match a single API.

You can create credentials (useful for any data you want kept private) in
the web interface. Pass your agent the credential name for it to use in
your flows.

Imported a pile of workflows? When they use credential names that don't
exist yet, a **Create N missing** button appears under the search box on
`/credentials`. It makes an empty credential for each one, described
with the workflows that need it, so you only have to fill in the values.

Credentials can also be OAuth logins (Gmail, Google Drive, and friends).

A credential is a **String** (one line, the default) or **Text**, a box that
keeps line breaks, for values like SSH private keys and certificates.

### Lazy load your skills

I'm a fan of MCP in concept, but not in practice. Many services load an MCP connection with a ton of tools and don't think about an AI's capabilities when creating them.

I've seen a connector with 70+ tools that were often dependent on collecting data from one to call another. And that process wasn't always cleanly spelled out in the skill sheets.

I had been using Sonnet 4.6 successfully for all kinds of agentic work. But it choked on that MCP.

(All that being said, Purple Flow **does** offer an MCP connector for compatibility. But it was designed to be as simple as possible. I recommend that if you connect with it, you still lazy load your skills instead of relying on a ton of MCPs.)

And that's why I prefer lazy loaded skills.

I have a database table full of 50+ skills. Each skill matches the name of a workflow exactly. The skills all work independently of each other. The skill tells the agent what the workflow does and what it needs to operate. And all workflows use a single params object so agents don't need to reason through special instructions for each one.

- skill name: my-skill
- endpoint: /hook/my-skill

To kickstart this, I feed an agent an onboarding skill with information on how to access the skills table and how to use skills in general. I also inform it to look at the list of skills, so it knows what it can do.

That's it! Send your agent one tool and inject one light skill in the system prompt. The agent can call that tool to dynamically load any workflow by the name of the skill.

Keep your sessions short and lazy load your skills to keep your agents sharp and avoid context rot.

### Security

PurpleFlow is still early, but security is of the utmost concern.

Before announcing Purple Flow, I ran a post-mortem on N8N's struggles with
security and other issues over the years. With AI's assistance, I had
already foreseen and built protective measures that would have solved many
of their early issues before the research. Afterwards, PurpleFlow was
hardened to address several others.

Workflows are stored and versioned locally. A Docker sidecar running [Dufs](https://github.com/sigoden/dufs) has access to the workflows folder and
makes it available to agents and the web UI. That sidecar has no port and
no access to the internet or the rest of the docker network and it wants
the agent token even from inside that network. It's only reachable through
an API endpoint with the agent token and the Web UI or the (more secure) MCP bridge.

Code nodes are pure Elixir. They also run in a dedicated sidecar with no
outside access, no internet, no database, no credentials, and read only
access to their own file systems. They also can't mount workflows.

Credentials are encrypted in Postgres with `PURPLEFLOW_SECRET_KEY` and
unavailable to either of the other sidecars.

Any secrets passed as plain text risk exposure and no level of security can
help you there.

The largest unresolved security issue I encountered was that code node code
can potentially interact with other code node code within the sidecar. That
can be a major issue if someone is passing text secrets and other node code
sees them. All the solutions I thought of to address this issue required
more memory or slowed down the app. At this time, I consider efficiency
over a small, hard-to-exploit security hole to be the path forward.

### Samples

Samples are included to help you get started. Here is the current list of what they do:

- announce the size of numbers in an array
- send an email
- create a recursive agentic swarm framework with agents with internal and external worlds that allows agents to spin up child agentic swarms by generating JSON files
- grab some mock user data
- turn ing words into ong words - ping to pong, ding to dong, fling to flong

### Free as in free beer

I built the basis of this application in 4 days with Opus 5.5 using $80 in
free credits that Anthropic gave me to try Claude Cloud. Have at it. I'm
not trying to profit off of this. It's under MIT. Do what you want.

Because you own everything, you can build full workflows for distribution
to clients. And you can manage version control however you like.

Because this is built on the BEAM VM, you can scale your workflows to tens
of thousands of simultaneous executions with less than 1GB of RAM. That
means you can turn a convenient personal tool into a paid SaaS if you want.

## AI written intro

A barebones n8n on Elixir/OTP. Workflows are TOML files in git.

```
trigger (webhook 
leetheguy54
🟧 echo.github ⭐The repository README is the originating artifact; it presents PurpleFlow as Lee Nathan’s own project and says, “So I architected PurpleFlowLee Nathan (@leetheguy)——

Interpretation history

Decision trace