# Bubble App Migration and Workload Auditor (`bodacious_mistral/bubble-migration-auditor`) Actor

Audit a Bubble app from its export file or public URL: pages, data types, workflows, plugins, workload indicators, a 0 to 100 readiness score for a move to Cloudflare, a complexity tier and an ordered migration checklist. Read-only, no login. Pay per completed audit.

- **URL**: https://apify.com/bodacious_mistral/bubble-migration-auditor.md
- **Developed by:** [Red Center Studio](https://apify.com/bodacious_mistral) (community)
- **Features:** Limited permissions, Multi-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $50.00 / 1,000 apps audited

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Bubble App Migration and Workload Risk Auditor

Find out what a Bubble® app is made of and how ready it is to move to Cloudflare Workers, D1 and R2. Give it a public app URL for a quick passive check, or give it the app's export file for the full picture: pages, data types, workflows, plugins, API calls, searches, workload indicators, a 0 to 100 migration readiness score, a complexity tier and an ordered migration checklist. Everything is read passively: no login, no form posts, no crawling beyond the page you give and the static files it references.

### Pricing

This Actor uses pay-per-event pricing. You pay for results, not for compute time.

| Event | Price | When it is charged |
|---|---|---|
| `app-audited` | $0.05 | Once for each app audit that completes |

- **One event per successful audit.** `app-audited` is charged once for each audit that completes. Failed audits (not a Bubble app, unreachable address, invalid export file) appear as `status: "error"` rows and are not charged.
- **Run start.** Apify also charges its own small run-start event (`apify-actor-start`) for runs started from the Console or the API with an input. This Actor does not charge it in code; it is Apify's standard event and it is not free. Tool calls over MCP in Standby mode are charged one `app-audited` event each.
- Set the maximum cost per run in the run options. When the limit is reached the Actor stops cleanly, keeps every result it already produced and says so in the log.
- Example: 10 apps audited cost $0.50 in `app-audited` events ($50.00 per 1,000), plus Apify's run-start event for each run.

### Input

| Field | Type | Default | Notes |
|---|---|---|---|
| `apps` | array | `[{"appUrl":"https://bubble.io"}]` | One entry per app, up to 200 per run. Press Start with no changes to see a real result. |
| `apps[].appUrl` | string | none | A public Bubble app URL. Passive checks only (about 8 GET requests). |
| `apps[].exportUrl` | string | none | An https link to the `.bubble` export file. Maximum 60 MB. |
| `apps[].exportJson` | object or string | none | The export file content pasted as JSON. Maximum 60 MB. |

Each entry has exactly one of `appUrl`, `exportUrl` or `exportJson`. A plain string also works: a link ending in `.bubble` is read as an export file, anything else as an app URL.

### How to get the export file from Bubble

1. Open your app in the Bubble editor.
2. Go to **Settings > General** and find **Export application**.
3. Download the file (it has the extension `.bubble` and contains JSON).
4. Upload it somewhere reachable by https and paste the link as `exportUrl`, or paste its content as `exportJson`.

The file holds the structure of the app. It does not hold database records or uploaded files. Passwords and keys stored in the app settings are never copied into the output: only the number of stored tokens and whether a connector has stored credentials are read.

### Output

One dataset row per app. The table view (`Overview`) shows these flat columns: `app`, `mode`, `status`, `readinessScore`, `complexityTier`, `pages`, `dataTypes`, `workflows`, `plugins`, `apiCalls`, `bundleKb`, `indicatorsCount`, `topIndicator`, `error`. The detail is nested under `details`, `workloadIndicators`, `checklist` and `nextSteps`.

Trimmed real row from the included synthetic sample app (made-up names, produced by running the Actor code; the full output is in `samples/output.json`):

```json
{
  "app": "Demo Garden Club",
  "mode": "export",
  "status": "ok",
  "readinessScore": 77,
  "complexityTier": "Starter",
  "pages": 4,
  "dataTypes": 3,
  "workflows": 10,
  "plugins": 3,
  "apiCalls": 3,
  "bundleKb": null,
  "indicatorsCount": 9,
  "topIndicator": "recursive_backend_workflows",
  "error": null,
  "workloadIndicators": [
    {
      "id": "recursive_backend_workflows",
      "severity": "high",
      "evidence": { "count": 1, "where": [{ "location": "backend:send_digest", "count": 1 }] },
      "why": "These backend workflows schedule or trigger themselves, directly or through another workflow. ..."
    }
  ],
  "checklist": [
    { "order": 1, "step": "Export the database and the stored files separately", "why": "...", "evidence": { "dataTypes": 3, "fileFields": 2 } }
  ]
}
```

A URL-mode row for a live public app (bubble.io, 3 Dec 2026) has `mode: "url"`, `plugins: 10`, `bundleKb: 18615.7`, and `null` for every field that cannot be known from outside (`readinessScore`, `complexityTier`, `dataTypes`, `workflows`, `apiCalls`). `details.notMeasurable` lists each of them with the reason "not measurable from public data".

#### Workload indicators

`workloadIndicators` lists structural patterns found in the app, each with an `id`, a `severity` (`info`, `low`, `medium`, `high`), `evidence` (counts and where) and `why`. They are indicators of where an app does more work per page view or per run, such as a search inside another search, a search inside a repeating group cell, the filtered operator applied after a search, recursive backend workflows, scheduled and recurring workflows, bulk list actions, database triggers, and very large pages. **Workload Units cannot be measured from outside the app.** These indicators are not Workload Unit counts and the Actor does not estimate a bill. Counts such as how often a page is opened or how long a list is at run time are not in the file. Page-size and repeating-group thresholds are set by this Actor (250 elements, 8 repeating groups) and are not Bubble limits.

#### Migration readiness score

The score starts at 100 and loses points for things that need work when moving to Cloudflare Workers, D1 and R2. It is deterministic: the same input always gives the same score. What maps cleanly costs nothing: data types and fields (D1 tables and columns), option sets (lookup tables or constants), file and image fields (R2 objects), pages and elements (code), and workflows without the patterns below.

| What needs work | Points per unit | Maximum |
|---|---|---|
| Marketplace plugins (each needs a manual check for a replacement) | 4 | 20 |
| Other plugins listed in settings | 1 | 4 |
| API Connector calls needing credentials | 1.5 | 12 |
| Nested searches | 1 | 8 |
| Filtered operator over a search | 0.5 | 8 |
| Searches inside repeating group cells | 0.25 | 6 |
| Recursive backend workflows | 3 | 9 |
| Scheduled and recurring workflows (schedule steps, recurring events, interval events) | 0.5 | 5 |
| Database trigger events | 1 | 4 |
| Pages with 250 or more elements | 1.5 | 6 |
| Data types without privacy rules | 1 | 5 |

The result is rounded to a whole number. `details.scoreBreakdown` shows the units and the penalty for every row. The score says how much work and review the move needs; it does not say whether the move will succeed.

#### Complexity tier

The tier follows the page-count bands of App Mover (App Mover prices are on its own page, not here).

| Tier | Pages in the export |
|---|---|
| Starter | up to 10 |
| Standard | 11 to 30 |
| Complex | 31 or more |

Pages are counted as they appear in the export, including built-in pages such as the 404 and reset password pages. `details.tierBasis` also gives the matching App Mover band (small, standard, large, or beyond large above 80 pages).

### What URL mode can see

URL mode only reads what a browser receives. For each app it confirms that the page is a Bubble app (at least 2 of 5 markers must be present, otherwise the item fails with a clear error and is not charged), then reports:

- Bubble app id, version label and page name read from the page.
- JavaScript and CSS bundle weight: the sum of the first-party bundles the page references, measured after decompression.
- Number and hosts of external scripts.
- Plugin ids visible in the page headers (names are not visible from outside, and a plugin that adds nothing to the page headers is not visible).
- Page count when the app publishes a `sitemap.xml` with page entries.
- Whether the HTML is an empty client-rendered shell (no readable text before JavaScript runs).

For reference, on 3 Dec 2026 the three public apps used to build the detectors (bubble.io, land.supply and revetize.com) loaded between 8.5 MB and 18.6 MB of decompressed bundles on their home page. That is context, not a pass mark.

### Use it from an AI assistant (MCP)

The Actor runs as an Apify Server Actor (also called Standby mode) with an MCP endpoint at `/mcp` and one tool, `audit_bubble_app`, which audits one Bubble app (give exactly one of `appUrl`, `exportUrl` or `exportJson`) and returns the same row as the dataset (as structured content, plus a short text summary). Each successful call is charged one `app-audited` event. An app that cannot be audited (not a Bubble app, unreachable address, invalid export file) returns a tool error and is not charged.

**Recommended: Apify's hosted MCP server.** It needs no token in your config: your client opens a browser to sign in to Apify the first time.

```
https://mcp.apify.com?tools=bodacious_mistral/bubble-migration-auditor
```

The `tools` parameter replaces the default tool selection, so only this Actor is loaded. To use an API token instead, send the same URL with the header `Authorization: Bearer <APIFY_TOKEN>`.

**Claude Desktop and claude.ai.** Open Settings, Connectors, add a custom connector, paste the URL above and sign in to Apify when asked.

**Cursor.** Add to `.cursor/mcp.json` (OAuth, no token):

```json
{
  "mcpServers": {
    "bubble-migration-auditor": {
      "url": "https://mcp.apify.com?tools=bodacious_mistral/bubble-migration-auditor"
    }
  }
}
```

With a token instead:

```json
{
  "mcpServers": {
    "bubble-migration-auditor": {
      "url": "https://mcp.apify.com?tools=bodacious_mistral/bubble-migration-auditor",
      "headers": { "Authorization": "Bearer <APIFY_TOKEN>" }
    }
  }
}
```

**Claude Code.**

```bash
claude mcp add --transport http bubble-migration-auditor "https://mcp.apify.com?tools=bodacious_mistral/bubble-migration-auditor"
```

Then run `/mcp` inside Claude Code to sign in. With a token instead, add `--header "Authorization: Bearer <APIFY_TOKEN>"`.

**Direct Server URL.** You can also call the Actor's own server endpoint: `<STANDBY_URL>/mcp`. Copy the real URL from the Server tab of the Actor in Apify Console, because the exact host name depends on the account and Actor name. Authenticate with `Authorization: Bearer <APIFY_TOKEN>` (or `X-Apify-Authorization: Bearer <APIFY_TOKEN>`). The endpoint speaks MCP Streamable HTTP in stateless mode: POST only, a plain JSON response, no session. GET and DELETE on `/mcp` answer 405.

### Known limitations

- The Actor is passive. It never logs in, never submits forms and never reads any data stored in the app.
- Indicators are structural, not measurements. Workload Units, traffic, record counts and file sizes are not measurable from public data and are not in the export file.
- URL mode sees little by design: no data types, workflows, searches, API calls, privacy rules or plugin names. For those, use the export file.
- The export format was learned from a real Bubble export file of a 2026 app. A file with a different structure fails with a clear message instead of a partial result. Plugin names are not in the file, only ids.
- Recursive workflow detection follows schedule and trigger steps between backend workflows by their ids. Loops that go through plugin actions are not seen.
- A search counts as "inside a repeating group cell" when it sits in an element nested under a repeating group. Searches in the repeating group's own data source are counted separately.
- Thresholds (250 elements per page, 8 repeating groups per page, 4 and 10 plugin ids, 8 external scripts) are set by this Actor.

### Next steps

- [App Mover](https://nc.redcenterstudio.com): upload the export file for a free preview, no account or card.
- [How App Mover works and current prices](https://redcenterstudio.com/app-mover/)
- [Landing page for this auditor](https://redcenterstudio.com/apify/bubble-migration-auditor/)

# Actor input Schema

## `apps` (type: `array`):

One entry per app. Each entry has exactly one of: appUrl (a public Bubble app URL; passive checks of the page and the static files it references), exportUrl (an https link to the .bubble export file; much richer results) or exportJson (the content of the export file pasted as JSON). A plain URL string also works: a link ending in .bubble is read as an export file, anything else as an app URL. Up to 200 apps per run. Only completed audits are charged.

## Actor input object example

```json
{
  "apps": [
    {
      "appUrl": "https://bubble.io"
    }
  ]
}
```

# Actor output Schema

## `results` (type: `string`):

One row per entry checked, in the default dataset.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "apps": [
        {
            "appUrl": "https://bubble.io"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("bodacious_mistral/bubble-migration-auditor").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "apps": [{ "appUrl": "https://bubble.io" }] }

# Run the Actor and wait for it to finish
run = client.actor("bodacious_mistral/bubble-migration-auditor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "apps": [
    {
      "appUrl": "https://bubble.io"
    }
  ]
}' |
apify call bodacious_mistral/bubble-migration-auditor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bodacious_mistral/bubble-migration-auditor"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/01hGnWRIIpazZ7Hqm/builds/S8LJ2YAClo5oTlgwa/openapi.json
