Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172import { normalizePlanKey, type PlanKey } from "@/lib/plan-keys";
export type PlanCatalogEntry = { key: PlanKey; name: string; description: string; pdsDiskSizeGb: number; maxAccounts: number; badge?: string; highlight?: boolean; disabled?: boolean; features: string[];};
export const PLAN_CATALOG: Record<PlanKey, PlanCatalogEntry> = { personal: { key: "personal", name: "Personal", description: "Your own AT Protocol PDS, ready in seconds.", pdsDiskSizeGb: 5, maxAccounts: 1, features: [ "5 GB blob & repo storage", "Personal AT Protocol PDS", "Single account/did", "Your handle: yourpds.eny.space", "Managed updates & backups", ], }, community: { key: "community", name: "Community", description: "Host your own corner of the Atmosphere.", pdsDiskSizeGb: 20, maxAccounts: Infinity, // badge: "Popular", highlight: true, features: [ "20 GB blob & repo storage", "Host multiple accounts", "Invite codes for your members", "Managed updates & backups", ], }, business: { key: "business", name: "Organization", description: "Dedicated infrastructure for teams and companies.", pdsDiskSizeGb: 100, maxAccounts: Infinity, disabled: true, features: [ "100+ GB blob & repo storage", "Unlimited hosted accounts", "Dedicated node", "Custom domain & SLA", "Priority support", ], },};
export function formatPdsStorageLabel(plan: PlanCatalogEntry): string { return `${plan.pdsDiskSizeGb} GB PDS storage`;}
export function getPlanCatalogEntry( planKey?: string | null,): PlanCatalogEntry { return PLAN_CATALOG[normalizePlanKey(planKey)];}