Skip to main content

Headless SDK (Solis) Overview

Use Prismatic's headless SDK (Solis) for building rich configuration experiences. With Solis, your app presents the integration marketplace and configures integrations with its own UI components: field mappers with live previews, multi-step setup flows, inline validation, and anything else your design system supports. Nothing your customers see is an iframe: your app renders every card, form, and button, and Solis supplies the data and actions behind them.

Get startedGet started with headless config

Run the Fake CRM example end to end: publish a headless integration, configure it in your app with a field mapper and live preview, and publish an update.

Get startedBuild a custom marketplace

List integrations with your app's own components, adding search, category filters, status badges, and configuration.

Get startedBuild a one-click connect list

Authorize, configure, and deploy an integration from a single Connect button.

Get startedConfiguration presentation modes

Present one configuration as a single page or a multi-step wizard that share the same form state.

Solis has two packages:

PackageUse it when
@prismatic-io/solis-reactYour app uses React. Hooks return live, cached resources, and update your components when data changes.
@prismatic-io/solis-coreYour app uses another framework, or none. It's the client solis-react is built on.

Headless or hosted?​

The key difference between hosted and headless is how the configuration experience is rendered. With hosted, you embed an iframe that displays Prismatic's configuration screens. With headless, your app renders the configuration experience using your own components, while Solis handles communication with Prismatic behind the scenes. For a comparison of the two, see Choosing headless or hosted.

You can use both. Solis includes HostedConfiguration, which opens Prismatic's config wizard for integrations that use config pages.

How it works​

Solis boots a hidden Prismatic iframe in your page and talks to it over a private message channel. Your app never calls Prismatic's API directly, and the frame never renders anything.

  1. Your backend signs a JWT for the signed-in user, exactly as it does for the embedded SDK. See Embedded Authentication.
  2. Your app passes the token and your Prismatic URL to Solis.
  3. Solis returns resources: the marketplace, instances, configurations, and connections. Each resource is loading, error, or success with its data, and stays up to date as things change.
  4. Your app changes things with actions on those resources, such as createInstance, init, save, and deploy. Each action resolves to a result, success or error, and never throws.
  5. Each guarded action has a matching permission that says whether the user may run it, and why not.

What you can build​

  • A marketplace: list integrations, with search, categories, and labels, and activate one for the customer.
  • A configuration experience: render your own form for a headless configuration, call the integration's server functions, then save and deploy.
  • Instance management: show each instance's status, offer updates, and pause, resume, or remove instances.
  • Connection management: list the customer's connections and authorize OAuth 2.0 connections.

See it in action​

The example embedded app includes three pages built with solis-react, each the subject of a tutorial above:

PageWhat it showsCode
Headless ConfigurationA marketplace built with the app's own cards, your forms for headless integrations, and Prismatic's wizard for othersheadless-configuration.tsx
One-Click ConnectA list of integrations that each authorize, configure, and deploy in one clickheadless-one-click-list.tsx
Presentation ModesOne configuration presented as a single page or a multi-step wizardheadless-presentation-modes.tsx

Next steps​

GuideInstall the headless SDK

Install Solis in your frontend and connect it to Prismatic with an embedded user's JWT.

GuideHeadless UI in React

Build a marketplace and configuration UI with Solis React hooks such as useMarketplace and useConfiguration.