Skip to main content
A custom connector (called a component in Prismatic) is a self-contained package of actions, triggers, data sources, and connections that you publish to Prismatic and use inside low-code integrations or code-native integrations. Connectors are written in TypeScript using the Spectral SDK (@prismatic-io/spectral). Each connector is defined by calling component(), which accepts a ComponentDefinition object.

ComponentDefinition shape

The full type from ComponentDefinition.ts:
The display field uses ComponentDisplayDefinition:

Minimal complete example

The following example shows a complete connector with one action:

Component structure

A typical connector project has this layout:
All keys (key on component, action, connection, etc.) must be unique within their scope and should use camelCase. They are programmatic identifiers used in the Prismatic API and cannot be changed after publishing.

Building and publishing

1

Install dependencies

2

Build the component

3

Publish to Prismatic

Explore the building blocks

Actions

Define the operations your connector performs — API calls, data transformations, and more.

Triggers

Define how an integration flow is started, including webhook and polling triggers.

Data sources

Populate config wizard dropdowns and forms by fetching data from external APIs.

Connections

Define authentication schemes: API keys, username/password, and OAuth 2.0.

Inputs

Declare typed input fields that are configured by integration builders.

Branching

Route execution down different paths based on action results.

Error handling

Use global hooks and typed errors to handle failures gracefully.