Skip to content

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

Update Free Plan event limit to 10,000 and adjust related UI components

Bill Yang2448967257f9
diff --git a/client/src/components/subscription/FreePlan.tsx b/client/src/components/subscription/FreePlan.tsx
index 671a6711a..3c4dcecbb 100644
--- a/client/src/components/subscription/FreePlan.tsx
+++ b/client/src/components/subscription/FreePlan.tsx
@@ -3,14 +3,7 @@ import { useRouter } from "next/navigation";
import { DateTime } from "luxon";
import { Alert, AlertDescription, AlertTitle } from "../ui/alert";
import { Button } from "../ui/button";
-import {
- Card,
- CardContent,
- CardDescription,
- CardFooter,
- CardHeader,
- CardTitle,
-} from "../ui/card";
+import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "../ui/card";
import { Progress } from "../ui/progress";
import { DEFAULT_EVENT_LIMIT } from "../../lib/subscription/constants";
import { useStripeSubscription } from "../../lib/subscription/useStripeSubscription";
@@ -45,7 +38,7 @@ export function FreePlan() {
<CardHeader>
<CardTitle className="flex items-center">Free Plan</CardTitle>
<CardDescription>
- You are on the Free plan with up to 3,000 events per month.
+ You are on the Free plan with up to {DEFAULT_EVENT_LIMIT.toLocaleString()} events per month.
</CardDescription>
</CardHeader>
<CardContent>
@@ -55,8 +48,8 @@ export function FreePlan() {
<AlertTriangle className="h-4 w-4 text-red-500 dark:text-red-400" />
<AlertTitle>Event Limit Exceeded</AlertTitle>
<AlertDescription>
- You have exceeded your monthly event limit. Please upgrade to
- a Pro plan to continue collecting analytics.
+ You have exceeded your monthly event limit. Please upgrade to a Pro plan to continue collecting
+ analytics.
</AlertDescription>
</Alert>
) : (
@@ -65,8 +58,7 @@ export function FreePlan() {
<AlertTriangle className="h-4 w-4 text-amber-500 dark:text-amber-400" />
<AlertTitle>Approaching Limit</AlertTitle>
<AlertDescription>
- You are approaching your monthly event limit. Consider
- upgrading to a paid plan for higher limits.
+ You are approaching your monthly event limit. Consider upgrading to a paid plan for higher limits.
</AlertDescription>
</Alert>
)
@@ -82,26 +74,15 @@ export function FreePlan() {
{currentUsage.toLocaleString()} / {limit.toLocaleString()}
</span>
</div>
- <Progress
- value={percentageUsed}
- className={
- isNearLimit ? "bg-amber-100 dark:bg-amber-900" : ""
- }
- />
+ <Progress value={percentageUsed} className={isNearLimit ? "bg-amber-100 dark:bg-amber-900" : ""} />
</div>
</div>
</div>
{organizationId && (
<div className="space-y-2">
- <h3 className="font-medium text-sm text-neutral-400 mb-2">
- Last 30 Days
- </h3>
- <UsageChart
- organizationId={organizationId}
- startDate={startDate}
- endDate={endDate}
- />
+ <h3 className="font-medium text-sm text-neutral-400 mb-2">Last 30 Days</h3>
+ <UsageChart organizationId={organizationId} startDate={startDate} endDate={endDate} />
</div>
)}
</div>
diff --git a/client/src/lib/subscription/constants.ts b/client/src/lib/subscription/constants.ts
index c08fcfd2b..85d40fe28 100644
--- a/client/src/lib/subscription/constants.ts
+++ b/client/src/lib/subscription/constants.ts
@@ -2,4 +2,4 @@ export const TRIAL_EVENT_LIMIT = 1_000_000;
export const TRIAL_DURATION_DAYS = 14;
// Default limit for the free tier
-export const DEFAULT_EVENT_LIMIT = 3_000;
+export const DEFAULT_EVENT_LIMIT = 10_000;
diff --git a/docs/src/app/page.jsx b/docs/src/app/page.jsx
index 0794f3268..18e66190c 100644
--- a/docs/src/app/page.jsx
+++ b/docs/src/app/page.jsx
@@ -126,7 +126,7 @@ export default function IndexPage() {
</div>
<p className="text-neutral-400 text-xs md:text-sm flex items-center justify-center gap-2 mt-6">
<CheckCircle className="w-3 h-3 md:w-4 md:h-4" />
- No credit card required
+ First 10,000 events/m are free. No credit card required.
</p>
</div>
@@ -383,7 +383,7 @@ export default function IndexPage() {
It's time to switch to analytics that's made for you
</h2>
<p className="text-base md:text-xl text-neutral-300 mb-6 md:mb-10 max-w-3xl mx-auto">
- The first 3,000 events a month are free
+ The first 10,000 events a month are free
</p>
<div className="flex flex-col sm:flex-row items-center justify-center gap-4 md:gap-6 mb-6 md:mb-8 w-full sm:w-auto">
diff --git a/docs/src/app/pricing/components/ComparisonSection.jsx b/docs/src/app/pricing/components/ComparisonSection.jsx
index f1a9c316b..16ba67b25 100644
--- a/docs/src/app/pricing/components/ComparisonSection.jsx
+++ b/docs/src/app/pricing/components/ComparisonSection.jsx
@@ -9,7 +9,7 @@ const COMPARISON_FEATURES = [
features: [
{
name: "Monthly events",
- free: "3,000",
+ free: "10,000",
pro: "100K - 10M+",
},
{
diff --git a/docs/src/app/pricing/components/PricingSection.jsx b/docs/src/app/pricing/components/PricingSection.jsx
index 9d6cf3388..834dc296a 100644
--- a/docs/src/app/pricing/components/PricingSection.jsx
+++ b/docs/src/app/pricing/components/PricingSection.jsx
@@ -95,7 +95,7 @@ export function PricingSection() {
<div className="flex justify-between mb-3 items-center">
<div>
<h3 className="font-semibold mb-2">Free</h3>
- <div className="text-3xl font-semibold text-neutral-200">3,000</div>
+ <div className="text-3xl font-semibold text-neutral-200">10,000</div>
<p className="text-neutral-400 text-sm">events/month</p>
</div>
{/* <div className="flex flex-col items-end">
diff --git a/server/src/lib/const.ts b/server/src/lib/const.ts
index 10b9d0aa2..eecf818ad 100644
--- a/server/src/lib/const.ts
+++ b/server/src/lib/const.ts
@@ -11,7 +11,7 @@ export const SECRET = process.env.BETTER_AUTH_SECRET;
// export const TRIAL_DURATION_DAYS = 14;
// export const TRIAL_EVENT_LIMIT = 100000;
-export const DEFAULT_EVENT_LIMIT = 3_000;
+export const DEFAULT_EVENT_LIMIT = 10_000;
// Define a type for the plan objects
export interface StripePlan {