Elffuss BraidHub

kikocis/clonagent public

main · 816 BRawPermalink
1// Plan definitions — single source of truth for limits and Stripe price IDs.
2const PLANS = {
3 free: {
4 id: 'free',
5 name: 'Free',
6 price: 0,
7 maxAgents: 1,
8 maxRunsPerMonth: 20,
9 stripePriceId: null,
10 },
11 starter: {
12 id: 'starter',
13 name: 'Starter',
14 price: 29,
15 maxAgents: 5,
16 maxRunsPerMonth: 200,
17 stripePriceId: process.env.STRIPE_PRICE_STARTER || '',
18 },
19 pro: {
20 id: 'pro',
21 name: 'Pro',
22 price: 99,
23 maxAgents: 20,
24 maxRunsPerMonth: Infinity,
25 stripePriceId: process.env.STRIPE_PRICE_PRO || '',
26 },
27};
28
29function getPlan(planId) {
30 return PLANS[planId] || PLANS.free;
31}
32
33function allPlans() {
34 return Object.values(PLANS);
35}
36
37module.exports = { PLANS, getPlan, allPlans };