n8n/packages/@n8n/workflow-sdk
Riqwan Thamir 41e31a11c3
chore: wip
2026-07-27 01:23:20 +02:00
..
scripts chore: wip 2026-07-25 21:56:14 +02:00
src chore: wip 2026-07-27 01:23:20 +02:00
test-fixtures chore: wip 2026-07-26 16:01:10 +02:00
.gitignore test: Harden workflow-sdk debug artifact extension against Rolldown (#32089) 2026-06-15 11:17:43 +00:00
eslint.config.mjs perf(ai-builder): Defer heavy idle-boot dependencies (-27 MiB heap) (#30834) 2026-05-21 09:28:39 +00:00
package.json chore: wip 2026-07-25 21:56:14 +02:00
README.md feat(ai-builder): Add code-base workflow builder (#24535) 2026-02-10 12:24:27 +00:00
tsconfig.build.json chore: Migrate the rest of packages/@n8n to typescript 7 (#34332) 2026-07-17 10:45:58 +03:00
tsconfig.json chore: Migrate the rest of packages/@n8n to typescript 7 (#34332) 2026-07-17 10:45:58 +03:00
vitest.config.ts test: Enable restoreMocks by default in shared vitest configs (#33526) 2026-07-03 10:03:01 +00:00

Banner image

@n8n/workflow-sdk

TypeScript SDK for programmatically creating n8n workflows.

Features

  • Fluent builder API for workflow creation
  • Full type safety with TypeScript
  • Code generation from JSON workflows
  • Control flow support (If, Switch, Merge, Loop)
  • Built-in validation
  • AI/LangChain node integration

Usage

import { WorkflowBuilder, manual, httpRequest } from '@n8n/workflow-sdk';

const workflow = new WorkflowBuilder()
  .withName('My Workflow')
  .addTrigger(manual())
  .then(httpRequest({ url: 'https://api.example.com/data' }))
  .build();

License

You can find the license information here