Exporting your Bubble app
Bubble allows you to export your app. Using the Bubble MCP (beta), an AI agent can read your app's design and functionality and recreate it in code. This is effective, but doesn't guarantee perfect fidelity. Your app data can be exported directly from the Bubble editor. With a code version of your app and its data, you can then continue building and hosting your app on another platform.
The process gives you a strong starting point, not a finished app. Bubble takes care of a lot behind the scenes, from hosting and security to user accounts and backups. Once you move your app, each of those becomes something you set up and run yourself. This article walks through what that involves, so you can plan the move, or decide whether it's the right move for you.
How it works
The agent connects to your app through the Bubble MCP and reads what's in it: your data types and fields, option sets, pages/views and elements, workflows, and privacy rules. The agent then recreates your app in code based on what it finds, in the language and framework you choose.
Your app's pages, data structure, and workflows
Hosting for your app and its backend
Read access to your app's data
A database, and the migration of your data into it
A map of your app that the agent works from
User accounts, authentication, and access control
File storage, domains, monitoring, and backups
Before you decide
Moving your app to code is a big project, and for some teams it's the right one. Here are the most common reasons people make the move, and what each one involves in practice:
Your team has developers who want to work in code
Rebuilding in code can be a good fit. Plan for the ongoing maintenance your team will take on.
You need a specific stack or infrastructure, for example for a company standard or a compliance requirement
Rebuilding in code can be a good fit. Check that your target setup covers everything in the next section.
You want to own your app and avoid being locked in
Rebuilding in code may be a good fit. Since you can export your app and your data at any time, you can test an alternative setup alongside your Bubble app before deciding.
You want to expand beyond Bubble's capabilities
Before you move, check whether you can add what you need inside Bubble, with a plugin, the API Connector, or custom code in an HTML element. If the scope of your project goes beyond what those options can cover, rebuilding in code can give you the flexibility you need.
You're comparing the total cost of running your app
Costs in code are spread across multiple providers and services, so it can help to list them all before you compare.
What Bubble handles today, and what replaces it
Bubble takes care of a lot that you don't see while you build. Each section below maps one area of Bubble to its equivalent in code, with tips for setting it up. Many of these pieces come built into good hosting, database, and authentication providers, so you won't need to build them all yourself. Together the sections work as a checklist for your rebuild.
Rebuilding your app step by step
Once you've planned what replaces each part of Bubble, you can start rebuilding.
Moving your users and data
Passwords and logins
There are two ways to handle this:
Ask users to reset their password
When you switch over, users set a new password the first time they log in to your new app.
Simple to set up. Let your users know ahead of time, so the reset doesn't come as a surprise.
Use your Bubble app as a login provider
Your Bubble app works as an OAuth identity provider for your new app. Users log in with their existing Bubble credentials, and your new app trusts that login.
Users keep their current password during the transition. Your Bubble app needs to keep running for as long as you use it this way.
Using your Bubble app as a login provider can work as a bridge. Your users can keep logging in as usual while you ask them to set a new password, or move them over gradually, and you can turn off the Bubble login once everyone has moved.
Exporting your database
There are three ways to get your data out of Bubble. Which one fits best depends mainly on how much data your app has:
Exporting from the editor
Exporting with the Data API
The Data API lets a script read your app's records directly, so you can move all your data in one automated run instead of exporting each data type by hand. You can ask your AI agent to write the script for you.
To use it, enable the Data API in the Settings tab, under the API section, and select the data types you want to expose. The script then reads each data type page by page, and writes the records to your new database.
Files
Your CSV and JSON exports include a URL for each file and image in your database. To move your files, download each one from its URL, upload it to your new storage, and update the URL in your new database. For more than a handful of files, you can ask your AI agent to write a script that does this for you.
Keeping data in sync
While both apps are running, your Bubble app keeps receiving new data. Plan how to handle this: either a final sync just before you switch, or a short period where the app doesn't accept changes. Searching for records by Modified Date can help you find what's changed since your last sync.
Switching over
After you've moved
Once your app is live on its new setup, a few tasks become part of your regular routine. Much of this can be automated, and good hosting and authentication providers take care of parts of it for you.
Security updates
Keeping dependencies, runtimes, and servers up to date
Turn on automated dependency updates and security alerts in your code repository
Monitoring
Knowing when something breaks, and fixing it
Set up error tracking and uptime alerts, and decide who gets notified
Backups
Backing up your data and being able to restore it
Use your database provider's automatic backups, and test a restore now and then
Scaling
Adjusting capacity as your traffic changes
Review your usage regularly, or use a platform that scales automatically
Compliance
Meeting your customers' and your industry's requirements
Keep a list of your providers and their compliance reports, so you can answer customer requests
Costs
Tracking hosting, storage, and third-party services
Set up billing alerts with each provider
FAQ: Rebuilding your app outside Bubble
Last updated
Was this helpful?