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

# SDK Overview

Embed live WisdomAI dashboards directly inside your own React application. The SDK renders Wisdom's interactive analytics: charts, metrics, tables and filters as native React components in your DOM (no iframe). They flow with your layout and inherit your theming, placed inside your own pages like any other component.

## What you can do today

* **Embed a full dashboard**: Drop an entire Wisdom dashboard into a page with a single component.
* **Embed a single widget**: Render one chart, metric, or table on its own and place it anywhere in your UI.
* **Chat**: Embed a conversation surface where viewers ask questions in natural language and get streamed answers, charts, tables, and narratives, with or without a dashboard.
* **DashChat**: Attach that chat to a dashboard as a side panel scoped to the dashboard's own domains, with follow-up questions seeded from any widget.
* **Brand-native widget cards (advanced)**: Render a widget's visualization without Wisdom's built-in card chrome and wrap it in your own container (see Components).
* **Interactive analytics**: Charts, time series, stacked breakdowns, data tables, and KPI metrics, all fully interactive (zoom, tooltips, export-to-data).
* **Filtering**: Show Wisdom's built-in filter bar, or drive filters from your own application state.
* **Theming**: Match the embedded content to your product's colors, typography, and chart palette.
* **Multi-tenant ready**: Issue per-user tokens so each of your end users only sees the data they're entitled to.

## Packages

The SDK is published publicly on the **npm registry** under the `@wisdomai` scope:

| Package | Registry | Use |
| - | - | - |
| `@wisdomai/react` | [npmjs.com/package/@wisdomai/react](http://npmjs.com/package/@wisdomai/react) | React component library: providers, `Dashboard`, widgets, hooks. Runs in the browser. |
| `@wisdomai/node` | [npmjs.com/package/@wisdomai/node](http://npmjs.com/package/@wisdomai/node) | Server-side helper that exchanges your long-lived access token for a short-lived JWT the browser can safely use. Runs on your backend only. |

> [!NOTE]
>
> Both packages are MIT-licensed and ESM-first.

## How the docs are organized

> [card] [Quickstart](https://docs.wisdom.ai/integrations/embeddings/sdk/sdk-quickstart.md)
>
> Install, wire up auth, and render your first dashboard.

> [card] [Components](https://docs.wisdom.ai/integrations/embeddings/sdk/sdk-components.md)
>
> Embed dashboards, single widgets, custom widget cards, and filters.

> [card] [Authentication](https://docs.wisdom.ai/integrations/embeddings/sdk/sdk-auth.md)
>
> The `@wisdomai/node` token exchange, `WisdomProvider`, and per-user (multi-tenant) tokens.

## What's coming

Dashboard consumption, Chat, and DashChat are available today (see [Components](https://docs.wisdom.ai/integrations/embeddings/sdk/sdk-components.md#chat)). On the near-term roadmap:

* **List views**: Dashboard and conversation lists, so an embed can offer browsing and chat history.
* **Dashboard authoring**: Create and edit dashboards directly from the SDK.
* **Agents**: Scheduled and triggered analysis in the embed.

## FAQs

> [accordion] Is this a React-only SDK?
>
> The current release is React. Web component and framework-agnostic support is on the roadmap.

> [accordion] How does authentication work?
>
> `WisdomProvider` accepts a `tokenProvider` function that returns a JWT. Your backend controls token generation and expiry. No WisdomAI credentials are exposed in the browser.

> [accordion] Does the SDK support multi-tenant isolation with row-level security?
>
> Yes. JWT-based authentication carries the user's identity, which WisdomAI uses to enforce row-level security. Each embedded user sees only their own data.

> [accordion] What happens when the JWT expires?
>
> A `tokenProvider` that returns a fresh token on each call is the recommended pattern for long-lived sessions.

> [accordion] Is the iframe embedding approach still supported?
>
> Yes. The iframe path remains available and unchanged. The SDK is an additive option for teams that need composability, theming, or programmatic filter control beyond what iframes support.

> [accordion] Can we customize which dashboard filters are shown?
>
> `WisdomGlobalFilters` renders the filters configured on the dashboard. Refs and callbacks give your application programmatic control over the filter state for tighter native integration.

> [accordion] Chat and DasChat Version
>
> Chat and DashChat ship in `@wisdomai/react@0.0.12`, currently published on the `next` npm tag: `npm install @wisdomai/react@next`.

## Next steps

> [card] [Quickstart](https://docs.wisdom.ai/integrations/embeddings/sdk/sdk-quickstart.md)
>
> Set up the SDK and embed your first dashboard in minutes.

> [card] [Components](https://docs.wisdom.ai/integrations/embeddings/sdk/sdk-components.md)
>
> Browse the React components available for embed a full dashboard, composable widgets, and filters.


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