Prismatic-skills embedded
Reference documentation for embedding Prismatic's integration marketplace and workflow builder in a web application. Covers JWT authentication, the embedded SDK, marketplace and workflow embedding, theming, i18n, additional screens, and custom marketplace UI. Use when the user asks about embedding Prismatic, JWT tokens for embedded apps, marketplace iframes, workflow builder integration, custom marketplace UI, or frontend SDK setup.
git clone https://github.com/prismatic-io/prismatic-skills
T=$(mktemp -d) && git clone --depth=1 https://github.com/prismatic-io/prismatic-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/embedded" ~/.claude/skills/prismatic-io-prismatic-skills-embedded && rm -rf "$T"
skills/embedded/SKILL.mdPrismatic Embedded
Reference documentation for embedding Prismatic's integration marketplace and workflow builder inside a customer-facing web application.
Core Concepts
Embedding Prismatic means your customers never leave your app to manage integrations. The flow is:
- Your backend generates a short-lived signed JWT (10 min) authenticating the customer user
- Your frontend calls
with that JWT — never sign JWTs on the frontendprismatic.authenticate({ token }) - The frontend calls
,prismatic.showMarketplace()
, or another screen method to render an embedded iframeprismatic.showWorkflows()
Before the JWT expires, the frontend re-fetches a fresh JWT from your backend and calls
prismatic.authenticate({ token }) again. Existing iframes update automatically.
Critical Security Rule
JWT tokens MUST be signed on your backend using your private key. Never expose the private signing key to the frontend. The frontend only receives the signed JWT string from a backend API endpoint.
Signing Keys
Before any embedding can work, your organization needs a signing key. To check or create one:
# Check existing signing keys prism organization:signing-keys:list --extended --output json # Generate a new signing key (Prismatic creates the key pair) prism organization:signing-keys:generate # OR: import your own key generated with OpenSSL openssl genrsa -out my-private-key.pem 4096 openssl rsa -in my-private-key.pem -pubout > my-public-key.pub prism organization:signing-keys:import -p my-public-key.pub
The private key is only shown once at generation time — store it securely (e.g., environment variable or secrets manager). Prismatic only stores the last 8 characters of the public key for identification.
SDK Quick Start
npm install @prismatic-io/embedded
import prismatic from "@prismatic-io/embedded"; // 1. Initialize once on app startup (before authentication) prismatic.init(); // 2. Authenticate with a JWT fetched from YOUR backend const { token } = await fetch("/api/integration-token").then(r => r.json()); await prismatic.authenticate({ token }); // 3. Show an embedded screen prismatic.showMarketplace({ selector: "#integrations-div", usePopover: false });
JWT Required Claims
Every JWT must include these Prismatic-specific fields — standard JWT libraries won't add them automatically:
| Claim | Required | Description |
|---|---|---|
| Yes | Unique user ID (UUID or similar) |
| Yes | Prismatic organization ID (from org settings → Embedded tab) |
| Yes | Your internal customer/tenant ID — identifies which customer this user belongs to |
| Yes | Issued-at Unix timestamp. Use to buffer for clock skew |
| Yes | Expiry Unix timestamp. Use (10 minutes) |
| No | External ID for this user in Prismatic; typically matches |
| No | User's display name |
| No | If no customer with this ID exists yet, creates one with this name |
| No | ULC only: (can deploy) or (supplies user config). Defaults to . |
organization and customer are the most commonly missed fields — they are not standard JWT claims and must be set explicitly.
Minimum valid payload:
{ "sub": "user-uuid", "organization": "T3JnYW5pemF0aW9uOi...", "customer": "your-customer-id", "iat": 1700000000, "exp": 1700000600 }
JWT Token Lifecycle
- Keep token lifetime short: 10 minutes (
)exp: currentTime + 600 - Add a small clock-skew buffer:
iat: currentTime - 5 - Re-authenticate before expiry: set a timer to fetch a new JWT and call
again ~1 minute before the token expiresprismatic.authenticate({ token }) - Existing iframes are updated automatically when
is called with a new tokenprismatic.authenticate
SDK Methods Reference
| Method | Purpose |
|---|---|
| Initialize the SDK (call once at app startup) |
| Authenticate with a signed JWT |
| Embed the integration marketplace |
| Embed the workflow builder list |
| Open a specific workflow in the builder |
| Embed the customer dashboard |
| Embed the connections management screen |
| Embed the logs screen |
| Embed the component browser |
| Show a specific component |
| Open a config wizard for an integration |
| Programmatically set config variables |
| Execute authenticated GraphQL queries |
Phase-Specific References
Load only the references relevant to the current setup step. This keeps context focused.
Step 2: Signing Keys
— Signing key setup (generate, import, list)references/authentication.md
Step 3: Backend JWT Endpoint
— Backend examples for Node.js, Python, Ruby, Go, C#; JWT claims referencereferences/authentication.md
Step 4: Frontend SDK Setup
— React, Next.js, Vue, Svelte integration patterns with full codereferences/framework-examples.md
— Full SDK type definitions, method signatures, ScreenConfigurationreferences/sdk-api.md
Follow-up Topics (load on demand)
- Theming / dark mode / custom fonts →
references/theming-and-i18n.md - Translations / i18n / phrase keys →
references/theming-and-i18n.md - Marketplace filters, events, setConfigVars →
references/marketplace.md - Workflow builder setup →
references/workflow-builder.md - Dashboard, connections, logs, components →
references/additional-screens.md - Custom marketplace UI / GraphQL →
references/custom-marketplace-ui.md
All References
Full list for manual lookup:
— JWT claims, signing examples for Node.js, Python, Ruby, Go, C#, and re-authentication patternreferences/authentication.md
— Full SDK type definitions, ScreenConfiguration, Filters, PrismaticMessageEvent enumreferences/sdk-api.md
— showMarketplace, filters (simple and advanced), configureInstance, events, setConfigVarsreferences/marketplace.md
— showWorkflows, showWorkflow, key differences from the low-code designerreferences/workflow-builder.md
— Light/dark mode, custom fonts, loading screen, custom terms, translationsreferences/theming-and-i18n.md
— showDashboard, showConnections, showComponents, showLogs, common optionsreferences/additional-screens.md
— Building a fully custom marketplace with GraphQL, TypeScript types, avatar imagesreferences/custom-marketplace-ui.md
— React, Next.js, Vue, and Svelte integration patterns with full code examplesreferences/framework-examples.md