How a Metabase embedding SDK upgrade keeps your embeds in step
If your application embeds Metabase charts or dashboards through the modular embedding SDK, the Metabase instance and the @metabase/embedding-sdk-react package have to move together, and the rule for matching them depends on the Metabase major version. From Metabase 57, the package loads its SDK bundle from the instance itself, and Metabase recommends installing the @{major}-stable dist-tag that matches the instance. On 56 and earlier, the SDK major must match the Metabase major. The modular embedding SDK requires Metabase 52 or later, so any instance older than that is outside what this approach supports before you even reach the version rules.
Drift happens for ordinary reasons. Someone upgrades the instance on a Monday and the front-end team picks up a new package version on Thursday. A CI job resolves latest for a dependency that was pinned by accident. Or an application stays on an older React build while the SDK moves on. The SDK also requires React 18 or 19 and Node.js 20 or higher, and Metabase 66 drops React 18 support, so a React upgrade in your application can turn a routine instance upgrade into a compatibility decision. Confirm the exact React and Node.js requirements for your target version in the Metabase SDK documentation before you change either side.
The rest of this page walks through the decisions in order: choosing the dist-tag and pinning it, handling React version support across the upgrade window, planning how Metabase Cloud and self-hosted instances differ on pinning, and testing embeds in a staging environment before rollout. Use the Metabase SDK version documentation as the reference for the version matrix, and check it again on the day you upgrade, because the supported combinations are the part most likely to change.
What changes in the SDK from version 52 onward
This table lists the version rules that govern the modular embedding SDK from its minimum supported Metabase version onward. Read each row against your current Metabase major and React version to see which embeds need action. The main takeaway is that the SDK version you install depends on whether your instance is at 57 or later, and React 18 hosts need a plan before Metabase 66.
| Change | Impact on embeds | Action needed |
|---|---|---|
| Minimum supported Metabase version is 52 | Modular embedding SDK does not work against instances older than 52 | Confirm your instance is at 52 or later before planning SDK work |
| Metabase 56 and earlier require matching majors | The SDK major must equal the Metabase major or embeds may fail | Install the SDK version that matches your instance major |
| From Metabase 57 the bundle loads from the instance | The SDK fetches its bundle from your Metabase, so versions must stay aligned | Install the @{major}-stable dist-tag matching your instance |
| Node.js 20 or higher is required | Build pipelines on older Node versions fail to install or compile the SDK | Check Node version in build and CI images before upgrading |
| React 18 or 19 is required | Apps on other React versions cannot render the embedded components | Confirm your host application's React major is 18 or 19 |
| Metabase 66 drops React 18 support | Embeds in React 18 host apps stop working once the instance moves to 66 | Plan a React 19 upgrade in the host app before moving to 66 |
| Metabase 64 LTS supports staying on React 18 | Instances held on 64 LTS keep React 18 embeds working in this line | Confirm the 64 LTS end-of-life date in the version support facts before choosing this path |
Which version path your embeds need
Start with the Metabase version your instance runs, then follow the branch that matches it. On 56 or earlier, the SDK major must match the Metabase major. On 57 or later, install the @{major}-stable dist-tag that matches the instance. Next, check the React version your application runs: React 18 means staying on 64 LTS or planning the move to React 19 before Metabase 66, and React 19 means you can proceed. Every path ends at the same step: test your embeds in a staging environment before rollout.
Decision path from the current Metabase version to a pre-rollout embed test.
How pinning differs on Metabase Cloud and self-hosted instances
On a self-hosted instance, your team decides when the Metabase version changes, because you replace the JAR or container image yourself. The SDK is a separate npm dependency in your application, so the two versions can drift apart unless you decide on both. Pin both in your application lockfile and record the pair in your change record before the upgrade is approved.
- Instance version: Set the exact image tag or JAR version in your deployment manifest. Record it next to the SDK version so reviewers can see both in one place.
- SDK version: Install the dist-tag that matches the instance major, for example
@64-stablefor an illustrative Metabase 64 instance, and commit the resolved version to your lockfile such aspackage-lock.json. - Order of changes: Upgrade the staging instance first, then move the application branch to the matching SDK. From Metabase 57, the SDK bundle loads from the instance, so the instance version governs what the SDK runs against.
- Automated updates: If you use a dependency bot, configure it to open a pull request for SDK bumps so a person reviews the pairing before merge.
- Build prerequisites: Confirm that your build image runs Node.js 20 or higher and that your application uses React 18 or 19.
Before approval, check that the instance version, the SDK dist-tag and the lockfile entry all name the same Metabase major.
On Metabase Cloud, Metabase operates the instance, so your team does not set the server version in a deployment manifest. The SDK still lives in your application, and your team still pins it in the lockfile. The supplied information does not describe how pinning works on Cloud or when Cloud upgrades arrive, so confirm both with Metabase before you write the upgrade plan.
- Pinning options: Ask Metabase whether your plan lets you hold an instance on a specific version, and for how long that hold lasts.
- Upgrade timing: Ask when Cloud instances receive new major and minor releases, how you are notified, and whether you can schedule a window or test a release on a non-production instance.
- Staging parity: Ask whether a staging Cloud instance can run a different version from production, since the SDK must match the instance it calls.
- Application pin: Pin the SDK with the dist-tag that matches the Cloud instance major, and add a CI check that fails when the two majors differ.
- Written answers: Keep Metabase's answers in your change plan. They determine how often you must rerun embed tests.
Do not schedule an embed release until these answers are documented and your staging instance matches the plan.
Most teams run development, staging and production copies of an embedded application. Pinning holds across those environments when each one has a recorded Metabase and SDK pair and the team promotes the same tested build through each stage. This applies to self-hosted and Cloud instances alike, though the Cloud answers from the previous tab set the limits on what each environment can run.
- Environment matrix: Keep a table of each environment, its Metabase version and its SDK version. For example, staging might run a newer major while production stays on the previous one, as an illustrative setup.
- Artifact promotion: Promote the tested build artifact instead of rebuilding for each stage, so the lockfile that passed embed tests is the one production runs.
- Drift checks: Run a CI job that fails when the SDK major differs from the target instance major for that environment.
- Version rules: On Metabase 56 and earlier, the SDK major must match the Metabase major. From Metabase 57, the SDK loads its bundle from the instance, so check the rule that applies to each environment's version.
- Minimum version: Version 52 is the minimum Metabase version for the modular embedding SDK, so older environments cannot follow this pattern without an upgrade first.
Before any promotion, confirm that the target environment appears in the matrix with a matching pair.
What to inventory and back up before you change any version
Before you move either side of an embed, record what depends on what. The SDK package, the Metabase instance, the React and Node.js runtimes, and the authentication path behind each embed all have to line up, so the inventory and backup come first.
Inventory every SDK consumer
List each application, repository and environment that installs @metabase/embedding-sdk-react, with its current package version, React version and Node.js version. Include internal tools and staging builds, not only the customer-facing product. The SDK requires React 18 or 19 and Node.js 20 or higher, so any application below those floors needs a runtime change in the same plan. Record which Metabase instance each consumer points at, since the SDK major must match the instance.
Back up the application database
Take a backup of the Metabase application database before you swap the JAR or container image. The application database holds saved questions, dashboards, permissions, embedding settings and users, and it is the restore point if the upgrade fails. Confirm the backup completes, that you can restore it into a scratch database, and that the restore is tested with the same Metabase version that created it. Keep the backup until the upgraded embeds pass testing.
Upgrading Metabase docsClassify each embed by type
For every embed, record whether it is modular, full app, a public link, a guest embed or a legacy static embed. Note the authentication method each one depends on. Guest authentication works on every plan, including open source. All SSO-based embedding requires the Pro or Enterprise plan, so an embed that relies on SSO cannot be verified on a lower plan. Flag any static embeds, which are deprecated, for a separate migration decision.
Embedding introductionMap identity and data permissions
Document which users, groups, tenants and data permissions each embed uses, including any row and column security rules. Embeds that pass a user identity or attributes depend on the identity provider and group mapping staying the same after the upgrade. Export or screenshot the permission configuration so you can compare it after the upgrade. A change in how a group or attribute resolves can expose data or hide it from customers.
Build a staging environment
Stand up a staging Metabase and application database that mirrors production identity, data source connections and permissions, then restore a recent copy of the production application database into it. Point a copy of each SDK consumer at staging. Use test identities that match the roles your customers hold, so you can confirm that each embed shows the right data before the change reaches production. Staging is also where you practice the rollback path.
How to sequence the Metabase embedding SDK upgrade
This sequence keeps the Metabase instance and the @metabase/embedding-sdk-react package moving together, with a rollback point after the backup and after the instance upgrade. Each step closes with a check so the next step starts only when the previous one is verified.
Freeze SDK and embed changes
Stop merging changes to the embedding code and the SDK version in your application repository for the duration of the upgrade window. The engineering lead records the current Metabase version, the current SDK version in the lockfile, the React and Node.js versions in use, and the list of embedded pages and their owners. Done means the baseline is written down and a snapshot of the current lockfile and deployment manifests is stored where it can be restored.
Back up the application database
The platform or database team takes a backup of the Metabase application database before anything else changes, and confirms the backup can be restored by checking it in a separate environment. This backup is the first rollback point, and the restore path it enables is the recommended way to reverse an upgrade. Done means the backup file or snapshot exists, its restore has been tested outside production, and the backup time and version are recorded in the change ticket.
Reduce the cluster to one node for major upgrades
If the target is a major release and the instance runs as a cluster, the operations team scales it to a single node because the upgrade's application database migrations take a migration lock. The orchestrator must be told not to restart or replace that node during the migration. Done means only one Metabase node is running, the migration lock is not held by a second node, and the orchestrator settings that could kill the migration are confirmed to be paused.
Upgrade the Metabase instance
The platform team moves the instance to the target Metabase version by changing the JAR or the pinned container image, then starts it and watches the logs for application database migration messages. Confirm the version shown in the admin settings and the health endpoint match the target, and that the instance answers requests. Done means the instance is on the new version, migrations have completed without errors, and this is the second rollback point, documented with the version and backup reference.
Move the SDK to the matching dist-tag
The frontend team installs the @{major}-stable dist-tag that matches the upgraded Metabase instance in the application's package manifest, then updates the lockfile. From Metabase 57, the package loads the SDK bundle from the instance, so the tag must match the instance major. Done means the lockfile resolves to the matching version, a clean install succeeds, and the build passes without peer dependency warnings that would indicate a mismatch.
Align React and Node.js with the requirements
The frontend team checks the React and Node.js versions in the build and runtime against the SDK requirements, which are React 18 or 19 and Node.js 20 or higher. If the target Metabase is 66 or later, React 18 is no longer supported, so the upgrade must include the React change or the team must stay on a release line that still supports React 18. Done means the build image and the application's runtime both report supported versions and the application starts without peer conflicts.
Test embeds in staging before rollout
Deploy the updated application and the upgraded instance to a staging environment that mirrors production data permissions, SSO settings and embed configuration. The QA owner runs each recorded embedded page for each relevant user group, checking rendering, filters, permissions, theming and sign-in. Done means every embedded page on the inventory is signed off in writing by its owner, and any failures are fixed and retested before the production change is scheduled.
Roll out and confirm embeds in production
Deploy the verified frontend build to production, restore the cluster to its normal node count, and re-check the embedded pages against the staging sign-off list. Keep the previous frontend build and the backup available until the owners confirm the release is stable. Done means production embeds render for each test user group, the node count matches the baseline, and the change record shows the final versions of Metabase, the SDK and React.
How to test embeds before rollout and what to check
Test every embed in a staging environment that runs the target Metabase version and the target @metabase/embedding-sdk-react package together, using the same React and Node.js versions as production. Start by confirming the instance and the package match: from Metabase 57 the SDK loads its bundle from the instance, so the @{major}-stable dist-tag you install should match the Metabase major running in staging. Then check rendering for each embed type your application uses, whether that is modular embedding components, full app embedding, public links or guest embeds. Load each page with realistic data volumes, confirm charts, filters and dashboard cards render without console errors, and record the exact versions you tested so the evidence can be reproduced later. Verify the modular embedding SDK is available in your target version, since it requires Metabase 52 or later.
Sign-in and permission checks matter more than rendering. For each user role your application serves, sign in through the same path production uses, whether that is SSO for Pro or Enterprise or guest authentication, and confirm each role sees only the collections, dashboards and data it should. Test the boundary cases: a user who should be denied, a user whose group membership changed recently, and a tenant or row-level restriction if you rely on one. Repeat these checks after the upgrade because permission behavior can change between releases. Also confirm that customized styling and translations still apply, since theme settings and translated strings are common places for silent regressions after a version change.
Finish with the build itself. Run your production build under the target Node.js version, which the SDK requires to be 20 or higher, and under the React version your application uses, confirming that the SDK supports it: the SDK requires React 18 or 19, and Metabase 66 drops React 18 support. If you are on React 18 and cannot move yet, ask whether staying on Metabase 64 LTS fits your plan, and record that decision. Compare the bundle output and any peer dependency warnings against the previous release, and treat new warnings as blockers until your team has reviewed them. Keep the staging results with the upgrade record so the rollback decision has the same evidence as the go-live decision.
What makes a Metabase embedding SDK upgrade take longer
This table lists the factors that most often stretch an embedding SDK upgrade and explains why each one adds work. Read each row as a question to answer before you plan the window, since several drivers interact, such as a React change combined with a cluster that needs a single-node migration.
| Driver | Why it adds effort | What to check early |
|---|---|---|
| Number of applications and environments embedding Metabase | Each application has its own package version, build pipeline and release schedule, so the SDK pin and the instance must be matched in every one. | List every app and environment (dev, staging, production) that loads the SDK and who owns each release. |
| React major change from React 18 | Metabase 66 drops React 18 support, so an application still on React 18 must move to React 19 or stay on Metabase 64 LTS. | Confirm your current React major and whether the target Metabase line is one that still supports it. |
| Number of embed types and auth methods | Modular embedding, guest embeds, public links and SSO-based embedding each have different settings and test paths, and SSO-based embedding requires a Pro or Enterprise plan. | Inventory each embed type, its authentication method and the plan that covers it. |
| Size of the application database to back up | A larger application database takes longer to back up, verify and restore, and the backup must exist before migrations run. | Measure the current application database size and confirm your backup and restore process on a copy. |
| Multi-node cluster needing a single-node window | The docs recommend reducing a cluster to one node for major upgrades because of a migration lock, so capacity and traffic must be planned around that window. | Confirm node count, load balancer behavior and whether embedded dashboards can tolerate downtime. |
| Custom styles and translations | Themes, fonts and translated strings must be retested against the new SDK components, and visual changes often surface only in review. | Count custom themes and locales and identify who signs off on the rendered embeds. |
How to roll back an embed upgrade without losing content
The recommended route for rolling back a failed Metabase upgrade is to restore the application database backup you took before the upgrade, then start the previous Metabase JAR or image. The alternative is running the migrate down command with the newer JAR, which the upgrade documentation lists as a supported path. Either way, the two sides of an embed deployment must return together. On the Metabase side, roll back the instance version. On the application side, change the @metabase/embedding-sdk-react version in package.json back to the release that matches the restored instance, rebuild, and redeploy. The SDK package rollback is only a version pin in your application, so it is quick, but leaving the package on a newer major than the instance will break embeds in ways that look like a Metabase fault.
A database restore does more than undo the upgrade. Every dashboard, saved question, collection change, embed-related setting and permission edit made after the backup was taken is lost when the restored file replaces the current application database. Before you restore, list what changed in that window. Ask the people who published content during the upgrade window, and check the Metabase admin for dashboards and collections modified since the backup time. Decide for each item whether to re-create it on the restored version, keep it in a staging instance for later replay, or accept the loss. Embed settings deserve particular care, because an embedded dashboard that disappears or changes permissions will be seen by your customers, not only by internal users. Agree the decision in writing before the restore starts, so the team does not improvise under pressure.
Running migrate down with the newer JAR keeps the post-upgrade content in place, but it only works if the downgrade path is supported for the versions you are moving between, and it is harder to verify than a restore. Confirm that path against the upgrade documentation for your exact versions before relying on it, and test it on a copy of the instance first. Whichever route you choose, rerun your embed test suite against the restored pair: render each embedded dashboard, confirm guest and SSO sessions still authenticate, and check that the SDK bundle loads from the instance without version errors. Record the pinned SDK version and the Metabase version together in your change log, so the next rollback starts from a known matching pair.
What buyers ask before a Metabase embedding SDK upgrade
What drives the cost of a Metabase embedding SDK upgrade?
The main cost driver is how many embeds, React applications and environments the upgrade touches, along with how much of the embed behavior you have customized. A fixed-scope quote should list the embed inventory it covers, the React and Node.js versions in each application, the target Metabase version and dist-tag, the staging environments used for testing, and what happens to embeds that cannot move yet. Ask whether the quote includes a retest after the rollout. Costs recur only if you choose ongoing support or retainers, which are optional.
How long does the upgrade take, and what sets the duration?
Duration depends on the number of embeds, how many frontend codebases consume the SDK, how much the React or Node.js runtime must change first, and how quickly your staging environment can be refreshed for testing. The Metabase SDK documentation sets the version rules you need to plan around, but it does not give a general effort estimate, so confirm sizing against your own inventory before agreeing a timeline. A written scope should state the milestones and the testing window.
What does our team need to provide before work starts?
Expect to provide access to a staging Metabase that runs the same version as production, a current inventory of every embed with its component type and host application, and the identity configuration used for embedded sessions, including SSO or guest authentication settings. You will also need the source repositories for each embedding application, a named owner who can approve changes, and a list of user journeys that must keep working after the upgrade.
Can our internal team run the upgrade alone?
Yes, if the team has frontend engineers who know the host application, someone who can manage the Metabase instance and its application database, and people who can test embedded views with real identities. The work needs React, Node.js and package management skills, plus enough Metabase administration knowledge to pin versions and run an upgrade safely. Many teams keep the Metabase upgrade in-house and bring in a partner only for the embed testing or the rollout plan. Confirm each skill gap before deciding.
What happens if our application still runs React 18?
The SDK requires React 18 or 19 and Node.js 20 or higher, so React 18 applications can run on current SDK versions, but Metabase 66 drops React 18 support. If you plan to move to Metabase 66 or later, the React upgrade becomes part of the same project. Metabase 64 LTS is the documented option for staying on React 18 for longer. Check the support window and dependency changes with Metabase before choosing a target version.
How should we confirm that Metabase Cloud is pinned to the right version?
Confirm the version pin with Metabase directly, using the account and support channels for your plan, and record the agreed version in your change documentation. Then install the SDK using the dist-tag that matches that major version, and verify the package version in each application's lockfile. From Metabase 57, the SDK loads its bundle from the instance, so a mismatch shows up as failing embeds rather than as a build error. Test a staging embed against the pinned version before each rollout.
What does the minimum supported version mean for older embeds?
Version 52 is the minimum Metabase version supported for the modular embedding SDK, so any embed that depends on an older instance will need the instance upgraded before the SDK can be used. Confirm with Metabase which SDK features your embeds use and whether each one is available on your target version. Embeds that use static embedding or other older methods follow different paths, so list them separately in the inventory rather than assuming the SDK upgrade covers them.
How DeployOpen scopes and delivers an embedding SDK upgrade
DeployOpen treats an upgrade of the modular embedding SDK as two linked changes: the Metabase instance and the React application that embeds it. The work is scoped in writing, built and tested in a staging copy of your environment, then handed over with the version pairing and rollback steps documented for your own team.
How we scope
- The written scope lists which Metabase instance, SDK package and React application versions are in play before work starts.
- Scope covers a check of the React version against the SDK requirement, and the Node.js version used by your build.
- Scope names each embed surface to test, such as modular embeds, SSO-based embeds and guest embeds, with the owners who sign off.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
How we build
- We pin the @metabase/embedding-sdk-react version to the @{major}-stable dist-tag that matches your Metabase instance.
- We confirm the React major version in your application is supported by the target Metabase release before changing any package.
- We take an application database backup and run the Metabase upgrade and the SDK change in a staging copy first.
- We test each embed in staging for rendering, authentication and permissions, and record the results for your review.
How we hand over
- You receive a record of the Metabase and SDK version pairing, the dist-tag used and the reason for each choice.
- Documentation covers the pinning approach on Metabase Cloud or self-hosted instances, including how the version is locked in your repository.
- A rollback runbook describes restoring the pre-upgrade application database backup and reverting the package version together.
- Your team receives the embed test checklist so later upgrades repeat the same checks without us.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers for future Metabase and SDK releases.
- A retainer can cover re-testing embeds when a new Metabase release reaches your plan, before your production rollout.
- Confirm with the vendor and your own environment which Metabase releases and React versions your embeds depend on before you sign off the scope.

