Embed SDK

Ship the same semantic model inside your product

Mint a short-lived JWT for a published dashboard, load the iframe viewer or SDK component, and optionally scope rows with customer_id. Official packages: JavaScript, React, and Angular.

Acme Corp / Customer portal / Analytics
customer_id: acct_42
Usage
128k
↑ 6%
Active seats
842
↑ 3%
NPS
54
↑ 2
Embedded from published Strixa dashboard

Signed JWT

Short-lived tokens from your backend via POST /embed/token.

RLS in the token

Optional customer_id scopes every query for the embed session.

How embedding works

  • Admin creates embed API keys in the product
  • Your backend calls POST /embed/token with dashboard_id
  • Default TTL is short (configurable; commonly about 15 minutes)
  • Optional customer_id for row-level scoping
  • Tenant embed origin allowlists constrain parent frames
  • Browser helper available at GET /embed/sdk.js

Packages in the monorepo are @strixa/embed-js, @strixa/embed-react, and @strixa/embed-angular. Public npm publishing status depends on your release process.

Token request body
{
  "dashboard_id": "dash_…",
  "ttl_seconds": 900,
  "customer_id": "acct_42"
}