You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+14-12Lines changed: 14 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,25 +4,25 @@ Visual workflow editor SDK (React) with a reference backend and Temporal-based e
4
4
5
5
## Quick Reference
6
6
7
-
Three onboarding paths (A, B local-run; C docs-only). README "Get started" is the canonical guide for A and B. Path C ("Embed the SDK") lives in the [docs site](https://www.workflowbuilder.io/docs/get-started/quick-start/wb-as-react-component/) and has no local-stack commands.
7
+
Three onboarding paths (A installs from npm; B, C run the repo locally). README "Get started" covers all three. Path A ("Embed the SDK") installs `@workflowbuilder/sdk` from npm; the README has install + a minimal snippet, and the full guide lives in the [docs site](https://www.workflowbuilder.io/docs/get-started/quick-start/wb-as-react-component/).
Path A is UI-only and does not need Docker. Path B requires `pnpm infra:up` before backend/worker can start, and `db:migrate` on the first run.
25
+
Path B is UI-only and does not need Docker. Path C requires `pnpm infra:up` before backend/worker can start, and `db:migrate` on the first run.
26
26
27
27
### Agent signals
28
28
@@ -123,7 +123,7 @@ If you're new to this repo and want to build your own consumer app or POC, follo
123
123
|`/wb.create-plugin <name>`| Scaffold a new SDK plugin — asks for target app (default `demo`) |
124
124
|`/wb.create-template <name>`| Scaffold a new diagram template — asks for target app (default `demo`) |
125
125
|`/wb.add-execution-handler <type>`| Wire a node type into execution-core + worker registry (global pipeline, no target) |
126
-
|`/wb.run-locally`| Bring up the stack — Path A (`pnpm dev:demo`) or Path B (infra + backend + worker + AI Studio frontend) |
126
+
|`/wb.run-locally`| Bring up the stack — Path B (`pnpm dev:demo`) or Path C (infra + backend + worker + AI Studio frontend) |
127
127
|`/wb.task`| Fetch assigned ClickUp tasks via MCP and recommend one to pick up |
128
128
|`/wb.task WB-42`| Pick up a specific task with an inline plan |
129
129
|`/wb.changeset <bump> "<summary>"`| Add a changeset for SDK changes (`patch` / `minor` / `major`) — required before merging consumer-visible changes to `packages/sdk/**`|
@@ -145,9 +145,11 @@ The SDK is the only npm-published workspace; everything else under `apps/` and `
145
145
```
146
146
4. Open PR to `main`. The changeset file is part of the PR diff — reviewer sees the declared bump alongside the change.
147
147
148
+
**`<WorkflowBuilder.Root>` props live on three surfaces.** The type in `packages/sdk/src/workflow-builder-root/workflow-builder-root.types.ts` is the source of truth; the `/api/core/workflowbuilderrootprops/` reference is generated from its JSDoc and never drifts. Two hand-written tables mirror it: `packages/sdk/README.md` (npm landing) and `apps/docs/src/content/docs/guides/configuring-the-editor.md` (docs guide). When you add, rename, or remove a prop, update both tables in the same change. Descriptions may differ per surface (the README leans on gotchas, the guide on how / when); the set of prop names must match.
149
+
148
150
**Release moment** (maintainer, not Claude):
149
151
150
-
1. Open PR `release/vX.Y.Z` → `release`. In the branch, run `pnpm changeset version` — bumps `packages/sdk/package.json`, regenerates `packages/sdk/CHANGELOG.md`, deletes consumed `.changeset/*.md`.
152
+
1. Open PR `release/vX.Y.Z` → `release`. In the branch, run `pnpm changeset version` — bumps `packages/sdk/package.json`, regenerates `packages/sdk/CHANGELOG.md` (then reformat it into Keep a Changelog style before committing, see [`packages/sdk/RELEASE.md`](packages/sdk/RELEASE.md) § "Reformat the generated CHANGELOG section"), deletes consumed `.changeset/*.md`.
151
153
2. Review the diff, merge the PR into `release`.
152
154
3. Tag the merge commit on `release`: `git tag vX.Y.Z && git push origin vX.Y.Z`.
153
155
4. GitHub Action triggered by the tag runs lint + typecheck + test + `pnpm publish --provenance` (authenticated via npm Trusted Publisher / OIDC, no `NPM_TOKEN` stored anywhere) + creates a GitHub Release.
**Frontend SDK for embedding production-ready workflow editors.**
7
+
**Workflow Builder**
8
8
9
-
Workflow Builder is an open-source SDK that gives you a ready-made workflow editor UI - canvas, nodes, edges, layout, and configuration panels - so you don't have to build workflow UX from scratch. It focuses exclusively on the frontend editor layer; execution, orchestration, and business logic stay fully under your control. The SDK outputs workflow definitions as JSON that your own backend executes.
9
+
**Apache 2.0 React SDK for embedding visual workflow editors.**
10
+
11
+
Drag-and-drop workflow builder UI with a reference back-end and an execution engine swappable by design, proven with Temporal. Back-end agnostic. Built on React Flow and Temporal. Reference stack for AI workflows and automations in digital products.
10
12
11
13
---
12
14
@@ -36,16 +38,47 @@ Three onboarding paths. Pick one based on what you want to evaluate.
It mounts the default layout (top bar, palette, canvas, properties panel) and persists to `localStorage` out of the box. The palette is empty until you pass `nodeTypes`.
73
+
74
+
Full guide (props, persistence strategies, theming, plugins, and the API reference): [React Component on the docs site](https://www.workflowbuilder.io/docs/get-started/quick-start/wb-as-react-component/).
75
+
76
+
The two paths below run this repository locally (demo and full stack). They share the requirements and preflight check that follow. Path A needs neither.
44
77
45
78
### Requirements
46
79
47
80
- Node `22.12.0` and pnpm `10.9.0`. Both pinned in `package.json`. Use `nvm`, `fnm`, or `corepack` to match.
48
-
- Docker Desktop. Only required for Path B.
81
+
- Docker Desktop. Only required for Path C.
49
82
50
83
Works the same on macOS, Linux, and Windows. No platform-specific steps.
51
84
@@ -79,11 +112,11 @@ Workflow Builder preflight
79
112
Ready to go. Pick a path in README.md "Get started".
80
113
```
81
114
82
-
The two `.env` warnings are expected on a fresh clone. They are only required for Path B and get created by `pnpm setup:env` in step 1 of that path. After that they switch to `✅ present`.
115
+
The two `.env` warnings are expected on a fresh clone. They are only required for Path C and get created by `pnpm setup:env` in step 1 of that path. After that they switch to `✅ present`.
83
116
84
117
Fix any red (`❌`) items before continuing. The script also has a `--json` mode for tooling: `pnpm preflight --json`.
85
118
86
-
### Path A. Try the demo
119
+
### Path B. Try the demo
87
120
88
121
UI only. No backend, no Docker. The fastest way to see the editor in action.
89
122
@@ -102,7 +135,7 @@ Expected output:
102
135
103
136
Open `http://localhost:4200`. The editor loads with the default plugin set and a starter template. That's it.
104
137
105
-
### Path B. Run the full stack demo
138
+
### Path C. Run the full stack demo
106
139
107
140
Full reference product: editor, Hono backend, Temporal worker, Postgres. The frontend on port 4201 is the **AI Studio** reference product (`apps/ai-studio`). Demonstrates end-to-end workflow execution.
If the key is missing the worker fails to start with `OPENROUTER_API_KEY is required`. If the model id is wrong the first AI node fails at runtime and the error surfaces in the UI log panel.
180
213
181
-
### Path C. Embed the SDK
182
-
183
-
To build your own React app on top of `@workflowbuilder/sdk`, follow the [React Component guide on the docs site](https://www.workflowbuilder.io/docs/get-started/quick-start/wb-as-react-component/). It covers installation, peer deduplication (for local-path builds until npm publish), usage, persistence strategies, theming, and the full API reference.
184
-
185
214
### Troubleshooting
186
215
187
216
| Symptom | Cause | Fix |
@@ -266,7 +295,7 @@ Workflow Builder is available in two editions:
266
295
267
296
For companies that need end-to-end implementations or any other support, we offer professional consulting services.
268
297
269
-
Our team has delivered **170+ custom workflow tools** across 20+ industries and brings **15+ years** of experience building enterprise-class diagramming and automation tools. We can help with:
298
+
Our team has delivered **200+ custom workflow tools** across 20+ industries and brings **15+ years** of experience building enterprise-class diagramming and automation tools. We can help with:
Copy file name to clipboardExpand all lines: apps/backend/README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,10 @@
2
2
3
3
> ⚠️ **Reference implementation, local development only.**
4
4
> No real authentication. The bundled `AllowAllAuthPort` permits every caller and every action (see `src/auth/`), and the constructor refuses to start without the explicit `WB_AUTH_PORT=allow-all` opt-in so a forgotten env var fails loudly. No tenant isolation. The HTTP server and the docker-compose services bind to `127.0.0.1` by default. Do not expose to the internet or shared networks without first plugging in a real `AuthPort`, see [`auth-port.decision-log.md`](./auth-port.decision-log.md) for the seam, default, and a JWT adapter sketch.
5
+
>
6
+
> Seams for consumers to plug in: [`AuthPort`](./auth-port.decision-log.md) for authn/authz, [`TenantContextPort`](./tenant-context-port.decision-log.md) for multi-tenant identity propagation (wiring guide: [`multi-tenancy.md`](./multi-tenancy.md)).
5
7
6
-
> **Note:** setup is in [root README "Path B. Run the full stack demo"](../../README.md#path-b-run-the-full-stack-demo). This file documents the backend's internals, not how to start it.
8
+
> **Note:** setup is in [root README "Path C. Run the full stack demo"](../../README.md#path-c-run-the-full-stack-demo). This file documents the backend's internals, not how to start it.
7
9
8
10
Backend execution layer for Workflow Builder AI Studio plugin. Runs AI workflows defined on the canvas via Temporal + OpenRouter.
0 commit comments