Skip to main content

Embed chart

Embed the household chart in your app with an iframe on embed.withheadlight.com. Your browser sends chart data into the iframe with postMessage. Headlight servers never receive names, trusts, or relationship data.

Quickstart

  1. Provision an API key with the embed:chart permission.
  2. Mint a short-lived token from your server:
  1. Load a pinned embed version and post render after ready. See Embed with React for the React component.
Pin an immutable version prefix (/chart/v0.1.0/index.html). Do not load /chart/latest.

Sandbox attribute

Use exactly sandbox="allow-scripts allow-same-origin". Do not add allow-top-navigation or allow-popups.

Token

Mint the token on your server. Your page origin must be allowlisted. The token is required to render.

Next steps