forked from supabase/supabase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplans.ts
165 lines (162 loc) · 4.59 KB
/
plans.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
export interface PricingInformation {
id: string
name: string
nameBadge?: string
costUnit?: string
href: string
priceLabel?: string
priceMonthly: number | string
warning?: string
warningTooltip?: string
description: string
preface: string
features: { partners: string[]; features: (string | string[])[] }[]
footer?: { partners: string[]; footer: string }[]
cta: string
}
export const plans: PricingInformation[] = [
{
id: 'tier_free',
name: 'Free',
nameBadge: '',
costUnit: '/ month',
href: 'https://supabase.com/dashboard/new?plan=free',
priceLabel: '',
priceMonthly: 0,
description: 'Perfect for passion projects & simple websites.',
preface: 'Get started with:',
features: [
{
partners: [],
features: [
'Unlimited API requests',
'50,000 monthly active users',
['500 MB database size', 'Shared CPU • 500 MB RAM'],
'5 GB bandwidth',
'1 GB file storage',
'Community support',
],
},
{
partners: ['fly'],
features: [
'Unlimited API requests',
'50,000 monthly active users',
['500 MB database size', 'Shared CPU • 500 MB RAM'],
'5 GB bandwidth',
'Community support',
],
},
],
footer: [
{
partners: [],
footer: 'Free projects are paused after 1 week of inactivity. Limit of 2 active projects.',
},
{
partners: ['fly'],
footer: 'Free projects are paused after 1 week of inactivity. Limit of 1 active project.',
},
],
cta: 'Start for Free',
},
{
id: 'tier_pro',
name: 'Pro',
nameBadge: 'Most Popular',
costUnit: '/ month',
href: 'https://supabase.com/dashboard/new?plan=pro',
priceLabel: 'From',
warning: '$10 in compute credits included',
priceMonthly: 25,
description: 'For production applications with the power to scale.',
features: [
{
partners: [],
features: [
['100,000 monthly active users', 'then $0.00325 per MAU'],
['8 GB disk size per project', 'then $0.125 per GB'],
['250 GB bandwidth', 'then $0.09 per GB'],
['100 GB file storage', 'then $0.021 per GB'],
'Email support',
'Daily backups stored for 7 days',
'7-day log retention',
],
},
{
partners: ['fly'],
features: [
['8 GB disk size per project', 'then $0.125 per GB'],
['250 GB bandwidth', 'then $0.09 per GB'],
'Email support',
'Daily backups stored for 7 days',
'7-day log retention',
],
},
],
preface: 'Everything in the Free Plan, plus:',
cta: 'Get Started',
},
{
id: 'tier_team',
name: 'Team',
nameBadge: '',
costUnit: '/ month',
href: 'https://supabase.com/dashboard/new?plan=team',
priceLabel: 'From',
warning: '$10 in compute credits included',
priceMonthly: 599,
description: 'Add features such as SSO, control over backups, and industry certifications.',
features: [
{
partners: [],
features: [
'SOC2',
'HIPAA available as paid add-on',
'Read-only and Billing member roles',
'SSO for Supabase Dashboard',
'Priority email support & SLAs',
'Daily backups stored for 14 days',
'28-day log retention',
],
},
],
preface: 'Everything in the Pro Plan, plus:',
cta: 'Get Started',
},
{
id: 'tier_enterprise',
name: 'Enterprise',
href: 'https://forms.supabase.com/enterprise',
description: 'For large-scale applications running Internet scale workloads.',
features: [
{
partners: [],
features: [
'Designated Support manager',
'Uptime SLAs',
'BYO Cloud supported',
'24×7×365 premium enterprise support',
'Private Slack channel',
'Custom Security Questionnaires',
],
},
],
priceLabel: '',
priceMonthly: 'Custom',
preface: '',
cta: 'Contact Us',
},
]
export function pickFeatures(plan: PricingInformation, billingPartner: string = '') {
return (
plan.features.find((f) => f.partners.includes(billingPartner))?.features ||
plan.features.find((f) => f.partners.length === 0)!.features
)
}
export function pickFooter(plan: PricingInformation, billingPartner: string = '') {
return (
plan.footer?.find((f) => f.partners.includes(billingPartner))?.footer ||
plan.footer?.find((f) => f.partners.length === 0)!.footer
)
}