{
  "apiVersion": "1.1",
  "schemaVersion": 1,
  "engineVersion": 1,
  "asOf": "2026-11-24",
  "currency": "USD",
  "pair": {
    "slug": "supabase-database-vs-cloudflare-d1",
    "canonicalSlug": "cloudflare-d1-vs-supabase-database",
    "isCrossCategory": false,
    "categoryA": {
      "id": "database",
      "name": "Databases"
    },
    "categoryB": {
      "id": "database",
      "name": "Databases"
    }
  },
  "citationUrl": "https://costroast.com/vs/cloudflare-d1-vs-supabase-database?usage=%7B%22egressGb%22%3A10%2C%22rowsRead%22%3A100000000%2C%22rowsWritten%22%3A1000000%2C%22storageGb%22%3A5%7D",
  "canonicalUrl": "https://costroast.com/vs/cloudflare-d1-vs-supabase-database",
  "markdownUrl": "https://costroast.com/vs/cloudflare-d1-vs-supabase-database.md?usage=%7B%22egressGb%22%3A10%2C%22rowsRead%22%3A100000000%2C%22rowsWritten%22%3A1000000%2C%22storageGb%22%3A5%7D",
  "calculationUrl": "https://costroast.com/api/v1/calculate?a=supabase-database&b=cloudflare-d1&usage=%7B%22egressGb%22%3A10%2C%22rowsRead%22%3A100000000%2C%22rowsWritten%22%3A1000000%2C%22storageGb%22%3A5%7D",
  "verdict": {
    "summary": "Cloudflare D1 costs $20.00 less per month than Supabase Database at this workload. This compares modeled charges, not overall product quality.",
    "cheaperProduct": "B",
    "costDeltaMonthlyUsd": 20,
    "costPercentDelta": 80,
    "crossoverSummary": null
  },
  "crossCategoryBridge": null,
  "productA": {
    "id": "supabase-database",
    "name": "Supabase Database",
    "planId": "supabase-db-pro",
    "planName": "Pro · one Micro instance",
    "eligible": true,
    "monthlyCostUsd": 25,
    "billingInterval": "month",
    "annualCommitmentUsd": null,
    "sourceUrl": "https://supabase.com/pricing",
    "checkedAt": "2026-11-09",
    "warnings": [
      "Includes first Micro instance through the $10 compute credit. Fixed compute capacity; row volume alone cannot prove this instance is sufficient. Pro subscription can be shared with Supabase Auth.",
      "USD monthly plan. One PostgreSQL project only; SQL row operations do not have separate read/write prices. Rows do not prove compute capacity, runtime compatibility or throughput.",
      "The USD 25 organization subscription is billed monthly up front; usage is billed in arrears. The USD 10 monthly compute credit covers one Micro at USD 0.01344 per hour (even 744 hours costs USD 9.99936). Compute credits reset monthly without rollover. This assumes the one Micro project consumes the entire compute-credit entitlement without other projects.",
      "Overage calculation requires disabling the Pro spend cap, which is enabled by default. The 250 GB egress allowance is shared across the organization; this scenario assigns it all to this one database project. General Purpose disk uses included default IOPS and throughput; provisioned extras are excluded."
    ],
    "exclusions": [
      "Larger compute, replicas, point-in-time recovery, provisioned IOPS and other backend features."
    ],
    "usage": {
      "rowsRead": 100000000,
      "rowsWritten": 1000000,
      "storageGb": 5,
      "egressGb": 10
    },
    "workloadFields": [
      {
        "id": "rowsRead",
        "label": "Rows read",
        "unit": "rows / month",
        "min": 0,
        "max": 1000000000000,
        "step": 100000,
        "integer": true,
        "defaultValue": 100000000
      },
      {
        "id": "rowsWritten",
        "label": "Rows written",
        "unit": "rows / month",
        "min": 0,
        "max": 10000000000,
        "step": 1000,
        "integer": true,
        "defaultValue": 1000000
      },
      {
        "id": "storageGb",
        "label": "Database storage",
        "unit": "GB / month",
        "min": 0,
        "max": 10000,
        "step": 0.1,
        "integer": false,
        "defaultValue": 5
      },
      {
        "id": "egressGb",
        "label": "Database data transfer",
        "unit": "GB / month",
        "min": 0,
        "max": 1000000,
        "step": 1,
        "integer": false,
        "defaultValue": 10
      }
    ],
    "scope": "One database without replication or embedded sync. D1 and Turso use SQLite-compatible engines; Supabase uses PostgreSQL. These are cost alternatives, not interchangeable runtimes. Supabase models one Micro instance; its performance is not inferred from row counts.",
    "lineItems": [
      {
        "label": "Monthly subscription",
        "quantity": 1,
        "unit": "month",
        "rate": 25,
        "amount": 25
      },
      {
        "label": "Database disk (8 included)",
        "quantity": 0,
        "unit": "GB-month",
        "rate": 0.125,
        "amount": 0
      },
      {
        "label": "Uncached data transfer (250 included)",
        "quantity": 0,
        "unit": "GB",
        "rate": 0.09,
        "amount": 0
      }
    ],
    "priceVersionId": "supabase-db-pro:ffaefd80a7b7268d6413fb0a78465e737d44d5337e9e004aa3a7b33ae1245db9",
    "modelHash": "d8113fc8eb6fe69359380f20692b0890bf7437fe09a850fbba24001dc913c129",
    "modelSnapshot": {
      "schemaVersion": 1,
      "engineVersion": 1,
      "category": {
        "id": "database",
        "name": "Databases",
        "description": "Understand database storage, row operations and compute costs.",
        "scope": "One database without replication or embedded sync. D1 and Turso use SQLite-compatible engines; Supabase uses PostgreSQL. These are cost alternatives, not interchangeable runtimes. Supabase models one Micro instance; its performance is not inferred from row counts.",
        "primaryField": "rowsRead",
        "fields": [
          {
            "id": "rowsRead",
            "label": "Rows read",
            "unit": "rows / month",
            "description": "Rows scanned, not the number of SQL requests. Include indexes and full scans.",
            "defaultValue": 100000000,
            "min": 0,
            "max": 1000000000000,
            "step": 100000
          },
          {
            "id": "rowsWritten",
            "label": "Rows written",
            "unit": "rows / month",
            "description": "Inserts, updates, deletes and index maintenance.",
            "defaultValue": 1000000,
            "min": 0,
            "max": 10000000000,
            "step": 1000
          },
          {
            "id": "storageGb",
            "label": "Database storage",
            "unit": "GB / month",
            "description": "Average stored data plus indexes.",
            "defaultValue": 5,
            "min": 0,
            "max": 10000,
            "step": 0.1
          },
          {
            "id": "egressGb",
            "label": "Database data transfer",
            "unit": "GB / month",
            "description": "Uncached outbound transfer. Embedded-replica synchronization is excluded.",
            "defaultValue": 10,
            "min": 0,
            "max": 1000000,
            "step": 1
          }
        ],
        "capabilities": [
          {
            "id": "relational_sql",
            "label": "Relational SQL",
            "description": "ACID transactions and SQL query interface."
          },
          {
            "id": "edge_replicas",
            "label": "Edge read replicas",
            "description": "Low-latency read replicas across distributed global regions."
          }
        ],
        "presets": [
          {
            "id": "read_heavy",
            "name": "Read-Heavy Content",
            "description": "High read-to-write ratio for blogs, catalogs, and public APIs",
            "usage": {
              "egressGb": 50,
              "rowsRead": 500000000,
              "rowsWritten": 5000000,
              "storageGb": 20
            }
          },
          {
            "id": "balanced_crud",
            "name": "Balanced SaaS CRUD",
            "description": "Standard application workload with active reads and writes",
            "usage": {
              "egressGb": 25,
              "rowsRead": 100000000,
              "rowsWritten": 10000000,
              "storageGb": 15
            }
          },
          {
            "id": "data_intensive",
            "name": "High Storage & Write",
            "description": "Event ingestion and large relational datasets",
            "usage": {
              "egressGb": 200,
              "rowsRead": 1000000000,
              "rowsWritten": 100000000,
              "storageGb": 250
            }
          }
        ]
      },
      "product": {
        "id": "supabase-database",
        "name": "Supabase Database",
        "categoryId": "database",
        "vendorId": "supabase",
        "tagline": "PostgreSQL with dedicated compute and a bundled backend.",
        "website": "https://supabase.com/database",
        "pricingUrl": "https://supabase.com/pricing",
        "color": "#3ecf8e",
        "plans": [
          {
            "id": "supabase-db-pro",
            "name": "Pro · one Micro instance",
            "billing": {
              "currency": "USD",
              "interval": "month"
            },
            "basePrice": 25,
            "meters": [
              {
                "label": "Database disk",
                "quantity": {
                  "field": "storageGb"
                },
                "unit": "GB-month",
                "included": 8,
                "unitSize": 1,
                "rate": 0.125
              },
              {
                "label": "Uncached data transfer",
                "quantity": {
                  "field": "egressGb"
                },
                "unit": "GB",
                "included": 250,
                "unitSize": 1,
                "rate": 0.09
              }
            ],
            "limits": [],
            "warnings": [
              "Includes first Micro instance through the $10 compute credit. Fixed compute capacity; row volume alone cannot prove this instance is sufficient. Pro subscription can be shared with Supabase Auth.",
              "USD monthly plan. One PostgreSQL project only; SQL row operations do not have separate read/write prices. Rows do not prove compute capacity, runtime compatibility or throughput.",
              "The USD 25 organization subscription is billed monthly up front; usage is billed in arrears. The USD 10 monthly compute credit covers one Micro at USD 0.01344 per hour (even 744 hours costs USD 9.99936). Compute credits reset monthly without rollover. This assumes the one Micro project consumes the entire compute-credit entitlement without other projects.",
              "Overage calculation requires disabling the Pro spend cap, which is enabled by default. The 250 GB egress allowance is shared across the organization; this scenario assigns it all to this one database project. General Purpose disk uses included default IOPS and throughput; provisioned extras are excluded."
            ],
            "exclusions": [
              "Larger compute, replicas, point-in-time recovery, provisioned IOPS and other backend features."
            ],
            "source": {
              "url": "https://supabase.com/pricing",
              "checkedAt": "2026-11-09",
              "title": "Supabase database pricing"
            },
            "sharedSubscription": {
              "id": "supabase-pro",
              "amount": 25,
              "assumption": "Supabase Auth and Database share one Pro organization and one Micro project."
            },
            "capabilities": [
              "relational_sql"
            ]
          }
        ]
      }
    },
    "evidence": {
      "kind": "catalog_assertion",
      "observedAt": "2026-11-09",
      "sourceUrl": "https://supabase.com/pricing"
    }
  },
  "productB": {
    "id": "cloudflare-d1",
    "name": "Cloudflare D1",
    "planId": "d1-paid",
    "planName": "Workers Paid + D1",
    "eligible": true,
    "monthlyCostUsd": 5,
    "billingInterval": "month",
    "annualCommitmentUsd": null,
    "sourceUrl": "https://developers.cloudflare.com/d1/platform/pricing/",
    "checkedAt": "2026-11-01",
    "warnings": [
      "Includes the required $5 Workers subscription. If Workers is already in your stack, that subscription is shared. Free daily row limits are not modeled."
    ],
    "exclusions": [
      "Worker request/CPU usage to call the database and sharding across multiple databases."
    ],
    "usage": {
      "rowsRead": 100000000,
      "rowsWritten": 1000000,
      "storageGb": 5,
      "egressGb": 10
    },
    "workloadFields": [
      {
        "id": "rowsRead",
        "label": "Rows read",
        "unit": "rows / month",
        "min": 0,
        "max": 1000000000000,
        "step": 100000,
        "integer": true,
        "defaultValue": 100000000
      },
      {
        "id": "rowsWritten",
        "label": "Rows written",
        "unit": "rows / month",
        "min": 0,
        "max": 10000000000,
        "step": 1000,
        "integer": true,
        "defaultValue": 1000000
      },
      {
        "id": "storageGb",
        "label": "Database storage",
        "unit": "GB / month",
        "min": 0,
        "max": 10000,
        "step": 0.1,
        "integer": false,
        "defaultValue": 5
      },
      {
        "id": "egressGb",
        "label": "Database data transfer",
        "unit": "GB / month",
        "min": 0,
        "max": 1000000,
        "step": 1,
        "integer": false,
        "defaultValue": 10
      }
    ],
    "scope": "One database without replication or embedded sync. D1 and Turso use SQLite-compatible engines; Supabase uses PostgreSQL. These are cost alternatives, not interchangeable runtimes. Supabase models one Micro instance; its performance is not inferred from row counts.",
    "lineItems": [
      {
        "label": "Monthly subscription",
        "quantity": 1,
        "unit": "month",
        "rate": 5,
        "amount": 5
      },
      {
        "label": "Rows read (25,000,000,000 included)",
        "quantity": 0,
        "unit": "million rows",
        "rate": 0.001,
        "amount": 0
      },
      {
        "label": "Rows written (50,000,000 included)",
        "quantity": 0,
        "unit": "million rows",
        "rate": 1,
        "amount": 0
      },
      {
        "label": "Stored data (5 included)",
        "quantity": 0,
        "unit": "GB-month",
        "rate": 0.75,
        "amount": 0
      }
    ],
    "priceVersionId": "d1-paid:873ea353fcc7718c883791d4e96109118966a89bf9cc4b0ebaa6b0a84f5f472d",
    "modelHash": "e40cbda3aa5fc337395b2c83ccaa158f20b338439a0d5166ef4dab8d4245bd4d",
    "modelSnapshot": {
      "schemaVersion": 1,
      "engineVersion": 1,
      "category": {
        "id": "database",
        "name": "Databases",
        "description": "Understand database storage, row operations and compute costs.",
        "scope": "One database without replication or embedded sync. D1 and Turso use SQLite-compatible engines; Supabase uses PostgreSQL. These are cost alternatives, not interchangeable runtimes. Supabase models one Micro instance; its performance is not inferred from row counts.",
        "primaryField": "rowsRead",
        "fields": [
          {
            "id": "rowsRead",
            "label": "Rows read",
            "unit": "rows / month",
            "description": "Rows scanned, not the number of SQL requests. Include indexes and full scans.",
            "defaultValue": 100000000,
            "min": 0,
            "max": 1000000000000,
            "step": 100000
          },
          {
            "id": "rowsWritten",
            "label": "Rows written",
            "unit": "rows / month",
            "description": "Inserts, updates, deletes and index maintenance.",
            "defaultValue": 1000000,
            "min": 0,
            "max": 10000000000,
            "step": 1000
          },
          {
            "id": "storageGb",
            "label": "Database storage",
            "unit": "GB / month",
            "description": "Average stored data plus indexes.",
            "defaultValue": 5,
            "min": 0,
            "max": 10000,
            "step": 0.1
          },
          {
            "id": "egressGb",
            "label": "Database data transfer",
            "unit": "GB / month",
            "description": "Uncached outbound transfer. Embedded-replica synchronization is excluded.",
            "defaultValue": 10,
            "min": 0,
            "max": 1000000,
            "step": 1
          }
        ],
        "capabilities": [
          {
            "id": "relational_sql",
            "label": "Relational SQL",
            "description": "ACID transactions and SQL query interface."
          },
          {
            "id": "edge_replicas",
            "label": "Edge read replicas",
            "description": "Low-latency read replicas across distributed global regions."
          }
        ],
        "presets": [
          {
            "id": "read_heavy",
            "name": "Read-Heavy Content",
            "description": "High read-to-write ratio for blogs, catalogs, and public APIs",
            "usage": {
              "egressGb": 50,
              "rowsRead": 500000000,
              "rowsWritten": 5000000,
              "storageGb": 20
            }
          },
          {
            "id": "balanced_crud",
            "name": "Balanced SaaS CRUD",
            "description": "Standard application workload with active reads and writes",
            "usage": {
              "egressGb": 25,
              "rowsRead": 100000000,
              "rowsWritten": 10000000,
              "storageGb": 15
            }
          },
          {
            "id": "data_intensive",
            "name": "High Storage & Write",
            "description": "Event ingestion and large relational datasets",
            "usage": {
              "egressGb": 200,
              "rowsRead": 1000000000,
              "rowsWritten": 100000000,
              "storageGb": 250
            }
          }
        ]
      },
      "product": {
        "id": "cloudflare-d1",
        "name": "Cloudflare D1",
        "categoryId": "database",
        "vendorId": "cloudflare",
        "tagline": "Managed SQLite with row-based metering.",
        "website": "https://developers.cloudflare.com/d1/",
        "pricingUrl": "https://developers.cloudflare.com/d1/platform/pricing/",
        "color": "#f6821f",
        "plans": [
          {
            "id": "d1-paid",
            "name": "Workers Paid + D1",
            "basePrice": 5,
            "meters": [
              {
                "label": "Rows read",
                "quantity": {
                  "field": "rowsRead"
                },
                "unit": "million rows",
                "included": 25000000000,
                "unitSize": 1000000,
                "rate": 0.001
              },
              {
                "label": "Rows written",
                "quantity": {
                  "field": "rowsWritten"
                },
                "unit": "million rows",
                "included": 50000000,
                "unitSize": 1000000,
                "rate": 1
              },
              {
                "label": "Stored data",
                "quantity": {
                  "field": "storageGb"
                },
                "unit": "GB-month",
                "included": 5,
                "unitSize": 1,
                "rate": 0.75
              }
            ],
            "limits": [
              {
                "quantity": {
                  "field": "storageGb"
                },
                "max": 10,
                "reason": "A single D1 database is limited to 10 GB. Sharding is not modeled."
              }
            ],
            "warnings": [
              "Includes the required $5 Workers subscription. If Workers is already in your stack, that subscription is shared. Free daily row limits are not modeled."
            ],
            "exclusions": [
              "Worker request/CPU usage to call the database and sharding across multiple databases."
            ],
            "source": {
              "url": "https://developers.cloudflare.com/d1/platform/pricing/",
              "checkedAt": "2026-11-01",
              "title": "D1 paid usage pricing"
            },
            "sharedSubscription": {
              "id": "workers-paid",
              "amount": 5,
              "assumption": "Workers, D1, and Vectorize share one Cloudflare account subscription."
            },
            "capabilities": [
              "relational_sql"
            ]
          }
        ]
      }
    },
    "evidence": {
      "kind": "catalog_assertion",
      "observedAt": "2026-11-01",
      "sourceUrl": "https://developers.cloudflare.com/d1/platform/pricing/"
    }
  },
  "scenarios": [
    {
      "name": "Read-Heavy Content",
      "description": "High read-to-write ratio for blogs, catalogs, and public APIs",
      "costA": 26.5,
      "costB": null,
      "winner": "unknown"
    },
    {
      "name": "Balanced SaaS CRUD",
      "description": "Standard application workload with active reads and writes",
      "costA": 25.88,
      "costB": null,
      "winner": "unknown"
    },
    {
      "name": "High Storage & Write",
      "description": "Event ingestion and large relational datasets",
      "costA": 55.25,
      "costB": null,
      "winner": "unknown"
    }
  ],
  "reproducibility": "Replay the selected public model snapshots with schema1/engine1 and the returned effective usage and asOf. This response is not a persisted historical receipt.",
  "calculationId": "3ba90e8723cca34ea30d0f4f4bd928da9ddceba59c3fe2259c6701859dd17a62"
}