When a React product needs Metabase embedded in it
A product team that wants analytics inside its own React screens, rather than sending customers to a separate tool, is the reader this section is written for. The modular embedding SDK answers that need: it lets a React app embed Metabase components such as standalone charts, dashboards and the query builder, and it manages access and interactivity for each component separately. You choose which pieces appear, where they sit in your layout, and how much a viewer can do with them. That granularity is the main reason teams pick it over the alternatives, which are full app embedding (the whole Metabase interface in an iframe) and guest embeds (signed, locked-down views that need no viewer account).
Authentication is the first decision that changes the plan. SSO-based embedding requires a Pro or Enterprise plan, while guest authentication works on every plan, including open source. Check which of your viewers need a Metabase user identity, such as someone who should see their own saved questions or the collections shared with their team, and which only need a fixed view filtered by a value your server signs. The first group points you toward SSO and the paid plans, and the second can often be built on the open source edition. Confirm the current plan terms on the Metabase pricing page before you commit, because the plan features that matter here are the ones that change between editions.
Modular embedding fits best when the analytics should feel like part of your product, with your navigation, your permissions model and your components placed inside your pages. Full app embedding is simpler to launch but gives viewers more of Metabase's own interface, and guest embeds suit a narrow set of public or anonymous views. Before you write code, list each screen that will show Metabase, the component it needs, and whether the viewer is an internal user, a customer user or an anonymous guest. That list will show whether one approach covers the product or whether you need two, and it will also tell your team which version of the SDK and which plan to plan for.
How an embedded component request flows from the React app to Metabase
The request starts in the browser, where the React app loads the SDK and renders a component such as a dashboard or the query builder. The SDK fetches its bundle from the Metabase instance, and the product's own backend issues the signed authentication request, which is the trust boundary to check: the signing secret and user identity never leave that backend. Metabase then checks the session and permissions and queries the application database for metadata and the warehouse for results, so each hand-off is a place to confirm access control.
Requests from the React app to the product backend, Metabase, and the data stores behind it.
Which components to embed and why
A standalone chart embeds a single saved question inside your product, such as a revenue trend or an order count, without the surrounding dashboard. It is the narrowest surface you can expose, which makes it the easiest to reason about. Your application decides which question appears where, and the end user sees the result, not the query behind it.
- Viewing scope: The user sees the output of one saved question, so the review effort is limited to that question's columns and filters.
- Interactivity: Keep it read-only if customers should only look at results. Enable filters only when you have tested that they cannot widen access beyond the user's permissions.
- Ownership: Analysts build and save the question in Metabase, so changes to the logic happen in one place rather than in your React code.
- Good fit: Summary metrics on a customer account page, or a single KPI tile inside an admin screen.
Before exposing a chart, confirm which collection it lives in, which groups can read that collection, and whether the chart's underlying data depends on permissions your product does not yet enforce.
A dashboard embed shows a group of saved questions with shared filters and layout. It suits customer-facing reporting where a user needs an overview and some control over time ranges or categories. Because several questions appear together, the dashboard's filters and cards define what a viewer can reach, so the review scope is larger than for a single chart.
- Filter exposure: Decide which filters the user may change and which should be fixed by your application, since a visible filter is an input the user controls.
- Card contents: Every card on the dashboard is visible to anyone with access to it, so remove cards that expose internal or other-tenant data.
- Drill-through: Check whether clicking a card opens questions or tables the user should not see.
- Good fit: Customer reporting pages where a set of metrics is curated by your product or analytics team.
Before release, test the dashboard with a non-admin account from each customer group and confirm that every card, filter and drill-through returns only that customer's rows.
The query builder embed gives users a visual interface to build their own questions from the tables they are allowed to see. It is the most flexible component and the one that most changes your risk profile, because the user chooses the columns, joins and filters. Its value is highest for internal analysts and power users, and its exposure to external customers needs a deliberate decision.
- User freedom: Users can build new questions, so access depends entirely on the data permissions configured for their account.
- Data scope: Limit the tables and databases visible to the embedded user through groups and data permissions before enabling the builder.
- Result handling: Check whether users can export results and whether those exports carry the same restrictions as on-screen data.
- Good fit: Internal teams, or a paid analytics tier where customers have been told they can explore their own data.
Confirm with your data owners which tables are safe for self-service exploration. If the answer is unclear, keep the query builder internal and expose only saved questions and dashboards to customers.
Collection browsing embeds the folder view of Metabase, so users can navigate saved questions and dashboards by collection. It is useful when customers or internal users have a large library of content and need a way to find it. The browser shows everything the user can read, so it is the component most affected by how collections are structured and shared.
- Visibility: Users see the names and descriptions of every item they can access, so avoid putting sensitive names in shared collections.
- Structure: Organize collections by tenant or business area before embedding, since the folder tree becomes the navigation your users see.
- Actions: Confirm which create, move and delete actions the embed allows, and whether those actions can be turned off for end users.
- Good fit: Internal analytics hubs, or customer portals with a managed library of reports.
Review the collection tree with a non-admin account from each group, and confirm that no item appears that the group should not know about.
How to set up the SDK in a React app
This sequence takes a React team from a confirmed Metabase edition and plan to a first embedded component rendering for a test user. Each step ends with a check, so problems surface before the component is built into the product.
Confirm the instance edition and plan
Before writing any code, confirm which Metabase edition and plan your instance runs and record its exact major version under Admin settings. The modular embedding SDK relies on SSO-based authentication, and all SSO-based embedding requires the Pro or Enterprise plan, so an Open Source or Starter instance will not support the authentication flow this sequence builds. Check the plan against the pricing page and confirm the version with your platform owner. The check is a written record of edition, plan, and version that the whole team uses for the remaining steps.
Install the package with the matching dist-tag
In the React project, install @metabase/embedding-sdk-react using the dist-tag that matches your instance's major version, following the @{major}-stable pattern that Metabase recommends. From Metabase 57 the SDK loads its bundle from the instance itself, so a mismatched tag can produce components that do not match the server they call. Pin the installed version in your lockfile and record it next to the instance version. The check is that the installed package version and the instance major version agree in your lockfile and in your deployment notes.
Configure the provider with the instance URL
Wrap the part of your React tree that will render Metabase components in the SDK provider, and pass it the URL of your self-hosted Metabase instance. Keep the URL in environment configuration so development, staging, and production can point at different instances. The provider is also where the authentication setup connects to your app, so the endpoint it calls must be reachable from the browser. The check is that the app starts without provider errors and that the browser can reach the instance URL from the page where the provider is mounted.
Build the server-side authentication endpoint
Create an endpoint on your own backend that identifies the signed-in product user and returns the session data the SDK needs to sign that user into Metabase through SSO. Your backend holds the signing secret, so the browser never sees it. Map each product user to the Metabase user, group, and tenant attributes your permissions depend on, and reject requests from users who are not signed in to your product. The check is that calling the endpoint with a signed-in test session returns a valid response, and that calling it without a session is refused.
Render a first component for a test user
Add one standalone component, such as a single dashboard or chart, inside the provider and point it at a dashboard that a test user is allowed to see. Keep the first component small so that any failure traces back to a single cause. Run the app as the test user in a development browser session. The check is that the component loads with live data from the instance, and that the browser network log shows the authentication request succeeding without errors in the console.
Verify access with a second test user
Sign in as a second test user whose Metabase group does not have access to the dashboard from the previous step, and confirm the component is refused or hidden rather than showing data. Then check a user who does have access and confirm the view matches. Permissions for embedded content come from the Metabase groups and collections you configured, so this test confirms that the authentication mapping carries the right identity. The check is a short written result for each test user showing what they saw and that it matched their permissions.
Record versions and the test result
Write down the Metabase instance version, the installed SDK version, the test users used, and the components that rendered, and store the record alongside the application repository. This record is the baseline for later upgrades, because each Metabase upgrade may require the SDK package to move to a matching dist-tag. Ask your team to confirm the same setup works in the staging environment before any production rollout. The check is a versioned record that another engineer can use to reproduce the setup without asking the original author.
Authentication and embedding options compared
This table compares the Metabase embedding options a React product can use, with the plan each one needs, the user it serves and when it fits. Read the plan column first, because SSO-based embedding is not available on Open Source or Starter. The main takeaway is that the modular SDK for signed-in customers requires Pro or Enterprise, while guest authentication works on every plan.
| Option | Plan requirement | Who it serves | When it fits a React product |
|---|---|---|---|
| Modular embedding SDK | Requires Pro or Enterprise for SSO-based embedding | Signed-in end users of your app | Charts, dashboards or the query builder inside your own React screens, with access managed per component |
| Full app embedding | Requires Pro or Enterprise for SSO-based embedding | Power users who need most of Metabase's interface | When customers need the full Metabase app inside an iframe and modular components are too narrow |
| Public links | Available on all plans, including Open Source | Anyone with the link, no sign-in | Non-sensitive content that may be seen by anyone; not suitable for customer data |
| Guest authentication | Works on all plans, including Open Source | Viewers without Metabase accounts | External viewers where your server signs a token with locked parameters per customer |
| Static embedding (deprecated) | Available on all plans, including Open Source | Viewers without Metabase accounts | Existing integrations only; plan a move to modular embedding or guest embeds instead |
Why SDK and instance versions must match
From Metabase 57 onward, the @metabase/embedding-sdk-react package loads its bundle from your Metabase instance rather than shipping all of its code inside your app. That means the SDK and the instance are no longer two loosely related pieces. The package your React app installs has to line up with the instance it talks to, and Metabase recommends installing the @{major}-stable dist-tag that matches your instance's major version, for example @57-stable for a Metabase 57 instance. Pin to that tag rather than to latest, so a routine npm install never pulls in an SDK built for a different major version than the server it is calling.
The operational risk shows up during upgrades. If you upgrade the instance to a new major version while the app still runs an older SDK, components can fail to render, props can be ignored, or authentication flows can break, and the failure may appear only in the browser of a customer who is using the product. Plan SDK and instance upgrades as one change. Before you upgrade the instance, confirm the target major version and check the Metabase SDK versions documentation for the matching dist-tag. Then move the app to that tag in a staging environment that points at a staging instance on the same version, and test each embedded component you use, including the sign-in path that your MetabaseProvider depends on.
Use the support windows in Metabase version support to schedule this work. LTS releases are supported for 14 months, while non-LTS releases usually reach end of life after 2 months, so an app pinned to a non-LTS line has a much shorter window before it must move. Confirm the end-of-life date for your current and target versions before setting the release date, and keep a record of which SDK version each environment runs so that rollback to the previous instance backup also has a matching SDK version to return to.
Theming the embedded components to match the product
Embedded Metabase components are only useful if they read as part of your product. The decisions below cover the visual baseline, what each plan unlocks, and the checks to run inside the host app before release.
Choose a preset as the baseline
Start from a light or dark preset, which is available on every plan including Open Source. Compare the preset against your product's background, text and accent colors on real screens, not only in the Metabase settings preview. Light and dark presets should be checked separately, since a dashboard that looks correct in one may have unreadable labels in the other. Confirm the current theme option names in the SDK docs before you write any configuration.
SDK docsPlan saved themes on Pro or Enterprise
Saved themes and advanced theming are limited to Pro and Enterprise plans. If your product needs more than a preset, such as custom brand colors or per-customer looks, confirm early whether your target plan includes these options. Ask the vendor which theme settings can be saved centrally and which must be passed per embed, because that decides where the theme definition lives in your codebase.
Override per embed with care
Per-embed overrides let one dashboard or question differ from the rest of the app, which is useful for a single customer-facing report. Keep overrides few and documented, because each one becomes a separate visual state to test after upgrades. Record which embeds carry overrides in your component inventory so a theme change does not silently break a single screen.
Match fonts and spacing to the host
Fonts and surrounding spacing come from both the Metabase theme and your application's CSS, and the two can conflict. Check font loading, line height and the width of the container where the embed sits. Test at the narrow widths your users actually use, since charts and filter bars wrap differently in a small column than on a wide desktop layout.
Check contrast in the host app
Verify text, axis labels, legends and chart colors against the background they sit on, inside your running application rather than a standalone test page. Automated contrast tools help, but they do not check whether a chart series is distinguishable by color alone. Include keyboard focus order and visible focus states in the same review, because the embedded components sit inside your page's accessibility tree.
Retest the look after every upgrade
Theme behavior can change between SDK and instance versions, so keep the SDK package aligned with the Metabase instance and repeat the visual review after each upgrade. Keep screenshots of key embeds in both light and dark modes as a baseline. Confirm with DeployOpen or your own team which screens are covered by automated visual checks and which need manual review.
SDK versions docsHow much effort and cost does an SDK embedding project take?
What drives the cost of embedding Metabase in a React app?
The cost is driven by four things: the Metabase plan and user count, engineering time to build the integration, the authentication work, and the testing needed before release. Metabase's pricing page lists Open Source at no license fee, Starter at $100 per month ($90 per month billed yearly) with the first 5 users included, Pro at $575 per month ($517.50 per month billed yearly) with the first 10 users included, and Enterprise priced by quote starting at $20,000 per year. Additional users cost $6 per month on Starter or $12 per month on Pro. Embedding SSO requires Pro or Enterprise, so the plan choice often sets the baseline. Confirm current figures on the pricing page before you budget, and confirm how embedded users are counted for your model.
Does SSO-based SDK embedding require a paid Metabase plan?
Yes. Metabase's embedding documentation states that all SSO-based embedding requires Pro or Enterprise, while guest authentication works on every plan, including Open Source. The SDK authentication flow relies on SSO, so a React product that signs its own users into Metabase needs one of the paid plans. Verify the current embedding and SSO terms with Metabase before you commit, because the plan rules affect both licensing cost and the authentication design.
What is one-time work and what recurs after an SDK embedding launch?
The one-time work includes designing the component layout, building the authentication endpoint, applying theming, setting up test environments and completing the first integration. The recurring work includes Metabase upgrades, which run application database migrations automatically, and keeping the SDK package aligned with the instance version. Metabase recommends the @{major}-stable dist-tag that matches the instance, and from Metabase 57 the SDK loads its bundle from the instance itself, so each instance upgrade may require a matching SDK update. Ask the vendor or partner to define who owns each recurring task and how often it runs.
What does the product team need to provide for the embedding project?
The product team needs to supply several inputs before build work starts:
- A clear list of the embedded components, such as dashboards, saved questions, the query builder or collection browsing
- The identity model, including how your app's users map to Metabase users, groups and any tenant attributes
- Access to a staging environment that matches production, with the Metabase version your team plans to run
- Design assets and a theming brief, plus any translation needs
- Named decision makers for security review, release approval and support ownership
Without these inputs, the scope and schedule cannot be fixed in a written quote.
Can an in-house engineering team build the SDK integration itself?
Often yes, if the team already has React, server-side authentication and release experience. The work is well defined, but it still needs someone who can own authentication, version matching and upgrade testing over time. Consider whether your team can absorb the upgrade cycle, the security review of the authentication endpoint and the test coverage for each embedded view. A partner is most useful when the team has no spare capacity for a first build or when the security review requires independent testing. Confirm your team's skills and capacity against the written scope before deciding.
What should a written quote for an SDK embedding project include?
A written quote should list the scope, deliverables, assumptions and exclusions before any work begins. Ask for the number of embedded components, the authentication method and plan requirement, the theming and translation work, the test plan and environments, and the handover of documentation. It should also state how upgrades and SDK version alignment are handled, whether they are included or charged as a retainer, and who pays for Metabase licensing. Request a timeline with milestones and the acceptance criteria for each one. DeployOpen provides fixed-scope quotes that follow from the written scope and does not publish a price list.
What hidden effort tends to raise the cost of an SDK embedding project?
The most common sources of extra effort are unclear user and tenant mapping, late changes to the embedded components, theming that goes beyond the presets, and testing across browsers and user roles. Version drift between the Metabase instance and the SDK package can also cost time if it is found late. Plan for these early by fixing the component list, locking the identity model and setting a version policy before the build. Ask the partner to name which of these risks are covered by the quote and which need a change request.
Limits to confirm before you commit to the SDK
The modular embedding SDK depends on your Metabase plan, your front-end toolchain, your browser rendering model and your domain layout. Each of the cards below is a condition to verify in your own environment before you commit the build to a React product.
Plan requirements for SSO-based embedding
Any embed that signs end users into Metabase with SSO requires a Pro or Enterprise plan, while guest authentication works on every plan, including Open Source. Confirm which authentication method your product needs before you size the license. If your design depends on per-customer data isolation or row-level permissions, check those features against the same plan table, because they sit in the same tier. Ask your Metabase contact to confirm the current plan terms in writing.
Embedding docsSupported React and build tooling
The SDK is a React package, so your React version, bundler and TypeScript configuration all need to be on the vendor's supported list. Confirm these against the SDK docs for the Metabase version you plan to run, not an older example. Check how your build handles the package's bundle loading, since from Metabase 57 the SDK loads its bundle from the Metabase instance. Test this in a staging build before the design is locked.
SDK docsClient-side rendering constraints
Embedded components render in the browser, so server-rendered pages, server components and some meta-framework routing patterns may need extra work. Confirm how your framework renders the page that hosts each component and where the authentication call runs. Components that render before the session exists can fail in ways that look like a styling problem. Ask for a proof of concept on the exact rendering mode your product uses.
CORS and cookie behavior across domains
If Metabase runs on a different domain than your app, the browser's cookie and CORS rules decide whether the session survives. Confirm the allowed origins for the SDK and the SameSite setting for the session cookie in your deployment. Test sign-in and reloads in each browser your customers use, including sessions that cross subdomains. Treat any relaxed cookie setting as a security decision that needs review, not a quick fix.
Current component list in the SDK docs
The SDK exposes a set of components such as charts, dashboards and the query builder, and the list changes between releases. Confirm that every component your roadmap needs exists in the version you will run, and that its access and interactivity options cover your permission model. Record the version you verified so later upgrades can be checked against the same list. Components missing from the list may need a different embedding method.
SDK versions docsHow DeployOpen approaches the embedding build
DeployOpen starts an SDK embedding project with a written scope that names every Metabase component the React app will render, such as a standalone chart, a dashboard, the query builder or collection browsing, and the user types who will see each one. The scope also records the authentication method, the Metabase edition and the hosting location, because those decisions decide whether SSO-based embedding is available at all. Under the pricing and embedding facts supplied for this topic, SSO-based embedding requires Pro or Enterprise, so the written scope should confirm the plan before any code is written. The client confirms the scope, deliverables and acceptance checks in writing before work begins.
The build runs inside the client's own infrastructure: the Metabase instance, its application database and the React app's build and hosting environment. DeployOpen wires the SDK provider to the authentication endpoint that the client's backend exposes, keeps signing secrets in the client's secret store, and sets the SDK version to match the Metabase instance. Per the supplied SDK facts, the package loads its bundle from the instance from Metabase 57 onward, and Metabase recommends the @{major}-stable dist-tag that matches the instance. Theming and access settings are applied per component, so each embed is tested as configured rather than assumed to inherit the application's defaults.
Testing uses accounts that carry the client's own roles, groups and tenant or collection permissions, not administrator accounts, because an admin view hides the access problems that matter most in a customer-facing product. DeployOpen checks that each user sees only the dashboards, questions and collections their role allows, and that the query builder does not expose data outside the permitted scope. The handover documents the exact SDK version, the Metabase version and the dist-tag in use, the steps to check alignment, and the upgrade sequence to repeat when either side changes. Ask the team to confirm the current release and support dates on the Metabase version support page before planning the first upgrade.
How DeployOpen works on this
DeployOpen plans, builds, tests, documents and supports the React embedding of Metabase inside infrastructure you control. Each engagement starts with a written scope that fixes which components, authentication path, theming and version pairing are in and out, so your product and security teams review the same plan before any code is written.
How we scope
- Written scope lists which SDK components go into your React app, such as dashboards, questions, the query builder or collection browsing.
- Scope records the authentication path your product uses to sign viewers into embedded Metabase, and which plan that path requires.
- Scope confirms the Metabase instance version and the matching SDK dist-tag, with the upgrade path agreed before build starts.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work begins. Ongoing support is available as a retainer.
How we build
- We implement the SDK in your React application, with the authentication endpoint built on your own server side in your environment.
- Theming, locale and per-component access are configured against your product's design and your agreed access rules.
- Testing covers unauthorized data access through embedded components, token handling, and behavior when the SDK and instance versions differ.
- Build work runs in your own environments, so the code, secrets and Metabase instance stay under your control throughout.
How we hand over
- Documentation covers the component map, authentication flow, version pairing rules and the steps to change them later.
- Handover includes runbooks for rotating the signing secret, redeploying the Metabase instance and validating an upgrade in staging first.
- Your engineers receive the code, configuration and test evidence your compliance and security reviewers need for the embedding design.
How we support
- Retainers cover SDK version updates that must follow each Metabase upgrade, so the React app and instance stay on matching releases.
- Ongoing support can include periodic re-testing of embedded access controls after changes to your app or Metabase configuration.
- Before any upgrade, we confirm the Metabase upgrade and rollback approach with your team so the embedded dashboards remain available.

