Skip to main content

Code-Native Integrations

A code-native integration (CNI), also called a code-first integration, is an integration you write as a TypeScript project in your own IDE, using Prismatic's Spectral SDK, instead of assembling steps in the low-code designer. This option is ideal for developers who want to build integrations entirely in code and take advantage of the full power of TypeScript and Node.js.

Get startedBuild your first code-native integration

Build, import, and test a TypeScript integration that posts incomplete TODO items to Slack, using Prismatic's SDK and agent skills.

GuideSet up your dev environment

Install Node.js, a package manager, an IDE, and the Prism CLI.

Agent skillsPrismatic agent skills

Give your AI coding assistant the knowledge and tools to build, test, and deploy code-native integrations.

ExampleExample code-native integrations

Browse complete code-native integrations on GitHub.

Building a code-native integration​

The pages in this section cover each part of a code-native integration: defining flows, building the config wizard, configuring webhook endpoints, and running code when an instance is deployed or deleted with lifecycle functions.

You build your project and import it into Prismatic with prism integrations:import, which also deploys a test instance. From there, test your flows in the Prismatic app or from the CLI, then publish a version that customers can deploy.

You can reuse existing components for API calls, connections, triggers, and data sources. For components available on npm, install the package in your project and use it directly from TypeScript. The package includes the component's code and types, so you can manage it alongside your other dependencies. If a component isn't available on npm, you can still use the deprecated component manifest workflow.

If you already have a low-code integration, you can convert it to a code-native integration instead of starting from scratch.

Use the integration authoring guidelines to design customer configuration, plan for large syncs, and make failures recoverable.

A code-native integration being built in Visual Studio Code

The rest of the platform is the same​

Regardless of how you build your integrations, the rest of the platform remains identical. Both code-native and low-code integrations are deployed to the same runner environment. Both can include OAuth 2.0 connections, data sources, and other advanced configuration wizard steps. Integrations built using either approach can include multiple flows and can be added to your integration marketplace. The same logging, monitoring, and alerting tools are available for both types of integrations.

The key difference lies in how you build the integration: you either assemble a set of low-code steps in the designer or write TypeScript code to accomplish the same task. To compare the two approaches, see Low-code vs code-native integrations.