specy

n8n community nodes for Specy — the headless CMS that treats content as a living specification. Automate objects, specs, forms, media and pages via the Specy REST API.

Documentation

n8n-nodes-specy

n8n community nodes for Specy — the headless CMS that treats content as a
living specification. This package lets n8n workflows automate API operations
against any Specy deployment: objects, specs, forms, media, page schemas,
pages, products and the knowledge base — plus a signed webhook trigger.

Status: v0.2.0 — all resources implemented. The connector plan (scope,
endpoint matrix, rollout phases) lives in the core repository at
specs/plans/n8n-nodes-specy-connector-plan.md; the implementation notes are
in docs/phase-2-implementation-plan.md.

Installation

Community node (n8n ≥ 1.x)

Once published to npm: Settings → Community nodes → Install and enter
n8n-nodes-specy.

Manual development

git clone <this-repo>
cd n8n-nodes-specy
npm install
npm run build
npm link
# in your n8n installation:
npm link n8n-nodes-specy

Credentials

Create a Specy API credential with two values:

Field Description
Base URL Your Specy deployment URL (the Worker serving /api/*), e.g. https://console.pluracon.org
API Token A personal access token (PAT) with the spc_ prefix, created in the Specy dashboard (Admin → API)

PATs are exchanged transparently by the Worker for short-lived sessions and
inherit exactly the roles of the account that created them. Use a dedicated
automation/service account rather than a personal login. The credential can
also be used directly in the generic HTTP Request node (genericAuth: true)
for endpoints not covered by the nodes below.

Specy node

Resource → operation dropdown. All JSON fields accept raw JSON strings or
expressions producing objects.

Resource Operations
Object List (pagination limit/offset ≤ 500, updated_since filter), Get, Create, Update, Update Access, Datastreams, Delete (archive)
Spec List, Get, Create, Update, Delete
Form List, Get, Get Answers, Submit Answers (API-enabled forms)
Media List, Upload (multipart), Delete, Sources, Config
Schema List, List Templates, Get Template, Import Template, Update Definition (revision-checked), Get Spec (JSON/Text), Get Manifest, Delete
Page List, Get, Create, Update, Revalidate (ISR cache bust), Register
Product List, Get, Create, Update, Publish, Archive, Delete
Knowledge Base Sync Entity

Read-modify-write pattern (Product / catalogue Pages)

Product mutations and catalogue page updates are guarded by optimistic
concurrency. Read the entity first, then pass the returned versions back:

  1. List/Get the product — note expected_version (and the schema's
    expected_definition_revision).
  2. Update/Publish/Archive/Delete with those exact values. A conflict
    (409) means someone changed it in between — fetch again and retry.

For event/service-product schemas the same applies to Page updates
(concurrency fields: workspace ID, expected definition revision, and — for
event schemas — the expected page updated_at timestamp).

Dynamic pickers

Object, Schema, Template, Form and Workspace selectors are populated live from
your Specy instance (loadOptions), so you don't need to copy IDs manually.

Specy Trigger node

Consumes signed Specy outbound webhook deliveries (see
specs/platform/webhooks.md in the core repo — subscription RBAC requires a
support or super-admin PAT):

  1. Add the Specy Trigger node and copy its Production webhook URL.
  2. Create a webhook subscription in the Specy dashboard (Admin → Webhooks)
    pointing at that URL, selecting the event types
    (object.created, object.updated, object.archived).
  3. Paste the Signing Secret (shown exactly once at creation) into the
    trigger node.

Every delivery is verified via X-Specy-Signature (sha256= HMAC-SHA256 over
the raw body). Forged or unsigned requests are rejected before the workflow
runs; failed verifications surface as failed delivery attempts in Specy's
retry queue. An event filter lets one subscription feed several workflows.

Polling alternative

No core changes are needed for pull-style automation either: pair a Schedule
Trigger with Specy → Object → List, pass the updated_since parameter
from your workflow's static data as a watermark, and deduplicate by
updated_at.

Error semantics

Transport errors are wrapped in NodeApiError with the Specy error body
preserved plus actionable hints: 401 (recreate the PAT), 403 (missing
role/membership), 409 (conflict — refetch), 501 (plugin handler not
active, e.g. Knowledge Base sync without the Pluradash plugin).

Development

npm run build   # tsc → dist/ + icon copy
npm test        # vitest unit tests (operation → request mapping, signature)

Discussion