The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: initial pricing page info
Jonathan Summers-Muir265638dd40db
diff --git a/www/components/PricingTableRow.tsx b/www/components/PricingTableRow.tsxnew file mode 100644index 00000000000..bd7c89dc592--- /dev/null+++ b/www/components/PricingTableRow.tsx@@ -0,0 +1,176 @@+import { Space, Typography } from '@supabase/ui'++const Chevron = (props: any) => (+ <>+ <svg+ className={`h-5 w-5 text-green-500`}+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 20 20"+ fill="currentColor"+ >+ <path+ fillRule="evenodd"+ d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"+ clipRule="evenodd"+ />+ </svg>+ <span className="sr-only">Included in {props.tier}</span>+ </>+)++const Minus = (props: any) => (+ <>+ <svg+ className="h-5 w-5 text-gray-400"+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 20 20"+ fill="currentColor"+ aria-hidden="true"+ >+ <path+ fillRule="evenodd"+ d="M3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"+ clipRule="evenodd"+ />+ </svg>+ <span className="sr-only">Not included in {props.tier}</span>+ </>+)++export const PricingTableRowDesktop = (props: any) => {+ const category = props.category++ return (+ <>+ <tr className="divide-x dark:divide-gray-600" style={{ borderTop: 'none' }}>+ <th+ className="bg-gray-50 dark:bg-gray-700 py-3 pl-6 text-sm font-medium text-gray-900 dark:text-white text-left"+ scope="colgroup"+ >+ <Space size={4}>+ {category.icon ? (+ <div className="flex items-center justify-center h-8 w-8 rounded-md bg-gray-800 text-white dark:bg-white">+ <svg+ className="h-4 w-4 stroke-white dark:stroke-black"+ xmlns="http://www.w3.org/2000/svg"+ fill="none"+ viewBox="0 0 24 24"+ aria-hidden="true"+ >+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="2"+ d={category.icon}+ />+ </svg>+ </div>+ ) : null}+ <Typography.Title level={4}>{category.title}</Typography.Title>+ </Space>+ </th>+ <td className="bg-gray-50 dark:bg-dark-700 py-5 px-6"></td>+ <td className="bg-gray-50 dark:bg-dark-700 py-5 px-6"></td>+ <td className="bg-gray-50 dark:bg-dark-700 py-5 px-6"></td>+ </tr>++ {category.features.map((feat: any) => {+ return (+ <tr className="divide-x dark:divide-gray-600">+ <th+ className="py-5 px-6 text-sm font-normal text-gray-500 dark:text-gray-300 text-left"+ scope="row"+ >+ {feat.title}+ </th>++ {Object.values(feat.tiers).map((tier) => {+ return (+ <td className="py-5 px-6">+ {typeof tier === 'boolean' && tier === true ? (+ <Chevron tier={tier} />+ ) : typeof tier === 'boolean' && tier === false ? (+ <Minus tier={tier} />+ ) : (+ <span className="block text-sm text-gray-700 dark:text-white">{tier}</span>+ )}+ </td>+ )+ })}+ </tr>+ )+ })}+ </>+ )+}++export const PricingTableRowMobile = (props: any) => {+ const category = props.category+ const tier = props.tier++ return (+ <>+ <table className="mt-8 w-full">+ <caption className="bg-gray-50 dark:bg-dark-900 border-t border-gray-200 dark:border-gray-600 py-3 px-4 text-sm font-medium text-gray-900 dark:text-white text-left">+ <Space size={4}>+ {category.icon ? (+ <div className="flex items-center justify-center h-8 w-8 rounded-md bg-gray-900 text-white dark:bg-white">+ <svg+ className="h-4 w-4 stroke-white dark:stroke-black"+ xmlns="http://www.w3.org/2000/svg"+ fill="none"+ viewBox="0 0 24 24"+ aria-hidden="true"+ >+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="2"+ d={category.icon}+ />+ </svg>+ </div>+ ) : null}+ <Typography.Title level={4}>{category.title}</Typography.Title>+ </Space>+ </caption>+ <thead>+ <tr>+ <th className="sr-only" scope="col">+ Feature+ </th>+ <th className="sr-only" scope="col">+ Included+ </th>+ </tr>+ </thead>+ <tbody className="divide-y divide-gray-200 dark:divide-gray-600 ">+ {category.features.map((feat) => {+ return (+ <tr className="border-t border-gray-200 dark:border-gray-600 ">+ <th className="py-5 px-4 text-sm font-normal text-gray-500 text-left" scope="row">+ <Typography.Text type="secondary">{feat.title}</Typography.Text>+ </th>+ <td className="py-5 pr-4 text-right">+ {typeof feat.tiers[tier] === 'boolean' && feat.tiers[tier] === true ? (+ <div className="inline-block">+ <Chevron tier={tier} />+ </div>+ ) : typeof feat.tiers[tier] === 'boolean' && feat.tiers[tier] === false ? (+ <div className="inline-block">+ <Minus tier={tier} />+ </div>+ ) : (+ <span className="block text-sm text-gray-700 dark:text-white">+ {feat.tiers[tier]}+ </span>+ )}+ </td>+ </tr>+ )+ })}+ </tbody>+ </table>+ </>+ )+}diff --git a/www/data/Pricing.json b/www/data/Pricing.jsonnew file mode 100644index 00000000000..f792f30e33c--- /dev/null+++ b/www/data/Pricing.json@@ -0,0 +1,240 @@+{+ "database": {+ "title": "Database",+ "icon": "M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4",+ "features": [+ {+ "title": "Full Postgres Database",+ "tiers": {+ "free": true,+ "pro": true,+ "enterprise": true+ }+ },+ {+ "title": "Unlimited API requests",+ "tiers": {+ "free": true,+ "pro": true,+ "enterprise": true+ }+ },+ {+ "title": "Realtime functionality",+ "tiers": {+ "free": true,+ "pro": true,+ "enterprise": true+ }+ },+ {+ "title": "Custom database instances",+ "tiers": {+ "free": false,+ "pro": false,+ "enterprise": true+ }+ },+ {+ "title": "Database space",+ "tiers": {+ "free": "Up to 500mb",+ "pro": "Up to 8 Gb",+ "enterprise": "0.125 per Gb"+ }+ },+ {+ "title": "Automatic backups",+ "tiers": {+ "free": false,+ "pro": "7 days of backup",+ "enterprise": "30 days Point in Time backup"+ }+ },+ {+ "title": "Pausing",+ "tiers": {+ "free": "Paused after 1 week inactivity",+ "pro": "Never",+ "enterprise": "Never"+ }+ }+ ]+ },+ "auth": {+ "title": "Auth",+ "icon": "M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4",+ "features": [+ {+ "title": "Users",+ "tiers": {+ "free": "10,000 Users",+ "pro": "100,000 Users",+ "enterprise": "Unlimited"+ }+ },+ {+ "title": "Social OAuth providers",+ "tiers": {+ "free": true,+ "pro": true,+ "enterprise": true+ }+ },+ {+ "title": "Custom SMTP server",+ "tiers": {+ "free": false,+ "pro": true,+ "enterprise": true+ }+ },+ {+ "title": "Remove Supabase branding from emails",+ "tiers": {+ "free": false,+ "pro": true,+ "enterprise": true+ }+ },+ {+ "title": "Enterprise OAuth providers",+ "tiers": {+ "free": false,+ "pro": false,+ "enterprise": true+ }+ },+ {+ "title": "Audit trails",+ "tiers": {+ "free": "1 hour",+ "pro": "7 days",+ "enterprise": true+ }+ }+ ]+ },+ "storage": {+ "title": "File storage",+ "icon": "M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4",+ "features": [+ {+ "title": "Storage total",+ "tiers": {+ "free": "Up to 1 GB",+ "pro": "Up to 100 GB",+ "enterprise": "$0.021 per GB"+ }+ },+ {+ "title": "Transfer limits",+ "tiers": {+ "free": "Up to 2 GB",+ "pro": "Up to 200 GB",+ "enterprise": "$0.07 per GB"+ }+ },+ {+ "title": "Custom access controls",+ "tiers": {+ "free": true,+ "pro": true,+ "enterprise": true+ }+ }+ ]+ },+ "dashboard": {+ "title": "Dashboard",+ "icon": "",+ "features": [+ {+ "title": "Team members",+ "tiers": {+ "free": "Unlimited",+ "pro": "Unlimited",+ "enterprise": "Unlimited"+ }+ },+ {+ "title": "Access controls",+ "tiers": {+ "free": false,+ "pro": "Coming soon",+ "enterprise": true+ }+ },+ {+ "title": "Audit trails",+ "tiers": {+ "free": false,+ "pro": false,+ "enterprise": true+ }+ }+ ]+ },+ "support": {+ "title": "Support and Compliance",+ "icon": "",+ "features": [+ {+ "title": "Community support",+ "tiers": {+ "free": true,+ "pro": true,+ "enterprise": true+ }+ },+ {+ "title": "Email support",+ "tiers": {+ "free": false,+ "pro": true,+ "enterprise": true+ }+ },+ {+ "title": "Dedicated support",+ "tiers": {+ "free": false,+ "pro": false,+ "enterprise": true+ }+ },+ {+ "title": "On Premises / BYO cloud",+ "tiers": {+ "free": false,+ "pro": false,+ "enterprise": true+ }+ },+ {+ "title": "Log retention (API & Database)",+ "tiers": {+ "free": "1 day",+ "pro": "7 days",+ "enterprise": "3 months"+ }+ },+ {+ "title": "Log drain",+ "tiers": {+ "free": false,+ "pro": false,+ "enterprise": "Coming soon"+ }+ },+ {+ "title": "SOC2",+ "tiers": {+ "free": false,+ "pro": false,+ "enterprise": "Coming soon"+ }+ }+ ]+ }+}diff --git a/www/pages/pricing/index.tsx b/www/pages/pricing/index.tsxnew file mode 100644index 00000000000..70b0dfd85e7--- /dev/null+++ b/www/pages/pricing/index.tsx@@ -0,0 +1,359 @@+import React, { useState } from 'react'+import { Badge, Button, Space, Typography } from '@supabase/ui'+import pricing from '~/data/Pricing.json'+import { PricingTableRowDesktop, PricingTableRowMobile } from '~/components/PricingTableRow'+import DefaultLayout from '~/components/Layouts/Default'++export default function IndexPage() {+ return (+ <DefaultLayout>+ <div className="bg-white dark:bg-gray-800">+ <div className="max-w-7xl mx-auto py-16 sm:py-24 sm:px-6 lg:px-8">+ <div className="">+ <Typography.Title>Predictable pricing, no surprises</Typography.Title>+ </div>+ </div>+ </div>+ <div className="bg-white dark:bg-gray-800">+ <div className="max-w-7xl mx-auto py-16 sm:py-24 sm:px-6 lg:px-8">+ {/* <!-- xs to lg --> */}++ <div className="max-w-2xl mx-auto lg:hidden">+ {/* Free - Mobile */}+ <div className="px-4">+ <h2 className="text-lg leading-6 font-medium text-gray-900 dark:text-white">Free</h2>+ <p className="mt-4">+ <span className="text-4xl font-extrabold text-gray-900 dark:text-white">$0</span>+ <Typography.Text type="secondary">/project /month</Typography.Text>+ </p>+ <p className="my-4 text-sm text-gray-500">+ Quis suspendisse ut fermentum neque vivamus non tellus.+ </p>+ <Button type="outline" size="medium" block>+ Get started+ </Button>+ </div>++ <PricingTableRowMobile category={pricing.database} tier={'free'} />+ <PricingTableRowMobile category={pricing.auth} tier={'free'} />+ <PricingTableRowMobile category={pricing.storage} tier={'free'} />+ <PricingTableRowMobile category={pricing.dashboard} tier={'free'} />+ <PricingTableRowMobile category={pricing.support} tier={'free'} />++ <div className="border-t border-gray-200 px-4 pt-5 dark:border-gray-600 mb-16">+ <a+ href="#"+ className="block w-full bg-gray-800 border border-gray-800 rounded-md py-2 text-sm font-semibold text-white text-center hover:bg-gray-900"+ >+ Buy Basic+ </a>+ </div>++ {/* Pro - Mobile */}+ <div className="px-4">+ <h2 className="text-lg leading-6 font-medium text-gray-900 dark:text-white">Pro</h2>+ <p className="mt-4">+ <span className="text-4xl font-extrabold text-gray-900 dark:text-white">$25</span>+ <Typography.Text type="secondary">/project /month</Typography.Text>+ </p>+ <p className="my-4 text-sm text-gray-500">+ Quis suspendisse ut fermentum neque vivamus non tellus.+ </p>+ <Button type="outline" size="medium" block>+ Get started+ </Button>+ </div>++ <PricingTableRowMobile category={pricing.database} tier={'pro'} />+ <PricingTableRowMobile category={pricing.auth} tier={'pro'} />+ <PricingTableRowMobile category={pricing.storage} tier={'pro'} />+ <PricingTableRowMobile category={pricing.dashboard} tier={'pro'} />+ <PricingTableRowMobile category={pricing.support} tier={'pro'} />++ <div className="border-t border-gray-200 px-4 pt-5 dark:border-gray-600 mb-16">+ <a+ href="#"+ className="block w-full bg-gray-800 border border-gray-800 rounded-md py-2 text-sm font-semibold text-white text-center hover:bg-gray-900"+ >+ Buy Basic+ </a>+ </div>++ {/* Enterprise - Mobile */}+ <div className="px-4">+ <h2 className="text-lg leading-6 font-medium text-gray-900 dark:text-white">+ Pay as you go+ </h2>+ <p className="mt-4">+ <span className="text-4xl font-extrabold text-gray-900 dark:text-white">+ Contact us+ </span>+ </p>+ <p className="my-4 text-sm text-gray-500">+ Quis suspendisse ut fermentum neque vivamus non tellus.+ </p>+ <Button type="outline" size="medium" block>+ Get started+ </Button>+ </div>++ <PricingTableRowMobile category={pricing.database} tier={'enterprise'} />+ <PricingTableRowMobile category={pricing.auth} tier={'enterprise'} />+ <PricingTableRowMobile category={pricing.storage} tier={'enterprise'} />+ <PricingTableRowMobile category={pricing.dashboard} tier={'enterprise'} />+ <PricingTableRowMobile category={pricing.support} tier={'enterprise'} />++ <div className="border-t border-gray-200 px-4 pt-5 dark:border-gray-600 mb-16">+ <a+ href="#"+ className="block w-full bg-gray-800 border border-gray-800 rounded-md py-2 text-sm font-semibold text-white text-center hover:bg-gray-900"+ >+ Buy Basic+ </a>+ </div>+ </div>++ {/* <!-- lg+ --> */}+ <div className="hidden lg:block">+ <table className="w-full h-px table-fixed">+ <caption className="sr-only">Pricing plan comparison</caption>+ <thead>+ <tr>+ <th+ className="pb-4 px-6 text-sm font-medium text-gray-900 dark:text-white text-left"+ scope="col"+ >+ <span className="sr-only">Feature by</span>+ <span>Plans</span>+ </th>++ <th className="w-1/4 pb-4 px-6 text-left font-medium" scope="col">+ <Typography.Title level={4}>Free</Typography.Title>+ </th>++ <th+ className="w-1/4 pb-4 px-6 text-lg leading-6 font-medium text-gray-900 text-left"+ scope="col"+ >+ <Typography.Title level={4}>Pro</Typography.Title>+ </th>++ <th+ className="w-1/4 pb-4 px-6 text-lg leading-6 font-medium text-gray-900 text-left"+ scope="col"+ >+ <Typography.Title level={4}>Pay as you go</Typography.Title>+ </th>+ </tr>+ </thead>+ <tbody className="border-t border-gray-200 dark:border-gray-600 divide-y divide-gray-200 dark:divide-gray-700">+ <tr className="divide-x dark:divide-gray-700">+ <th+ className="py-8 px-6 text-sm font-medium text-gray-900 dark:text-white text-left align-top"+ scope="row"+ >+ Pricing+ </th>++ <td className="h-full py-8 px-6 align-top">+ <div className="relative h-full table">+ <p>+ <span className="text-4xl font-extrabold text-gray-900 dark:text-white">+ $0+ </span>+ <Typography.Text> /project /month</Typography.Text>+ </p>+ <p className="mt-4 mb-16 ">+ <Typography.Text>+ Perfect for hobby projects and experiments.+ </Typography.Text>+ </p>+ <Button size="medium" type="outline" className="absolute bottom-0">+ Get started+ </Button>+ </div>+ </td>++ <td className="h-full py-8 px-6 align-top">+ <div className="relative h-full table">+ <p>+ <span className="text-4xl font-extrabold text-gray-900 dark:text-white">+ $25+ </span>+ <Typography.Text> /project /month</Typography.Text>+ </p>+ <p className="mt-4 mb-16 ">+ <Typography.Text>+ Everything you need to scale your project into production.+ </Typography.Text>+ </p>+ <Button size="medium" type="outline" className="absolute bottom-0">+ Get started+ </Button>+ </div>+ </td>++ <td className="h-full py-8 px-6 align-top">+ <div className="relative h-full table">+ <p>+ <span className="text-4xl font-extrabold text-gray-900 dark:text-white">+ Contact us+ </span>+ </p>+ <p className="mt-4 mb-16 ">+ <Typography.Text>+ Dedicated support team, account managaer and technical specialist.+ </Typography.Text>+ </p>+ <Button size="medium" type="outline" className="absolute bottom-0">+ Get started+ </Button>+ </div>+ </td>+ </tr>++ <PricingTableRowDesktop category={pricing.database} />+ <PricingTableRowDesktop category={pricing.auth} />+ <PricingTableRowDesktop category={pricing.storage} />+ <PricingTableRowDesktop category={pricing.dashboard} />+ <PricingTableRowDesktop category={pricing.support} />+ </tbody>+ <tfoot>+ <tr className="border-t border-gray-200 dark:border-gray-600">+ <th className="sr-only" scope="row">+ Choose your plan+ </th>++ <td className="pt-5 px-6">+ <Button size="medium" type="outline" block>+ FREE Get started+ </Button>+ </td>++ <td className="pt-5 px-6">+ <Button size="medium" type="outline" block>+ Pro | Get started+ </Button>+ </td>++ <td className="pt-5 px-6">+ <Button size="medium" type="outline" block>+ Enterprise | Contact us+ </Button>+ </td>+ </tr>+ </tfoot>+ </table>+ </div>+ </div>+ </div>++ <div className="bg-gray-50 dark:bg-gray-800 border-t dark:border-gray-600">+ <div className="max-w-7xl mx-auto py-16 px-4 sm:py-24 sm:px-6 lg:px-8">+ <h2 className="text-3xl text-gray-900 dark:text-white">Frequently asked questions</h2>+ <div className="mt-6 border-t border-gray-600 border-opacity-25 pt-10">+ <dl className="space-y-10 md:space-y-0 md:grid md:grid-cols-2 md:grid-rows-2 md:gap-x-8 md:gap-y-12">+ <div>+ <dt className="text-lg leading-6 font-medium text-white">+ <Typography.Title level={4}>+ What happens when I go over my limits?+ </Typography.Title>+ </dt>+ <dd className="mt-2 text-base ">+ <Typography.Text>+ All soft-limits. We will reach out to you if you go over a limit.+ </Typography.Text>+ </dd>+ </div>++ <div>+ <dt className="text-lg leading-6 font-medium text-white">+ <Typography.Title level={4}>+ Will there be downtime if I need to upgrade my database?+ </Typography.Title>+ </dt>+ <dd className="mt-2 text-base ">+ <Typography.Text>+ During Beta, there will be downtime. If you are on the Base tier, we will be+ able to increase+ </Typography.Text>+ </dd>+ </div>++ <div>+ <dt className="text-lg leading-6 font-medium text-white">+ <Typography.Title level={4}>+ Can I disable the Database/Auth/Storage?+ </Typography.Title>+ </dt>+ <dd className="mt-2 text-base ">+ <Typography.Text>+ Not yet. All of them are required while we are in Beta. Soon you will be able to+ disable functionality which you don't use.+ </Typography.Text>+ </dd>+ </div>++ <div>+ <dt className="text-lg leading-6 font-medium text-white">+ <Typography.Title level={4}>+ What CPU architecture is in the database?+ </Typography.Title>+ </dt>+ <dd className="mt-2 text-base ">+ <Typography.Text>ARM because it's awesome. Add an ARM icon?</Typography.Text>+ </dd>+ </div>++ <div>+ <dt className="text-lg leading-6 font-medium text-white">+ <Typography.Title level={4}>Database data egress</Typography.Title>+ </dt>+ <dd className="mt-2 text-base ">+ <Typography.Text>+ Fair usage during Beta. We're using Beta to get an understandig.+ </Typography.Text>+ </dd>+ </div>+ <div>+ <dt className="text-lg leading-6 font-medium text-white">+ <Typography.Title level={4}>PIT Backup?</Typography.Title>+ </dt>+ <dd className="mt-2 text-base ">+ <Typography.Text>Describe.</Typography.Text>+ </dd>+ </div>++ <div>+ <dt className="text-lg leading-6 font-medium text-white">+ <Typography.Title level={4}>What about functions?</Typography.Title>+ </dt>+ <dd className="mt-2 text-base ">+ <Typography.Text>You can use RPC or Serverless coming soon.</Typography.Text>+ </dd>+ </div>++ <div>+ <dt className="text-lg leading-6 font-medium text-white">+ <Typography.Title level={4}>What are auth transactional emails?</Typography.Title>+ </dt>+ <dd className="mt-2 text-base ">+ <Typography.Text>TBD.</Typography.Text>+ </dd>+ </div>++ <div>+ <dt className="text-lg leading-6 font-medium text-white">+ <Typography.Title level={4}>Can I do annual pricing?</Typography.Title>+ </dt>+ <dd className="mt-2 text-base ">+ <Typography.Text>TBD.</Typography.Text>+ </dd>+ </div>+ </dl>+ </div>+ </div>+ </div>+ </DefaultLayout>+ )+}