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.

Ask
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"}'
The answer (abridged)200 OK
{
  "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

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.

Before Checks in every route
// 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
}
With Seal0 One question, one answer
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

  1. 01

    Define features and plans

    Booleans, numbers, options and metered limits. Publishing a plan makes that version permanent.

  2. 02

    Assign subscriptions

    Your code, or your payment webhook, sets each customer's subscription. Overrides cover trials and deals.

  3. 03

    Ask what they get

    One call returns the value, where it came from, and how long it stays valid.

First, the customer's subscription must be in effect at that instant: inside its period, trial or grace, and not past a cancellation. Then the first of these with a value wins:
  1. Overridea trial or a deal, with an expiry
  2. Plan versionwhat the plan includes
  3. Feature defaulta fallback you choose
  4. Nonea normal answer, not an error

What you get

Built to be exact

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-go
  • npm 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.

  • Pro

    Soon

    Coming soon, with higher limits

  • Team

    Soon

    Coming 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.