Skip to content
@xtandard/entitlements
Search
Ctrl
K
Cancel
GitHub
npm
Select theme
Dark
Light
Auto
Menu
Start here
Getting started
Why
Quickstart
Subpath exports
Examples
Concepts
Catalog
Metering
Architecture
Hooks & events
Integrations
Billing providers
Flags & OpenFeature
Audit & webhooks
Framework adapters
Storage & counters
UI & API
Admin UI & React
Screenshots
Customer portal
HTTP API
Authentication
Authorization
Operations
Deployment
Testing
API reference
auth/basic
Type Aliases
BasicAuthOptions
Functions
basicAuth
auth/delegated
auth/none
authorization/delegated
Interfaces
DelegatedAuthorizationOptions
Functions
delegatedAuthorization
authorization/none
Functions
noAuthorization
authorization/roles
Interfaces
RolesAuthorizationOptions
Type Aliases
RolePolicy
Variables
BILLING_ADMIN_ACTIONS
DEFAULT_ROLE_POLICY
READ_ACTIONS
RUNTIME_SERVICE_ACTIONS
SUPPORT_ACTIONS
VIEWER_ACTIONS
Functions
rolesAuthorization
References
ALL_ACTIONS
billing
Classes
BillingApiError
Interfaces
BillingOptions
ProviderHttpOptions
UsageExporter
UsageExporterOptions
Type Aliases
FetchLike
UnmappedEvent
Functions
createBilling
createUsageExporter
References
BillingEvent
BillingProvider
BillingVerificationError
BillingWebhook
CheckoutInput
EntitlementsBilling
IntakeOutcome
PortalSessionInput
ProviderItem
ProviderSubscription
ReconcileResult
UsageRecord
billing/better-auth
Interfaces
BetterAuthPlansOptions
BetterAuthStripeCallbackData
BetterAuthStripeOptions
BetterAuthStripePlan
BetterAuthStripeSubscription
BetterAuthStripeSubscriptionOptions
Functions
betterAuthStripe
toBetterAuthPlans
billing/lemonsqueezy
Interfaces
LemonSqueezyProviderOptions
LemonSqueezySubscriptionObject
Functions
createLemonSqueezyProvider
lemonSqueezyStatus
normalizeLemonSqueezySubscription
signLemonSqueezyPayload
billing/manual
Functions
createManualProvider
billing/paddle
Interfaces
PaddleProviderOptions
PaddleSubscriptionObject
Functions
createPaddleProvider
normalizePaddleSubscription
paddleStatus
parsePaddleSignature
signPaddlePayload
billing/polar
Interfaces
PolarProviderOptions
PolarSubscriptionObject
Functions
createPolarProvider
normalizePolarSubscription
polarStatus
signPolarPayload
billing/stripe
Interfaces
StripeProviderOptions
StripeSubscriptionObject
Functions
createStripeProvider
normalizeStripeSubscription
parseStripeSignature
signStripePayload
stripeForm
stripeStatus
bridges/audit
Interfaces
AuditActorLike
AuditHooksOptions
AuditRecorderLike
AuditRecordInputLike
AuditTargetLike
Functions
auditHooks
bridges/webhooks
Interfaces
WebhooksEventsBridge
WebhooksEventsOptions
WebhooksPublisherLike
WebhooksPublishInputLike
Variables
ENTITLEMENTS_EVENT_TYPES
Functions
webhooksEvents
bun
Type Aliases
GuardedBunHandler
Functions
entitlementsPanel
requireEntitlement
References
CreateFetchHandlerResult
EntitlementsPanelOptions
RequireEntitlementOptions
catalog
Classes
CatalogError
Interfaces
AddonDefinition
AnyCatalog
BooleanFeature
CapacityFeature
Catalog
CatalogDefinition
CreditsFeature
FeatureCommon
LimitSpec
MeteredFeature
NormalizedAddon
NormalizedCatalog
NormalizedFeature
NormalizedLimit
NormalizedPlan
PlanDefinition
PlanVersionDefinition
PriceDisplay
PricingAddon
PricingCell
PricingPlan
PricingTable
ProviderItemTarget
ValueFeature
Type Aliases
AddonFeatureEntry
AddonFeatures
AddonKey
FeatureDefinition
FeatureKey
FeatureKeyOfKind
FeatureKind
FeatureOf
FeatureValue
JsonObject
JsonPrimitive
JsonValue
MeteringMode
NormalizedAddonEntry
NormalizedEntry
OveragePolicy
PlanFeatureEntry
PlanFeatures
PlanKey
ProviderMapping
ResetInterval
Unlimited
Widen
Variables
feature
Functions
addon
defineCatalog
formatQuantity
getPlanVersion
plan
pricingTable
counters/buffered
Interfaces
BufferedCounterStoreOptions
Functions
createBufferedCounterStore
References
BufferedCounterStore
isBufferedCounterStore
counters/drizzle
Interfaces
DrizzleCounterStore
DrizzleCounterStoreOptions
Type Aliases
DrizzleCounterTable
Functions
createDrizzleCounterStore
counters/kv
Interfaces
KvCounterStoreOptions
Functions
createKvCounterStore
counters/libsql
Interfaces
LibsqlCounterStore
LibsqlCounterStoreOptions
Functions
createLibsqlCounterStore
counters/memory
Interfaces
MemoryCounterStoreOptions
Functions
createMemoryCounterStore
counters/mongodb
Interfaces
MongoCounterStore
MongoCounterStoreOptions
Functions
createMongoCounterStore
counters/postgres
Interfaces
PostgresCounterStore
PostgresCounterStoreOptions
Functions
createPostgresCounterStore
postgresCounterSchema
counters/redis
Interfaces
RedisCounterStore
RedisCounterStoreOptions
Functions
createRedisCounterStore
counters/sqlite
Interfaces
SqlCounterStore
SqliteCounterStore
SqliteCounterStoreOptions
Functions
createSqliteCounterStore
drizzle/mysql
Type Aliases
MysqlCountersTableOptions
MysqlEntitlementsTableOptions
Functions
mysqlCountersTable
mysqlEntitlementsTable
References
DrizzleCounterTable
drizzle/pg
Type Aliases
PgCountersTableOptions
PgEntitlementsTableOptions
Functions
pgCountersTable
pgEntitlementsTable
References
DrizzleCounterTable
drizzle/sqlite
Type Aliases
SqliteCountersTableOptions
SqliteEntitlementsTableOptions
Functions
sqliteCountersTable
sqliteEntitlementsTable
References
DrizzleCounterTable
elysia
Interfaces
ElysiaEntitlementsHandler
ElysiaGuardContext
EntitlementsElysiaOptions
Type Aliases
EntitlementsElysiaPlugin
Functions
entitlementsElysia
entitlementsPanel
requireEntitlement
References
EntitlementsPanelOptions
RequireEntitlementOptions
entitlements
Namespaces
keys
functions
activityKey
activityLogKey
capacityKey
customerKey
customersPrefix
dailyKey
dailyPrefix
eventKey
grantKey
idempotencyKey
lastSegment
linkKey
reservationKey
reservationsPrefix
thresholdKey
usageKey
usagePrefix
variables
ROOT
Classes
BillingVerificationError
EntitlementDeniedError
EntitlementsValidationError
InputValidationError
NotFoundError
ReadonlyError
Interfaces
ActivePlan
ActivityEntry
Actor
ActorOptions
BillingProvider
BillingWebhook
Bucket
BufferedCounterStore
CatalogView
CheckOptions
CheckoutInput
CheckResult
ConsumeOptions
CounterAddOptions
CounterAddResult
CounterStore
CreateFetchHandlerResult
CustomerClient
CustomerEntitlements
CustomerState
CustomerSummary
Entitlements
EntitlementsBilling
EntitlementSet
EntitlementsOptions
EntitlementSource
EntitlementsPanelOptions
EntitlementsPortalOptions
FeatureUsage
Grant
GrantBucket
GrantInput
Leg
LegState
OpenApiOptions
Override
OverrideInput
Overview
PanelConfig
PeriodAnchor
PortalSessionInput
PortalTokenClaims
PortalTokenOptions
PortalView
ProviderItem
ProviderSubscription
ReconcileResult
RequireEntitlementOptions
Reservation
ReserveOptions
ReserveResult
ResolvedFeature
ResolveOptions
SettleOptions
SubscribeInput
Subscription
SubscriptionInput
Take
TakeResult
ThresholdEvent
UpsertSubscriptionResult
UsageEvent
UsagePeriod
UsageRecord
Type Aliases
AfterEvent
AfterEventType
AuthorizationProvider
AuthorizeInput
BeforeEvent
BeforeEventType
BillingEvent
CountersOption
DecisionReason
Denial
EntitlementsAction
EntitlementsHooks
EntitlementsHooksInput
EntitlementsResource
EventErrorReporter
FromContext
GuardOutcome
HookErrorReporter
IntakeOutcome
PortalAction
PortalTokenError
RouteSpec
RouteTag
SubscriptionStatus
ThresholdListener
TypedCheckResult
UsageListener
Variables
ALL_ACTIONS
API_ROUTES
DEFAULT_ENTITLED_STATUSES
defaultHookErrorReporter
MUTATING_ACTIONS
PORTAL_ACTIONS
PORTAL_TOKEN_PREFIX
PortalTokenError
Functions
addMonthsClamped
anchoredMonth
assertAmount
buildLegs
buildOpenApiDocument
buildOverview
catalogView
computeApplied
createEntitlements
createFetchHandler
createPortalToken
currentPeriod
denialOf
denialResponse
emit
emptyCustomerState
evaluateGuard
isBufferedCounterStore
isMutatingAction
legState
newId
parseInput
pgListenNotify
requirePeer
resolveEntitlements
subscriptionInactiveReason
takeLegs
unlockingPlans
verifyPortalToken
References
addon
AddonDefinition
AddonKey
AnyCatalog
Catalog
CatalogDefinition
CatalogError
defineCatalog
feature
FeatureDefinition
FeatureKey
FeatureKeyOfKind
FeatureKind
FeatureValue
formatQuantity
getPlanVersion
JsonObject
JsonValue
LimitSpec
MeteringMode
NormalizedCatalog
NormalizedFeature
NormalizedPlan
OveragePolicy
plan
PlanDefinition
PlanKey
PriceDisplay
PricingCell
PricingPlan
pricingTable
PricingTable
ProviderMapping
ResetInterval
express
Type Aliases
EntitlementRequest
ExpressEntitlementsHandler
Functions
entitlementsPanel
requireEntitlement
References
EntitlementsPanelOptions
RequireEntitlementOptions
flags
Interfaces
EntitlementsContextOptions
EntitlementsHookOptions
EntitlementsOpenFeatureProvider
EntitlementsProviderOptions
Type Aliases
EntitlementsContextAttributes
EntitlementsContextFn
Functions
createEntitlementsHook
createEntitlementsProvider
entitlementsContext
toOpenFeatureReason
hono
Interfaces
EntitlementVariables
Type Aliases
HonoEntitlementsPanel
Functions
entitlementsPanel
requireEntitlement
References
EntitlementsPanelOptions
RequireEntitlementOptions
hooks/log
Type Aliases
LogHookOptions
Functions
createLogHook
next
Interfaces
WithEntitlementOptions
Functions
entitlementsPanel
withEntitlement
References
EntitlementsPanelOptions
RequireEntitlementOptions
react
Interfaces
CustomerInfo
EntitlementsContextValue
EntitlementsProviderProps
EntitlementState
GateProps
PortalData
PricingTableProps
TypedEntitlementsReact
UpgradePromptProps
UsageMeterProps
Type Aliases
EntitlementsData
MeterLevel
TokenSource
Functions
computeEntitlement
covers
createEntitlementsReact
customerInfo
EntitlementsProvider
formatPlanPrice
Gate
meterState
PricingTable
unlockersFromPricing
UpgradePrompt
UsageMeter
useCustomer
useEntitlement
useEntitlements
react/embed
Interfaces
CustomerPortalProps
EntitlementsDashboardProps
Type Aliases
EmbedTheme
Variables
CustomerPortal
EntitlementsDashboard
getThemePref
setApiBase
setApiToken
setThemePref
References
default
storage/cloudflare-kv
storage/drizzle
Type Aliases
DrizzleEntitlementsStorage
Functions
createDrizzleStorage
storage/file
Type Aliases
FileEntitlementsStorage
FileStorageOptions
Functions
createFileStorage
storage/libsql
Type Aliases
LibsqlEntitlementsStorage
LibsqlStorageOptions
Functions
createLibsqlStorage
storage/memory
Type Aliases
MemoryEntitlementsStorage
MemoryStorageOptions
Functions
createMemoryStorage
storage/mongodb
Type Aliases
MongoEntitlementsStorage
MongoStorageOptions
Functions
createMongoStorage
storage/postgres
Type Aliases
PostgresEntitlementsStorage
PostgresStorageOptions
Functions
createPostgresStorage
postgresStorageSchema
storage/redis
Type Aliases
RedisEntitlementsStorage
RedisStorageOptions
Functions
createRedisJSONStorage
createRedisStorage
storage/sqlite
Type Aliases
SqliteEntitlementsStorage
SqliteStorageOptions
Functions
createSqliteStorage
storage/unstorage
testing
Interfaces
TestClock
TestEntitlements
Type Aliases
TestEntitlementsOptions
Functions
createTestClock
createTestEntitlements
Project
xtandard ecosystem
Changelog
Landscape research
Brand
Architecture decisions
0001 · Subpath exports
0002 · Catalog as code
0003 · Memory-first snapshots
0004 · State + counter ports
0005 · Consumption model
0006 · Write-behind counters
0007 · Billing provider port
0008 · Flags bridge
0009 · Decisions & denials
0010 · UI & portal tokens
0011 · React hooks & embeds
0012 · Versions, trials, add-ons
0013 · Ecosystem bridges
0014 · Periods & resets
0015 · Non-goals
0016 · Storage driver deviations
0017 · Examples run from source
Releases
npm
GitHub
npm
Select theme
Dark
Light
Auto
Screenshots