Open source · MIT · 10 of 10 verified

Turn AI workflows into revenue

n8n SaaS Factory turns n8n workflows into deployable SaaS products. It ships a 2,739-page LLM knowledge base, a workflow analyzer, a project generator, seven agents and a 15-gate verification loop. Public repo, MIT licence, MIT-style simple pricing.

2,739
Documentation pages
19,818
Indexed chunks
1.64M
Words in corpus
11 / 14
Claims with provenance / gates passing

What's built

Every deliverable is measured by brain/scripts/verify.py. Nothing is marked done on the agent's own say.

📚

LLM Wiki

2,739 pages indexed from the GitBook source and the published llms corpus. Four levels: domain → topic → page → chunk.

🔍

Query interface

Eight test questions, IDF ranking, graded title matching and citations. Ask a question in natural language, get a sourced answer.

🧩

Workflow analyzer

Parses 12 n8n workflow JSON files. Detects triggers, AI agents, models, tools, credentials, complexity and data flow.

⚙️

SaaS template

Next.js 14, Clerk auth, Stripe billing, Supabase RLS, n8n REST client. A signed webhook handler. tsc and next build pass.

🤖

Seven agents

explorer, researcher, architect, implementer, verifier, reviewer, runner. Every role ran a sample task and produced a real artifact.

🔒

Verification gate

14 automated gates. Verdict-first output, non-zero exit on failure. Site, backlog and repo description fail the gate if they drift.

See your share of AI search

The wiki answers questions with citations to the exact n8n docs page. Each answer names the source URL, the section and the related workflow.

Question: “how do I paginate API results?” → top hit is the HTTP Request node pagination docs. Question: “queue mode redis scaling” → the queue-mode guide. Eight questions run on every gate.

Read the CLI reference

Find out why n8n workflows fail

The analyzer reports the trigger, the AI agents, their models and tools, the credentials and a complexity score from 1.5 to 9.0. It found five AI agents across the 12 documented workflows.

Steps to your own SaaS

Four commands take a cold machine to a verified answer over 1.64 million words of n8n documentation.

1 · Clone

git clone https://github.com/homgorn/n8n-saas-factory.git

2 · Get the docs

git clone --depth 1 https://github.com/n8n-io/n8n-docs.git n8n-docs-source — about 52 MB, read-only reference.

3 · Build and verify

python brain/scripts/forge.py build then python brain/scripts/verify.py → VERDICT: PASS, 14 gates.

4 · Ask and generate

python brain/scripts/query.py ask "…" and python brain/scripts/generator.py --all -o generated-saas → 12 projects.

More customers from AI search. We do the work.

One workflow analysis becomes a complete Next.js project with auth, billing, database and a signed n8n webhook endpoint.

The generator produced 12 projects, 23 files each, and a generated project passed npm install and tsc --noEmit. The template itself passed next build and five Playwright smoke tests against a live dev server.

One go, start from scratch

No API key, no account, no deployment needed to check the claims: clone, build, verify. The published corpus is fetched over HTTPS with the standard library.

Numbers you can defy

Every number on this page is generated from the database and the feature list; a gate fails when it drifts.

MetricValueVerified by
Documentation pages2,739forge.py build
Chunks19,818corpus floor gate
Words1.64Mwiki stats
Importable workflows12analyzer gate
Generated SaaS projects12tsc on a generated project
Verification gates14verify.py
Features measured10 / 10feature_list.json

What the pipeline found, not what it promised

These are the defects found by running the checks — not by reading the code.

WinError 32

A stale WAL sidecar held the SQLite file on Windows. Fixed by clearing sidecars before recreate.

Flat title boost

“Cisco Secure Endpoint” outranked the Webhook page. Replaced with graded title matching and length normalisation.

Unsigned webhook

The SaaS template accepted unsigned payloads in development. Now fails closed unless explicitly opted in.

Stale numbers

The site claimed 1,348 pages after the corpus doubled. Counters are now generated and gated.

Simple pricing, everything included

The project is public and MIT-licensed. The three plans below describe self-hosting effort, not a payment wall.

Free

$0

Clone and verify locally

  • Full wiki, 2,739 pages
  • Analyzer and generator
  • 15 local gates
  • MIT licence
Get started

OEM

Contract

n8n's separate commercial agreement

  • Only if you embed the editor
  • Negotiate with n8n directly
  • ~$50k/yr reported, unconfirmed
  • Not required for our path
Read ADR-002

Questions, answered.

Short factual answers first; details live in the linked pages.

Do I need an OpenAI key to use the wiki?

No. Retrieval is SQLite FTS5 with IDF and graded title matching. Vector embeddings are optional and not wired.

Does this host n8n for me?

No. n8n's licence forbids providing it to third parties for profit. The customer runs their own instance; our product is the layer above it.

Why is the repo description different from the gate count?

The self-referential gate that reads the counter is excluded from the stated number, so adding that gate does not change what it states.

Where do the contacts go?

homgorn — github.com/homgorn, company Refertur, Telegram @realhikaz, location Earth.

Can I regenerate the site?

Yes: python brain/scripts/update_site.py rewrites both landing pages, the repo description and the CLAUDE.md state block from the measured facts.

Grow your share of AI answers

Start with the wiki. Verify with the gate. Generate the SaaS.

View the repository