Entitlement infrastructure for small SaaS teams
Stop writing if plan == "pro".
Define plans once. Ask Seal0 what each customer gets, and why.
Open beta: free, no card. Your first evaluation in under ten minutes.
import { Seal0 } from "@seal0/sdk";
const seal0 = new Seal0({ apiKey: process.env.SEAL0_API_KEY! });
const { entitlement } = await seal0.evaluate(
"cus_test_0001",
"max_projects",
);client, err := seal0.New(os.Getenv("SEAL0_API_KEY"))
if err != nil {
return err
}
ev, err := client.Evaluate(ctx, "cus_test_0001", "max_projects")curl -X POST https://api.seal0.app/v1/entitlements/evaluate \
-H "Authorization: Bearer $SEAL0_API_KEY" \
-H "Content-Type: application/json" \
-d '{"customer_id":"cus_test_0001",
"feature_key":"max_projects"}'{
"subscription": {
"plan": { "key": "pro", "version": 3 }
},
"entitlement": {
"granted": true,
"value": 10,
"source": "plan",
"reason": "included_in_plan",
"valid_until": null
}
}subscription- which subscription and plan version decided it
source- where the value came from: override, plan, default or none
reason- why, as a stable code your code can branch on
valid_until- how long you can cache it
- Open-source SDKs (Apache-2.0)
- No runtime dependencies
- Seal0's own plans run on Seal0
- No personal data about your customers
The problem
Plan logic spreads through your code
A second plan, a trial, one deal for one customer: each adds a check somewhere. Changing a price means a deploy, and nobody can say why a customer got what they got.
// routes/projects.ts
if (customer.plan === "pro" || customer.plan === "team") {
limit = customer.plan === "team" ? 10 : 3;
}
// routes/export.ts
if (customer.plan !== "free" || customer.trialEndsAt > now) {
allowExport();
}
// billing/webhook.ts
if (customer.id === "cus_test_0042") {
limit = Infinity; // the deal from March
}const { entitlement } = await seal0.evaluate(
customer.id,
"max_projects",
);
// The plan, the trial and the deal live in Seal0.
// Changing them is data, not a deploy.How it works
Three steps, one decision order
- 01
Define features and plans
Booleans, numbers, options and metered limits. Publishing a plan makes that version permanent.
- 02
Assign subscriptions
Your code, or your payment webhook, sets each customer's subscription. Overrides cover trials and deals.
- 03
Ask what they get
One call returns the value, where it came from, and how long it stays valid.
- Overridea trial or a deal, with an expiry
- Plan versionwhat the plan includes
- Feature defaulta fallback you choose
- Nonea normal answer, not an error
What you get
Built to be exact
Four feature types
On or off, a number, one of a set of options, or a metered limit per period with a grace margin. Unlimited is an explicit value, never a magic number.
Read more about four feature typesPlan versions never change
Publishing freezes a version. Existing customers stay on theirs until you move them, and the move is recorded.
Read more about plan versions never changeOverrides for the exceptions
Trials, design partners and negotiated deals, each with a start and an expiry. They end on time with no cleanup.
Read more about overrides for the exceptionsEvery answer explained
Source, reason, subscription and override on each result, and an inspector in the Console that shows the same thing.
Read more about every answer explainedSafe to cache
valid_until is the next moment the answer can change on its own, such as a trial ending. Cache until then.
Read more about safe to cacheDevelopment and production apart
Each environment has its own keys and data. Nothing you try in development reaches production.
Read more about development and production apart
Your stack
Bring any payment processor
Seal0 does not touch payments. When a payment succeeds or fails, your webhook updates the customer's subscription, and every answer follows.
go get github.com/seal0-app/sdk-gonpm install @seal0/sdk
Or call the REST API from any language.
Clear limits
What Seal0 is not
- Not authentication, authorization or RBAC.
- Not billing or a payment processor.
- Not feature flags. Flags answer "is this code on?". Entitlements answer "what did this customer buy?".
- Not a policy engine.
Pricing
Free during the open beta
Every Account starts on Free, with every feature. Pro and Team, with higher limits, are coming soon. Plans differ only in projects, Members and API requests per month.
Free
Open nowStart free$0/ month
Trying Seal0, a side project
- 10,000 API requests
- 1 project
- 1 Member
Pro
SoonComing soon, with higher limits
Team
SoonComing soon, with higher limits
Past the allowance there is a 20 percent margin, then API requests get HTTP 429 until the next month. Need higher limits during the beta? Write to us.
Your customers' data
No personal data about your customers
Seal0 knows each customer only by an ID you choose, such as cus_0001. That's all it needs to answer what they get.
What Seal0 stores
- The ID you choose for each customer
- Their subscriptions and overrides
- Usage counts for metered features
What Seal0 never stores
- Names or email addresses
- Payment details
- Any other profile data or metadata
Asked before you sign up
Something else? Write to us.
Does it work with Stripe?
Seal0 does not touch payments, so it works with any processor, or none. Your payment webhook updates the customer's subscription in Seal0.
Is it open source?
The Go and TypeScript SDKs are open source under Apache-2.0. The engine and server are not.
Can I self-host it?
No, not for now.
What happens if Seal0 is down?
Cache each result until its valid_until, and decide your own fallback for when Seal0 can't be reached.
What do you store about my customers?
Only the ID you choose for each one, plus their subscriptions, overrides and usage counts. No names, emails or metadata.
What happens at my request limit?
Each plan has a monthly allowance of API requests. Past it there is a 20 percent margin; beyond that, requests are refused with HTTP 429 until the next month or until you upgrade.
Is it ready for production?
Seal0 is in open beta. The API is versioned and changes to it are additive, but there is no uptime guarantee yet. Every Account is on Free during the beta; write to us if you need higher limits.
How is this different from feature flags?
Flags answer "is this code on?". Entitlements answer "what did this customer buy?": plans, trials, limits and deals, with a reason for each answer.
Your first evaluation in under ten minutes
Create a plan, assign it to a test customer, and ask Seal0 what they get.