Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

Update pricing tiers and event limits in subscription components

Bill Yangb6310deb9f44
diff --git a/client/src/app/subscribe/components/PricingCards.tsx b/client/src/app/subscribe/components/PricingCards.tsx
index 8b439fef8..4647f5eac 100644
--- a/client/src/app/subscribe/components/PricingCards.tsx
+++ b/client/src/app/subscribe/components/PricingCards.tsx
@@ -244,7 +244,7 @@ export function PricingCards({ isLoggedIn }: { isLoggedIn: boolean }) {
className={cn(eventLimitIndex === index && "font-bold text-emerald-600 dark:text-emerald-400")}
>
{index === EVENT_TIERS.length - 1 && typeof tier !== "number"
- ? "20M+"
+ ? "50M+"
: formatEventTier(tier)}
</span>
))}
diff --git a/client/src/lib/stripe.ts b/client/src/lib/stripe.ts
index 252d0a0c3..531cd417c 100644
--- a/client/src/lib/stripe.ts
+++ b/client/src/lib/stripe.ts
@@ -169,6 +169,54 @@ const STRIPE_PRICES: StripePrice[] = [
shortName: "20m",
events: 20_000_000,
},
+ {
+ name: "standard30m",
+ priceId: "price_1TC8swDFVprnAny29M5pz5Kl",
+ price: 549,
+ interval: "month",
+ shortName: "30m",
+ events: 30_000_000,
+ },
+ {
+ name: "standard30m-annual",
+ priceId: "price_1TC8vZDFVprnAny2gWX5mw5M",
+ price: 549 * 8,
+ interval: "year",
+ shortName: "30m",
+ events: 30_000_000,
+ },
+ {
+ name: "standard40m",
+ priceId: "price_1TC8yMDFVprnAny233Cfbjb6",
+ price: 699,
+ interval: "month",
+ shortName: "40m",
+ events: 40_000_000,
+ },
+ {
+ name: "standard40m-annual",
+ priceId: "price_1TC90CDFVprnAny27ha82pV3",
+ price: 699 * 8,
+ interval: "year",
+ shortName: "40m",
+ events: 40_000_000,
+ },
+ {
+ name: "standard50m",
+ priceId: "price_1TC911DFVprnAny2148SMHHV",
+ price: 849,
+ interval: "month",
+ shortName: "50m",
+ events: 50_000_000,
+ },
+ {
+ name: "standard50m-annual",
+ priceId: "price_1TC91IDFVprnAny2rLGKQzmy",
+ price: 849 * 8,
+ interval: "year",
+ shortName: "50m",
+ events: 50_000_000,
+ },
// Pro tiers
{
price: 39,
@@ -298,6 +346,54 @@ const STRIPE_PRICES: StripePrice[] = [
shortName: "20M",
events: 20_000_000,
},
+ {
+ price: 1099,
+ priceId: "price_1TC8x6DFVprnAny2OCjTzaIG",
+ name: "pro30m",
+ interval: "month",
+ shortName: "30M",
+ events: 30_000_000,
+ },
+ {
+ price: 1099 * 8,
+ priceId: "price_1TC8tnDFVprnAny2u4NkOtOD",
+ name: "pro30m-annual",
+ interval: "year",
+ shortName: "30M",
+ events: 30_000_000,
+ },
+ {
+ price: 1399,
+ priceId: "price_1TC8yaDFVprnAny2b96SzRYV",
+ name: "pro40m",
+ interval: "month",
+ shortName: "40M",
+ events: 40_000_000,
+ },
+ {
+ price: 1399 * 8,
+ priceId: "price_1TC90YDFVprnAny25SJs1FuX",
+ name: "pro40m-annual",
+ interval: "year",
+ shortName: "40M",
+ events: 40_000_000,
+ },
+ {
+ price: 1699,
+ priceId: "price_1TC91rDFVprnAny2bLJ8pdUH",
+ name: "pro50m",
+ interval: "month",
+ shortName: "50M",
+ events: 50_000_000,
+ },
+ {
+ price: 1699 * 8,
+ priceId: "price_1TC92BDFVprnAny2uuAeNheH",
+ name: "pro50m-annual",
+ interval: "year",
+ shortName: "50M",
+ events: 50_000_000,
+ },
];
export const STRIPE_TIERS = STRIPE_PRICES.filter(
diff --git a/docs/src/components/PricingSection.tsx b/docs/src/components/PricingSection.tsx
index e6837ebc2..33d19c84e 100644
--- a/docs/src/components/PricingSection.tsx
+++ b/docs/src/components/PricingSection.tsx
@@ -10,7 +10,7 @@ import { BASIC_SITE_LIMIT, BASIC_TEAM_LIMIT, FREE_SITE_LIMIT, STANDARD_SITE_LIMI
import { PricingCard } from "./PricingCard";
// Available event tiers for the slider
-const EVENT_TIERS = [100_000, 250_000, 500_000, 1_000_000, 2_000_000, 5_000_000, 10_000_000, 20_000_000, "Custom"];
+const EVENT_TIERS = [100_000, 250_000, 500_000, 1_000_000, 2_000_000, 5_000_000, 10_000_000, 20_000_000, 30_000_000, 40_000_000, 50_000_000, "Custom"];
export const formatter = Intl.NumberFormat("en", {
notation: "compact",
@@ -36,6 +36,9 @@ function getFormattedPrice(eventLimit: number | string, planType: "basic" | "sta
else if (eventLimit <= 5_000_000) monthlyPrice = 149;
else if (eventLimit <= 10_000_000) monthlyPrice = 249;
else if (eventLimit <= 20_000_000) monthlyPrice = 399;
+ else if (eventLimit <= 30_000_000) monthlyPrice = 549;
+ else if (eventLimit <= 40_000_000) monthlyPrice = 699;
+ else if (eventLimit <= 50_000_000) monthlyPrice = 849;
else return { custom: true };
} else {
// Pro tier prices (roughly double)
@@ -47,6 +50,9 @@ function getFormattedPrice(eventLimit: number | string, planType: "basic" | "sta
else if (eventLimit <= 5_000_000) monthlyPrice = 299;
else if (eventLimit <= 10_000_000) monthlyPrice = 499;
else if (eventLimit <= 20_000_000) monthlyPrice = 799;
+ else if (eventLimit <= 30_000_000) monthlyPrice = 1099;
+ else if (eventLimit <= 40_000_000) monthlyPrice = 1399;
+ else if (eventLimit <= 50_000_000) monthlyPrice = 1699;
else return { custom: true };
}
@@ -221,7 +227,7 @@ export function PricingSection({ isAnnual, setIsAnnual }: { isAnnual: boolean, s
{EVENT_TIERS.map((tier, index) => (
<span key={index} className={cn(eventLimitIndex === index && "font-bold text-emerald-400")}>
{index === EVENT_TIERS.length - 1
- ? "20M+"
+ ? "50M+"
: typeof tier === "number" && tier >= 1_000_000
? `${tier / 1_000_000}M`
: typeof tier === "number"
diff --git a/server/src/lib/const.ts b/server/src/lib/const.ts
index 0ccb5feb0..36f3b104c 100644
--- a/server/src/lib/const.ts
+++ b/server/src/lib/const.ts
@@ -233,6 +233,60 @@ const STRIPE_PRICES: StripePlan[] = [
replays: 2_000_000,
},
},
+ {
+ name: "standard30m",
+ priceId: "price_1TC8swDFVprnAny29M5pz5Kl",
+ interval: "month",
+ limits: {
+ events: 30_000_000,
+ replays: 3_000_000,
+ },
+ },
+ {
+ name: "standard30m-annual",
+ priceId: "price_1TC8vZDFVprnAny2gWX5mw5M",
+ interval: "year",
+ limits: {
+ events: 30_000_000,
+ replays: 3_000_000,
+ },
+ },
+ {
+ name: "standard40m",
+ priceId: "price_1TC8yMDFVprnAny233Cfbjb6",
+ interval: "month",
+ limits: {
+ events: 40_000_000,
+ replays: 4_000_000,
+ },
+ },
+ {
+ name: "standard40m-annual",
+ priceId: "price_1TC90CDFVprnAny27ha82pV3",
+ interval: "year",
+ limits: {
+ events: 40_000_000,
+ replays: 4_000_000,
+ },
+ },
+ {
+ name: "standard50m",
+ priceId: "price_1TC911DFVprnAny2148SMHHV",
+ interval: "month",
+ limits: {
+ events: 50_000_000,
+ replays: 5_000_000,
+ },
+ },
+ {
+ name: "standard50m-annual",
+ priceId: "price_1TC91IDFVprnAny2rLGKQzmy",
+ interval: "year",
+ limits: {
+ events: 50_000_000,
+ replays: 5_000_000,
+ },
+ },
// Pro tiers
{
priceId: "price_1S8szIDFVprnAny2Hg7cxG5b",
@@ -378,6 +432,60 @@ const STRIPE_PRICES: StripePlan[] = [
replays: 2_000_000,
},
},
+ {
+ priceId: "price_1TC8x6DFVprnAny2OCjTzaIG",
+ name: "pro30m",
+ interval: "month",
+ limits: {
+ events: 30_000_000,
+ replays: 3_000_000,
+ },
+ },
+ {
+ priceId: "price_1TC8tnDFVprnAny2u4NkOtOD",
+ name: "pro30m-annual",
+ interval: "year",
+ limits: {
+ events: 30_000_000,
+ replays: 3_000_000,
+ },
+ },
+ {
+ priceId: "price_1TC8yaDFVprnAny2b96SzRYV",
+ name: "pro40m",
+ interval: "month",
+ limits: {
+ events: 40_000_000,
+ replays: 4_000_000,
+ },
+ },
+ {
+ priceId: "price_1TC90YDFVprnAny25SJs1FuX",
+ name: "pro40m-annual",
+ interval: "year",
+ limits: {
+ events: 40_000_000,
+ replays: 4_000_000,
+ },
+ },
+ {
+ priceId: "price_1TC91rDFVprnAny2bLJ8pdUH",
+ name: "pro50m",
+ interval: "month",
+ limits: {
+ events: 50_000_000,
+ replays: 5_000_000,
+ },
+ },
+ {
+ priceId: "price_1TC92BDFVprnAny2uuAeNheH",
+ name: "pro50m-annual",
+ interval: "year",
+ limits: {
+ events: 50_000_000,
+ replays: 5_000_000,
+ },
+ },
// Legacy annual price IDs (old 10-month pricing) for backward compatibility
{
priceId: "price_1RKuxUDFVprnAny2RkoZyxev",