> ## Documentation Index
> Fetch the complete documentation index at: https://docs.meetsilicon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Embed Dashboards

> Embed a dashboard with filters, exports, and interactive tiles via iframe or React SDK

> [!NOTE]
>
> Embedding is available for Silicon customers where Silicon has enabled it. [Get in touch](https://silicon.typeform.com/to/BujU5wg5) to ask about enabling it for your account.

> [!TIP]
>
> **Try it and see the code.** [embed.meetsilicon.com](https://embed.meetsilicon.com) is an interactive demo and helper that lets you preview embedded content and generate a JWT for your own project. For a working end-to-end example, see the [example embed app on GitHub](https://github.com/meetsilicon/example-embed-dashboard-with-nodejs-app) -- a Node.js app that mints tokens server-side and renders a Silicon dashboard.

## Overview

Dashboard embedding displays a full Silicon dashboard in your application -- multiple visualizations, filters, tabs, and interactive features -- so you can give users comprehensive analytics views without a Silicon login. It's the only surface you can embed with a plain iframe; everything else needs the [React SDK](https://docs.meetsilicon.com/embed/react-sdk.md).

### When to use dashboard embedding

* **Executive dashboards**: multiple KPIs and metrics in admin panels
* **Customer-facing analytics**: analytics portals for SaaS customers
* **Embedded reporting**: comprehensive data views inside your workflows
* **Multi-chart views**: related visualizations with shared filters

### What you can put on an embedded dashboard

An embedded dashboard renders the same tiles it does in Silicon: saved charts, SQL Runner charts, [data app](https://docs.meetsilicon.com/data-apps) tiles, and markdown, Loom, and heading tiles, organized across multiple tabs.

> [!NOTE]
>
> SQL Runner chart tiles are authorized through dashboard-tile membership, so they render with existing embed JWTs -- you don't need to regenerate tokens or change embed URLs. A SQL chart is only embeddable as part of a dashboard; a chart-scoped JWT (`type: 'chart'`) can't embed one on its own.

## Set up a dashboard embed

Embedding always starts with the shared setup: create an embed secret, add your dashboard to the allowlist, preview it, and generate tokens from your backend. Follow the [embedding quickstart](https://docs.meetsilicon.com/embed/set-up-embedding.md) for those steps.

The only dashboard-specific part of setup is the allowlist: only dashboards added to the **allowed dashboards** list can be embedded. Add yours under **Settings -> Embed**, or toggle **Allow all dashboards** to embed any dashboard in the project.

## Configure what viewers can do

By default, dashboard interactivity is controlled by fields nested inside the JWT `content` object: filters, parameters, exports, date zoom, Explore, underlying data, and data app tiles. To manage capabilities through the actor's role, follow [Permission modes](https://docs.meetsilicon.com/embed/reference.md#permission-modes). Adding a `writeActions` claim also lets viewers save charts from Explore or edit and build dashboards through the SDK.

> [!WARNING]
>
> Interactivity options like `dashboardFiltersInteractivity`, `canExportCsv`, and `canExplore` must live **inside `content`**, not at the top level of the payload. At the root level they're silently ignored.

For the full list of options, their accepted values, and per-option UI screenshots, see the [dashboard token](https://docs.meetsilicon.com/embed/reference.md#dashboard-token) and [interactivity options](https://docs.meetsilicon.com/embed/reference.md#interactivity-options-reference) in the embedding reference. A token that exercises the common ones looks like this:

```javascript theme={null}
import jwt from 'jsonwebtoken';

const token = jwt.sign({
  content: {
    type: 'dashboard',
    projectUuid: 'your-project-uuid',
    dashboardUuid: 'your-dashboard-uuid',

    // Filters and parameters
    dashboardFiltersInteractivity: { enabled: 'all' },
    parameterInteractivity: { enabled: true },

    // Exports
    canExportCsv: true,
    canExportImages: true,
    canExportPagePdf: true,

    // Interactive features
    canDateZoom: true,
    canExplore: true,
    canViewUnderlyingData: true,
    canViewDataApps: true,
  },

  // Analytics (optional)
  user: {
    externalId: 'user-123',
    email: 'user@example.com',
  },

  // Row-level filtering (optional)
  userAttributes: {
    tenant_id: 'tenant-abc',
  },
}, SILICON_EMBED_SECRET, { expiresIn: '1h' });
```

> [!NOTE]
>
> **Required filters behave the same as in the app.** Embedded dashboards honor [required filters and requirement groups](https://docs.meetsilicon.com/explore/dashboards/filter.md#required-filters-and-filter-requirement-groups): tiles stay locked and don't load data while any rule is unmet, and viewers see the guided setup card. Style it with the [`ld-dashboard-guided-setup`](https://docs.meetsilicon.com/embed/react-sdk#css-class-overrides) class.

### Let viewers save and edit content

Add a `writeActions` claim to let embedded users save a new chart from Explore, or -- through the React SDK -- edit an existing dashboard or build a new one. Silicon performs the write as a configured actor (a service account or user) into the spaces the token names. See [Write actions](https://docs.meetsilicon.com/embed/reference.md#write-actions) for the claim and [`Silicon.Dashboard` edit mode](https://docs.meetsilicon.com/embed/react-sdk#with-edit-mode) for the SDK flow.

> [!NOTE]
>
> Newly saved charts aren't added to the embed allowlist, so they won't be re-embeddable unless you add them explicitly.

### View data apps

[Data app](https://docs.meetsilicon.com/data-apps) tiles run their own metric queries, so they only render when the JWT sets `canViewDataApps: true`. When it's off (the default), the tile shows a placeholder and no queries run. When on, the data app inherits the embed's [user attributes](https://docs.meetsilicon.com/workspace-admin/user-attributes.md) and filters, so row-level access still applies -- only enable it for audiences you trust with the data the app can query. For standalone data app embedding (no dashboard), see [How to embed data apps](https://docs.meetsilicon.com/embed/embed-data-apps.md).

## Embed with an iframe

iframe embedding needs no libraries or CORS. Pass the project UUID in the path and the JWT in the hash fragment; the dashboard is identified by `content.dashboardUuid` inside the token, not the URL:

```
https://your-instance.meetsilicon.com/embed/{projectUuid}#{jwtToken}
```

```html theme={null}
<iframe
  src="https://app.meetsilicon.com/embed/project-uuid#jwt-token"
  width="100%"
  height="600"
  frameborder="0"
  style="border: none;"
></iframe>
```

The [iframe embedding reference](https://docs.meetsilicon.com/embed/iframe.md) covers URL parameters (including `theme`, `backgroundColor`, and `timezone`), responsive and dynamic sizing, token refresh, and troubleshooting.

## Embed with the React SDK

The React SDK renders the dashboard as a component and adds programmatic filters, callbacks, custom styling, and edit mode.

```tsx theme={null}
import Silicon from '@meetsilicon/sdk';

function MyDashboard() {
  return (
    <Silicon.Dashboard
      instanceUrl="https://app.meetsilicon.com"
      token={tokenFromServer}
    />
  );
}
```

See the [React SDK reference](https://docs.meetsilicon.com/embed/react-sdk.md#silicondashboard) for installation, CORS setup, props, filters, theming, and localization.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.