One service name in, one tested integration out
The pipeline is a single workflow of 95 steps. It reads about the target service, plans the integration, writes the code in parallel pieces, pushes it to GitHub and waits for the automated checks. If the checks fail, it reads the error log, writes a fix and tries again. Nothing is published until the checks pass and I approve it.
Two ideas make it more than a code generator. It has a memory: every build is stored in a vector database, and each new build starts by recalling the most similar past ones. And it repairs itself: a failed build is treated as information, fixed, and written down so later builds avoid the same mistake.
The screens below are the real workflow, a real run and its real output: the Kraken exchange integration, rebuilt in December 2026. Server addresses are hidden in the workflow screens. Nothing else is altered.
The workflow: 95 steps on one canvas
Built in n8n, the same platform the integrations are for
Each box is one step: a call to an AI model, a piece of code that checks or reshapes the result, or a request to GitHub, the project database or the vector store. Click any screen to enlarge it.
Build memory: each build starts from what earlier builds learned
Retrieval-augmented generation, applied to the pipeline's own history
An AI model starts every job knowing nothing about the last one. Left alone, it makes the same mistake on build 100 that it made on build 1. The fix is a memory it can search. A vector database stores text as a list of numbers that captures meaning, so the pipeline can ask for "builds similar to this one" instead of matching exact words.
- Describe the job. The service name, category and description become a 1,536-number vector (Voyage AI).
- Recall. The vector database (Qdrant) returns the five most similar past builds above a similarity score of 0.65. A new crypto exchange finds other exchanges.
- Inject. Their lessons go into the research prompt: how similar services sign requests, what broke, what had to be repaired.
- Store. When the build finishes, its own record goes back in: the lessons about this API, the build time, whether the checks passed, and what each repair taught.
What the pilot build remembered
About the API
Private endpoints need a signed request with a strictly increasing counter. Request bodies are form-encoded, not JSON. The API can return a success status with an error inside it.
About its own build
Checks: green. Repairs: 2. Lesson one: a doubled comma between generated blocks leaves a hole in a list. Lesson two: an error object must carry the API's own message.
One record per repository
A rebuild replaces the old record instead of adding a copy. The first version of the pipeline did not do this, and stored the same two boilerplate lessons on all 223 records.
Self-repair: a failed build is read, fixed and remembered
Up to three repairs per build, each one a small patch
Generated code often has small faults: a stray character, a type the compiler rejects, a test that expects the wrong shape. A person would read the error, change two lines and move on. The repair loop does the same, and asks the model for exact find-and-replace edits instead of a rewritten file, so a fix cannot quietly change code that already worked.
A run: watching a build go through
The slow steps are the AI calls. Everything between them takes milliseconds
The result: a package anyone can install
Kraken exchange | 8 resources, 53 operations, 166 tests
What comes out is an ordinary open repository and an ordinary npm package. Everything in these screens was written by the pipeline, apart from the release note.
The catalog, and what I found when I audited it
162 packages published. Half of them could not load
I built the first version of this pipeline in 2024 and used it to publish 162 packages. When I came back to it in December 2026, I downloaded every one and checked it against what it claimed to contain before rebuilding anything.
What the audit found
- 81 of 162 packages could not load. Each package tells n8n where its files are, and in 81 those files were missing. In 77 the cause was the same: the service name had a space in it, so the file was written to one path and declared at another.
- The tests never ran. The old automated check compiled the code but skipped the tests, so a broken package still got a green tick.
- The memory held nothing useful. 223 records with two distinct lessons between them.
- Failures were silent. Steps were set to continue on error, so a run could report success after pushing nothing.
What version 4 changed
Rules in code, not in prompts
File paths, package settings and build configuration are written by ordinary code after the model finishes, so a space in a name cannot break a package again.
Checks that can fail
Every push is built and tested. Publishing is a separate, gated step.
Fail loudly
Database lookups and GitHub pushes now stop the run when they fail.
Respect hand-written work
A guard refuses to overwrite a repository I built by hand unless I force it.
A cap on scope
An uncapped trial covered 21 areas of one API and took 18 minutes. Builds are capped at eight, which brought the pilot to about 8 minutes.
Do not duplicate n8n
Four services in the catalog now have official integrations built into n8n. The rebuild skips them.
So far one package, the Kraken exchange, has been rebuilt and republished through version 4. The rest of the catalog follows, a few at a time, so each build can draw on the lessons of the ones before it. A later check found one more fault in that pilot, described in Part 7.
From pipeline to product: a node built to order
December 2026 | private preview, test payments only
A pipeline that only I can run is a tool. In the first days of December 2026 I moved it onto my own server and put a small web application in front of it, so that someone who has never seen the workflow can order a node for the API they use, pay a fixed price, and download it.
The product sells the service of building a node. The workflow itself never leaves my server: the customer site can only ask it for three files from that customer's own repository.
What a customer does
- Name the service. Its name and a link to its API documentation.
- See what can be built. The pipeline researches the API and returns a menu of areas and operations. Nothing is built yet.
- Choose the scope. The customer ticks the operations they want, chooses a license and the owner name that goes in every file, and sees a fixed price.
- Pay. Stripe Checkout. The amount paid is checked against the quote on the server before anything is built.
- Wait about six minutes. The same pipeline builds exactly the chosen scope into a private repository, runs the checks and repairs failures.
- Download. An installable package, the full source, and a ready-made test workflow with one step for every operation ordered.
What had to change in the pipeline
Scope is chosen by a person
Research and building are now two separate requests. A build is compared with the chosen scope and stops if the model added or dropped an operation.
The customer's name, not mine
License, owner, package scope and icon come from the order. A customer build carries none of my files, links or branding.
No keys held
The node is built from public documentation. The customer's API key is entered only in their own n8n, when they run the test workflow.
Every run is accounted for
Each completed build records its token use and cost. A run that fails is caught by a separate error workflow, so the site can tell the customer and tell me.
One build path
New and existing repositories now go through the same steps, so a first build gets the same checks and repair loop as a rebuild.
My own infrastructure
A self-hosted n8n with a Postgres database replaced the hosted instance and the spreadsheet tracker. The workflow is now 94 steps.
The second audit: installing a delivered node for real
The first audit taught me that a green tick is not the same as a working package. So before calling the product ready, I installed a delivered node into a clean copy of n8n, imported its test workflow and ran it against the live API. It could not run.
- The fault. The node asked n8n for a credential type under one name and the package declared it under another. They differed only in capital letters. The code compiled and every test passed, because the tests replaced n8n with a stand-in.
- Who it affected. Any service with a capital letter inside its name. That includes the Kraken Exchange pilot described above. Its repository now carries the fix as version 1.1.1, with the new test, and passes the install test: the nine public market-data steps returned live data from Kraken. The copy on npm stays at 1.1.0 until I approve the release.
- The fix. The name is now set by code after the model finishes, and every build carries a test that fails if the two names differ.
- The lasting change. A script now installs any delivered package into a throwaway n8n and runs its test workflow against the real service. After the fix, the same order installed, accepted a credential and reached the live API.
- The first full-size build on version 4.2. I then rebuilt the XRP Ledger integration from scratch: 8 resources, 59 operations and 155 tests, with one repair by the pipeline, in about 16 minutes and about $8 of model usage. Installed in a clean n8n, 17 of its read steps returned live ledger data. The others were refused by the ledger because the script fills in placeholder addresses. It is not published yet.
Where it stands
- Two orders have gone end to end in Stripe's test mode: research, quote, payment, build, download, and one refund.
- A small build costs about 35 cents in model usage and takes about six minutes from payment to download.
- Not yet public. Live payments are waiting on account review, and the terms are in draft.
From a name to a package
- Request. A build starts from a web request carrying the service name, a category and a short description.
- Recall. The request is embedded and the five most similar past builds are pulled from the vector database.
- Research. The model studies the API and returns a plan: how to authenticate and which resources and operations to cover, capped at eight resources.
- Write in parallel. Each resource is written by its own call at the same time, then code stitches the pieces into one file.
- Normalize. Code enforces file names, package settings, license, build configuration and the automated checks.
- Document and remember. A cheaper model writes the README, and the build record is stored.
- Push. The files go to GitHub, creating the repository or updating it.
- Check and repair. The pipeline waits for the checks and repairs failures, up to three times.
- Approve. I review the result and create the release. The gated publish step sends it to npm.
The architecture
Designed it, built it, audited it and rebuilt it
Design
The phase structure, the prompts, the parallel write step and the approval gate.
Memory
Chose the embedding model and vector store, designed the record, and wired recall and storage into every build.
Audit
Downloaded all 162 packages, checked each against its own manifest, and traced every failure to a cause in the pipeline.
Rebuild
Moved the rules that must never break out of prompts and into code, added real checks and the repair loop, and made failures stop the run.
Pilot
Rebuilt the Kraken integration end to end: generated, repaired twice by the pipeline, 166 tests passing, published.
Working with AI
I used Claude as a pair programmer for the audit and the rebuild. The design decisions, the review and the approval of every release are mine.
What is next
- Release the two pilots. The corrected Kraken package and the rebuilt XRP Ledger package are built and checked. Each is published only after my own review.
- Rebuild the catalog through version 4.2, starting with the packages that cannot load.
- Prevent, then repair. The doubled-comma fault is fixed by the repair loop today. It should be removed in the assembly step so it never reaches the checks.
- Put the install test in the loop. Today I run it by hand after a build. It should run on every build, so a package that cannot work in n8n never reaches a customer.
- Open the product. Live payments, final terms, and the first orders from people who are not me.
- Keyless publishing. Replace stored npm tokens with short-lived credentials issued per release.
Stack
n8n (self-hosted), Claude API (Opus, Sonnet), TypeScript, Node.js, Postgres, Qdrant, Voyage AI, GitHub Actions, npm, Jest, Fastify, Stripe, Amazon SES, Docker