MCPcopy Index your code
hub / github.com/simstudioai/sim / getPlanLimits

Function getPlanLimits

apps/sim/lib/billing/plans.ts:115–118  ·  view source on GitHub ↗
(planName: string)

Source from the content-addressed store, hash-verified

113 * Get plan limits for a given plan name
114 */
115export function getPlanLimits(planName: string): number {
116 const plan = getPlanByName(planName)
117 return plan?.limits.cost ?? getFreeTierLimit()
118}
119
120export interface StripePlanResolution {
121 priceId: string | undefined

Callers

nothing calls this directly

Calls 2

getFreeTierLimitFunction · 0.90
getPlanByNameFunction · 0.85

Tested by

no test coverage detected