---
title: "nuxt-backend/rate-limit"
description: "Every export of nuxt-backend/rate-limit, with its signature and where it is defined."
canonical_url: "https://nuxt-backend.dev/docs/reference/api/rate-limit"
---
# nuxt-backend/rate-limit

Version: nuxt-backend 0.6.x · Tab: Reference · Kind: reference · Status: stable

Every page: [llms.txt](https://nuxt-backend.dev/llms.txt) · Skill for coding agents: [nuxt-backend](https://nuxt-backend.dev/.well-known/skills/nuxt-backend/SKILL.md)

Commands use npm; use your project's package manager.

## Interfaces

### RateLimiterComponents

Defined in: [src/convex/integrations/rate-limit.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts)

The component handle `setupRateLimiter` reads from your generated
`components` object (the key is picked structurally — pass the whole object).

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="ratelimiter">
        
      </a>
      
       <code>
        rateLimiter
      </code>
    </td>
    
    <td>
      <code>
        ComponentApi
      </code>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

## Type Aliases

### RateLimitConfig

```ts
type RateLimitConfig = 
  | TokenBucketConfig & ShardedConfig
  | TokenBucketConfig & AsyncConfig
  | FixedWindowConfig & ShardedConfig
  | FixedWindowConfig & AsyncConfig;
```

Defined in: node_modules/@convex-dev/rate-limiter/dist/shared.d.ts:116

One of the supported rate limits.
See [tokenBucketValidator](https://github.com/convex/rate-limiter#define-your-rate-limits) and [fixedWindowValidator](https://github.com/convex/rate-limiter#define-your-rate-limits) for more
information.

## Variables

### SECOND

```ts
const SECOND: 1000 = 1000;
```

Defined in: node_modules/@convex-dev/rate-limiter/dist/client/index.d.ts:6

---

### MINUTE

```ts
const MINUTE: number;
```

Defined in: node_modules/@convex-dev/rate-limiter/dist/client/index.d.ts:7

---

### HOUR

```ts
const HOUR: number;
```

Defined in: node_modules/@convex-dev/rate-limiter/dist/client/index.d.ts:8

---

### DAY

```ts
const DAY: number;
```

Defined in: node_modules/@convex-dev/rate-limiter/dist/client/index.d.ts:9

---

### DEFAULT_LIMITS

```ts
const DEFAULT_LIMITS: {
  emailOtp: {
     kind: "token bucket";
     rate: 5;
     period: number;
     capacity: 5;
  };
  emailOtpGlobal: {
     kind: "fixed window";
     rate: 300;
     period: number;
     applyUpdates: "asynchronously";
  };
  emailOtpAttempt: {
     kind: "token bucket";
     rate: 10;
     period: number;
     capacity: 10;
  };
  emailChange: {
     kind: "token bucket";
     rate: 5;
     period: number;
     capacity: 5;
  };
  billingSync: {
     kind: "token bucket";
     rate: 10;
     period: number;
     capacity: 5;
  };
  ai: {
     kind: "token bucket";
     rate: 30;
     period: number;
     capacity: 10;
  };
  aiBudget: {
     kind: "fixed window";
     rate: 10000;
     period: number;
  };
  aiGlobal: {
     kind: "fixed window";
     rate: 300;
     period: number;
     applyUpdates: "asynchronously";
  };
  admin: {
     kind: "token bucket";
     rate: 30;
     period: number;
     capacity: 10;
  };
  invitation: {
     kind: "token bucket";
     rate: 30;
     period: number;
     capacity: 10;
  };
  invitationGlobal: {
     kind: "fixed window";
     rate: 200;
     period: number;
  };
  workspaceCreate: {
     kind: "token bucket";
     rate: 10;
     period: number;
     capacity: 5;
  };
  accountDelete: {
     kind: "token bucket";
     rate: 3;
     period: number;
     capacity: 3;
  };
  passkeySignIn: {
     kind: "token bucket";
     rate: 30;
     period: number;
     capacity: 30;
  };
  passkeySignInGlobal: {
     kind: "fixed window";
     rate: 3000;
     period: number;
     applyUpdates: "asynchronously";
  };
  signUpOtpGlobal: {
     kind: "fixed window";
     rate: 200;
     period: number;
  };
  inviteCheck: {
     kind: "token bucket";
     rate: 10;
     period: number;
     capacity: 10;
  };
  inviteCheckGlobal: {
     kind: "fixed window";
     rate: 1000;
     period: number;
  };
  waitlistJoin: {
     kind: "token bucket";
     rate: 5;
     period: number;
     capacity: 3;
  };
  waitlistJoinGlobal: {
     kind: "fixed window";
     rate: 1000;
     period: number;
  };
  contact: {
     kind: "token bucket";
     rate: 5;
     period: number;
     capacity: 3;
  };
  contactGlobal: {
     kind: "fixed window";
     rate: 500;
     period: number;
  };
  inboundMail: {
     kind: "token bucket";
     rate: 30;
     period: number;
     capacity: 10;
  };
  inboundMailGlobal: {
     kind: "fixed window";
     rate: 3000;
     period: number;
  };
  report: {
     kind: "fixed window";
     rate: 10;
     period: number;
  };
  reportGlobal: {
     kind: "fixed window";
     rate: 500;
     period: number;
  };
  write: {
     kind: "token bucket";
     rate: 120;
     period: number;
     capacity: 60;
  };
  upload: {
     kind: "token bucket";
     rate: 100;
     period: number;
     capacity: 20;
  };
};
```

Defined in: [src/convex/integrations/rate-limit.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts)

The package's default rate limits — `emailOtp`, `emailOtpGlobal`,
`emailOtpAttempt`, `emailChange`, `billingSync`, `ai`, `aiBudget`, `aiGlobal`,
`admin`, `invitation`, `invitationGlobal`, `workspaceCreate`, `accountDelete`,
`passkeySignIn`, `passkeySignInGlobal`, `signUpOtpGlobal`, `inviteCheck`,
`inviteCheckGlobal`, `waitlistJoin`, `waitlistJoinGlobal`, `contact`, `contactGlobal`,
`inboundMail`, `inboundMailGlobal`, `report`, `reportGlobal`,
`write` and `upload` —
guarding the flows the package itself drives.
Keyed per email/entity/caller at the call site (e.g. `limit(ctx, 'emailOtp', { key: hash })`); the `*Global` ones are unkeyed. Extend or
override any of them by passing your own limits to [setupRateLimiter](#setupratelimiter).

Deliberately small: `emailOtp` throttles code *sends* and
`emailOtpAttempt` code *checks*, per address (Better Auth's own
`allowedAttempts` bounds the guesses at one code, but a new code is one
request away), `emailOtpGlobal` caps sends deployment-wide,
`billingSync` guards the live provider fan-out, `ai`/`aiBudget`
back the metered-action and credit-budget surfaces, `aiGlobal` caps what
the app pays for itself (guest jobs), and
`admin`/`invitation`/`emailChange` cover the signed-in routes where one
caller acts on *other* people or addresses, `workspaceCreate` the route
that makes a billing entity, `accountDelete` an account's own deletion —
see `setupAuth`'s route
limits — and `passkeySignIn`/
`passkeySignInGlobal` the routes anyone may call without a session. The package is passwordless: there are no password limits, and an
app that turns passwords on brings its own.

The three busiest deployment-wide ceilings, `emailOtpGlobal`, `aiGlobal`
and `passkeySignInGlobal`, apply their updates asynchronously
(`applyUpdates: 'asynchronously'`): a request checks the window on a
snapshot and queues its token, so the requests that spend one never
conflict over the window's single row. Under a burst the ceiling lets
through every request that read the window before the queue caught up,
so more than its rate. The queue then applies every queued spend, without
stopping at zero, so the window ends below zero and the overshoot is
taken from the next windows: a flood keeps the ceiling closed for longer
than one window. Nothing in front of it bounds a flood either: a sign-in
code is limited per address, and a flood rotates addresses.
An override of one of these three replaces its whole config: without
`applyUpdates` it is transactional again, and may be sharded; an
asynchronous limit can't be.

## Covering other auth routes

These names throttle the routes the package wires itself. Better Auth's own
per-path limiter is off by default: it counts in memory, which on Convex
lasts one function call. To throttle another route through it, turn it on
with a durable storage, straight from your auth options:

```ts
setupAuth(components, query, {
  authOptions: {
    rateLimit: {
      enabled: true,
      storage: 'database',
      customRules: { '/organization/create': { window: 60, max: 5 } },
    },
  },
})
```

That limiter counts per IP inside the auth request; the named limits here
count per identity and are enforced before the route runs.

#### Type Declaration

<table>
<thead>
  <tr>
    <th>
      Name
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default value
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="property-emailotp">
        
      </a>
      
       <code>
        emailOtp
      </code>
    </td>
    
    <td>
      { <code>
        kind
      </code>
      
      : <code>
        "token bucket"
      </code>
      
      ; <code>
        rate
      </code>
      
      : <code>
        5
      </code>
      
      ; <code>
        period
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        capacity
      </code>
      
      : <code>
        5
      </code>
      
      ; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      Email OTP / verification sends — 5 per minute per address, small burst allowance.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        emailOtp.kind
      </code>
    </td>
    
    <td>
      <code>
        "token bucket"
      </code>
    </td>
    
    <td>
      <code>
        'token bucket'
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        emailOtp.rate
      </code>
    </td>
    
    <td>
      <code>
        5
      </code>
    </td>
    
    <td>
      <code>
        5
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        emailOtp.period
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      <code>
        MINUTE
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        emailOtp.capacity
      </code>
    </td>
    
    <td>
      <code>
        5
      </code>
    </td>
    
    <td>
      <code>
        5
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="property-emailotpglobal">
        
      </a>
      
       <code>
        emailOtpGlobal
      </code>
    </td>
    
    <td>
      { <code>
        kind
      </code>
      
      : <code>
        "fixed window"
      </code>
      
      ; <code>
        rate
      </code>
      
      : <code>
        300
      </code>
      
      ; <code>
        period
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        applyUpdates
      </code>
      
      : <code>
        "asynchronously"
      </code>
      
      ; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      Email OTP sends across the whole deployment — 300 per hour, a fixed window. The backstop the per-address limit cannot be: an attacker rotating addresses to probe an invite gate or run up the email bill hits this ceiling. Raise it when a launch legitimately signs in more than that.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        emailOtpGlobal.kind
      </code>
    </td>
    
    <td>
      <code>
        "fixed window"
      </code>
    </td>
    
    <td>
      <code>
        'fixed window'
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        emailOtpGlobal.rate
      </code>
    </td>
    
    <td>
      <code>
        300
      </code>
    </td>
    
    <td>
      <code>
        300
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        emailOtpGlobal.period
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      <code>
        HOUR
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        emailOtpGlobal.applyUpdates
      </code>
    </td>
    
    <td>
      <code>
        "asynchronously"
      </code>
    </td>
    
    <td>
      <code>
        'asynchronously'
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="property-emailotpattempt">
        
      </a>
      
       <code>
        emailOtpAttempt
      </code>
    </td>
    
    <td>
      { <code>
        kind
      </code>
      
      : <code>
        "token bucket"
      </code>
      
      ; <code>
        rate
      </code>
      
      : <code>
        10
      </code>
      
      ; <code>
        period
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        capacity
      </code>
      
      : <code>
        10
      </code>
      
      ; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      Code checks — 10 per hour per address, burst 10. Every route that checks a code (sign-in, verification, both steps of an email change, a password reset when the app has passwords) spends one while a code is waiting, right or wrong, keyed by a SHA-256 of the address the code went to. Better Auth refuses a code after three wrong guesses, but <code>
        emailOtp
      </code>
      
       lets five new codes out a minute: without this limit, a guess loop that keeps requesting codes would get fifteen guesses a minute at one address, for as long as it ran. Here it gets ten an hour. Like every limit keyed by an address, someone who spends it can keep that address from signing in with a code for the hour — never without codes going to it, since a check with no code waiting spends nothing — and a passkey still signs it in.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        emailOtpAttempt.kind
      </code>
    </td>
    
    <td>
      <code>
        "token bucket"
      </code>
    </td>
    
    <td>
      <code>
        'token bucket'
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        emailOtpAttempt.rate
      </code>
    </td>
    
    <td>
      <code>
        10
      </code>
    </td>
    
    <td>
      <code>
        10
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        emailOtpAttempt.period
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      <code>
        HOUR
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        emailOtpAttempt.capacity
      </code>
    </td>
    
    <td>
      <code>
        10
      </code>
    </td>
    
    <td>
      <code>
        10
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="property-emailchange">
        
      </a>
      
       <code>
        emailChange
      </code>
    </td>
    
    <td>
      { <code>
        kind
      </code>
      
      : <code>
        "token bucket"
      </code>
      
      ; <code>
        rate
      </code>
      
      : <code>
        5
      </code>
      
      ; <code>
        period
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        capacity
      </code>
      
      : <code>
        5
      </code>
      
      ; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      Email changes — 5 per hour per account. The code an email change sends to the new address goes where the caller chose, so it is bounded per account and then by <code>
        emailOtpGlobal
      </code>
      
      , like every other code.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        emailChange.kind
      </code>
    </td>
    
    <td>
      <code>
        "token bucket"
      </code>
    </td>
    
    <td>
      <code>
        'token bucket'
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        emailChange.rate
      </code>
    </td>
    
    <td>
      <code>
        5
      </code>
    </td>
    
    <td>
      <code>
        5
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        emailChange.period
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      <code>
        HOUR
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        emailChange.capacity
      </code>
    </td>
    
    <td>
      <code>
        5
      </code>
    </td>
    
    <td>
      <code>
        5
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="property-billingsync">
        
      </a>
      
       <code>
        billingSync
      </code>
    </td>
    
    <td>
      { <code>
        kind
      </code>
      
      : <code>
        "token bucket"
      </code>
      
      ; <code>
        rate
      </code>
      
      : <code>
        10
      </code>
      
      ; <code>
        period
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        capacity
      </code>
      
      : <code>
        5
      </code>
      
      ; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      Entitlement syncs — 10 per minute per billing entity, small burst for the back-to-back syncs after checkout / top-up. Guards the live provider fan-out <code>
        syncEntitlements
      </code>
      
       performs (see <code>
        setupBilling
      </code>
      
      's <code>
        rateLimiter
      </code>
      
      ).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        billingSync.kind
      </code>
    </td>
    
    <td>
      <code>
        "token bucket"
      </code>
    </td>
    
    <td>
      <code>
        'token bucket'
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        billingSync.rate
      </code>
    </td>
    
    <td>
      <code>
        10
      </code>
    </td>
    
    <td>
      <code>
        10
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        billingSync.period
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      <code>
        MINUTE
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        billingSync.capacity
      </code>
    </td>
    
    <td>
      <code>
        5
      </code>
    </td>
    
    <td>
      <code>
        5
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="property-ai">
        
      </a>
      
       <code>
        ai
      </code>
    </td>
    
    <td>
      { <code>
        kind
      </code>
      
      : <code>
        "token bucket"
      </code>
      
      ; <code>
        rate
      </code>
      
      : <code>
        30
      </code>
      
      ; <code>
        period
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        capacity
      </code>
      
      : <code>
        10
      </code>
      
      ; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      Metered AI calls (<code>
        setupAi
      </code>
      
      's default limit) — 30 per minute per billing entity with a burst of 10. Reference by name (<code>
        limit: 'ai'
      </code>
      
      ) or declare your own per-feature limits and name them in <code>
        meteredAction
      </code>
      
      .
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        ai.kind
      </code>
    </td>
    
    <td>
      <code>
        "token bucket"
      </code>
    </td>
    
    <td>
      <code>
        'token bucket'
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        ai.rate
      </code>
    </td>
    
    <td>
      <code>
        30
      </code>
    </td>
    
    <td>
      <code>
        30
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        ai.period
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      <code>
        MINUTE
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        ai.capacity
      </code>
    </td>
    
    <td>
      <code>
        10
      </code>
    </td>
    
    <td>
      <code>
        10
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="property-aibudget">
        
      </a>
      
       <code>
        aiBudget
      </code>
    </td>
    
    <td>
      { <code>
        kind
      </code>
      
      : <code>
        "fixed window"
      </code>
      
      ; <code>
        rate
      </code>
      
      : <code>
        10000
      </code>
      
      ; <code>
        period
      </code>
      
      : <code>
        number
      </code>
      
      ; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      Per-entity credit budget for metered AI (<code>
        setupAi({ budget })
      </code>
      
      ) — a fixed window counting <strong>
        credits
      </strong>
      
      , not calls: each spend consumes its cost in tokens, so the window is "credits per period per billing entity". A fixed window (not a bucket) because a budget is a period allowance that resets, not a smoothed rate. The default is a generous ceiling — <code>
        setupAi({ budget: { units, period } })
      </code>
      
       passes the app's own numbers inline and overrides it. It exists so the name resolves even when a caller names the limit without configuring one.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        aiBudget.kind
      </code>
    </td>
    
    <td>
      <code>
        "fixed window"
      </code>
    </td>
    
    <td>
      <code>
        'fixed window'
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        aiBudget.rate
      </code>
    </td>
    
    <td>
      <code>
        10000
      </code>
    </td>
    
    <td>
      <code>
        10_000
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        aiBudget.period
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      <code>
        DAY
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="property-aiglobal">
        
      </a>
      
       <code>
        aiGlobal
      </code>
    </td>
    
    <td>
      { <code>
        kind
      </code>
      
      : <code>
        "fixed window"
      </code>
      
      ; <code>
        rate
      </code>
      
      : <code>
        300
      </code>
      
      ; <code>
        period
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        applyUpdates
      </code>
      
      : <code>
        "asynchronously"
      </code>
      
      ; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      What the app pays for itself, across the whole deployment — 300 per hour, a fixed window, unkeyed. Every job a signed-out visitor starts (<code>
        defineJobQueue({ guest })
      </code>
      
      ) spends one: no credits pay for those, so this window is what bounds the gateway bill a flood of visitors could run up. Over it, a guest job is refused with <code>
        rate_limited
      </code>
      
      . Raise it when a launch legitimately lets more visitors try than that.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        aiGlobal.kind
      </code>
    </td>
    
    <td>
      <code>
        "fixed window"
      </code>
    </td>
    
    <td>
      <code>
        'fixed window'
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        aiGlobal.rate
      </code>
    </td>
    
    <td>
      <code>
        300
      </code>
    </td>
    
    <td>
      <code>
        300
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        aiGlobal.period
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      <code>
        HOUR
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        aiGlobal.applyUpdates
      </code>
    </td>
    
    <td>
      <code>
        "asynchronously"
      </code>
    </td>
    
    <td>
      <code>
        'asynchronously'
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="property-admin">
        
      </a>
      
       <code>
        admin
      </code>
    </td>
    
    <td>
      { <code>
        kind
      </code>
      
      : <code>
        "token bucket"
      </code>
      
      ; <code>
        rate
      </code>
      
      : <code>
        30
      </code>
      
      ; <code>
        period
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        capacity
      </code>
      
      : <code>
        10
      </code>
      
      ; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      Administrator actions — 30 per minute per administrator, burst 10. Covers every <code>
        /admin/*
      </code>
      
       route that acts on somebody else (list, create, update, ban/unban, set role, impersonate, revoke sessions, remove user): each is one privileged call against another person's account, so the ceiling is "a human working fast", not a script. <code>
        /admin/stop-impersonating
      </code>
      
       and <code>
        /admin/has-permission
      </code>
      
       are deliberately exempt — the first is how an administrator leaves an impersonated session and must never be throttled, the second is a read-only check the console calls on render.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        admin.kind
      </code>
    </td>
    
    <td>
      <code>
        "token bucket"
      </code>
    </td>
    
    <td>
      <code>
        'token bucket'
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        admin.rate
      </code>
    </td>
    
    <td>
      <code>
        30
      </code>
    </td>
    
    <td>
      <code>
        30
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        admin.period
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      <code>
        MINUTE
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        admin.capacity
      </code>
    </td>
    
    <td>
      <code>
        10
      </code>
    </td>
    
    <td>
      <code>
        10
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="property-invitation">
        
      </a>
      
       <code>
        invitation
      </code>
    </td>
    
    <td>
      { <code>
        kind
      </code>
      
      : <code>
        "token bucket"
      </code>
      
      ; <code>
        rate
      </code>
      
      : <code>
        30
      </code>
      
      ; <code>
        period
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        capacity
      </code>
      
      : <code>
        10
      </code>
      
      ; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      Workspace invitations — 30 per hour per inviter, burst 10. An hour window (not a minute) because what matters is the volume one account can send, not its per-second rate. Per <strong>
        inviter
      </strong>
      
      : it bounds one account, not a workspace and not the deployment — <a href="#property-invitationglobal">
        DEFAULT_LIMITS.invitationGlobal
      </a>
      
       is the ceiling that does.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        invitation.kind
      </code>
    </td>
    
    <td>
      <code>
        "token bucket"
      </code>
    </td>
    
    <td>
      <code>
        'token bucket'
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        invitation.rate
      </code>
    </td>
    
    <td>
      <code>
        30
      </code>
    </td>
    
    <td>
      <code>
        30
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        invitation.period
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      <code>
        HOUR
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        invitation.capacity
      </code>
    </td>
    
    <td>
      <code>
        10
      </code>
    </td>
    
    <td>
      <code>
        10
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="property-invitationglobal">
        
      </a>
      
       <code>
        invitationGlobal
      </code>
    </td>
    
    <td>
      { <code>
        kind
      </code>
      
      : <code>
        "fixed window"
      </code>
      
      ; <code>
        rate
      </code>
      
      : <code>
        200
      </code>
      
      ; <code>
        period
      </code>
      
      : <code>
        number
      </code>
      
      ; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      Invitations across the whole deployment — 200 per hour, a fixed window. The backstop the per-inviter limit cannot be, and the counterpart of <code>
        emailOtpGlobal
      </code>
      
       on the package's other outbound-email path: a workspace with many members, or many accounts acting together, would otherwise put 30 invitation emails per member per hour on your sending domain. Only requests that already cleared <code>
        invitation
      </code>
      
       consume this, so one account's refused excess never eats the shared ceiling. Raise it when a launch legitimately invites more than that.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        invitationGlobal.kind
      </code>
    </td>
    
    <td>
      <code>
        "fixed window"
      </code>
    </td>
    
    <td>
      <code>
        'fixed window'
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        invitationGlobal.rate
      </code>
    </td>
    
    <td>
      <code>
        200
      </code>
    </td>
    
    <td>
      <code>
        200
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        invitationGlobal.period
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      <code>
        HOUR
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="property-workspacecreate">
        
      </a>
      
       <code>
        workspaceCreate
      </code>
    </td>
    
    <td>
      { <code>
        kind
      </code>
      
      : <code>
        "token bucket"
      </code>
      
      ; <code>
        rate
      </code>
      
      : <code>
        10
      </code>
      
      ; <code>
        period
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        capacity
      </code>
      
      : <code>
        5
      </code>
      
      ; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      Workspaces made — 10 per hour per member, burst 5. Every new workspace is a billing entity: with a free plan in the catalog it becomes a provider customer and gets the plan's credits, so one account must not mint them in a loop. Per <strong>
        member
      </strong>
      
      , like <code>
        invitation
      </code>
      
      ; the sign-in limits bound how many accounts one person holds.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        workspaceCreate.kind
      </code>
    </td>
    
    <td>
      <code>
        "token bucket"
      </code>
    </td>
    
    <td>
      <code>
        'token bucket'
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        workspaceCreate.rate
      </code>
    </td>
    
    <td>
      <code>
        10
      </code>
    </td>
    
    <td>
      <code>
        10
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        workspaceCreate.period
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      <code>
        HOUR
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        workspaceCreate.capacity
      </code>
    </td>
    
    <td>
      <code>
        5
      </code>
    </td>
    
    <td>
      <code>
        5
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="property-accountdelete">
        
      </a>
      
       <code>
        accountDelete
      </code>
    </td>
    
    <td>
      { <code>
        kind
      </code>
      
      : <code>
        "token bucket"
      </code>
      
      ; <code>
        rate
      </code>
      
      : <code>
        3
      </code>
      
      ; <code>
        period
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        capacity
      </code>
      
      : <code>
        3
      </code>
      
      ; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      An account's own deletion — 3 per hour per account, burst 3. Deleting is final and starts an erasure across every participant, the providers included: a person deletes once, so the bucket only stops a script that keeps asking with a session it holds.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        accountDelete.kind
      </code>
    </td>
    
    <td>
      <code>
        "token bucket"
      </code>
    </td>
    
    <td>
      <code>
        'token bucket'
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        accountDelete.rate
      </code>
    </td>
    
    <td>
      <code>
        3
      </code>
    </td>
    
    <td>
      <code>
        3
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        accountDelete.period
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      <code>
        HOUR
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        accountDelete.capacity
      </code>
    </td>
    
    <td>
      <code>
        3
      </code>
    </td>
    
    <td>
      <code>
        3
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="property-passkeysignin">
        
      </a>
      
       <code>
        passkeySignIn
      </code>
    </td>
    
    <td>
      { <code>
        kind
      </code>
      
      : <code>
        "token bucket"
      </code>
      
      ; <code>
        rate
      </code>
      
      : <code>
        30
      </code>
      
      ; <code>
        period
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        capacity
      </code>
      
      : <code>
        30
      </code>
      
      ; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      Passkey sign-in challenges — 30 per minute per client address, burst 30. Every passkey sign-in starts with a challenge the server stores (<code>
        /passkey/generate-authenticate-options
      </code>
      
      , which needs no session): a tap on "Sign in with passkey", and each sign-in page that offers passkeys in the browser's autofill, again every four and a half minutes while it stays open in view, a challenge lasting five. Keyed by an HMAC, under the auth secret, of the client's address: the one the app's server signed under <code>
        PROTECTION_PROOF_SECRET
      </code>
      
       for a request through its auth proxy (clientAddressPlugin), else the one Convex wrote into <code>
        x-forwarded-for
      </code>
      
      , the address that connected. Without the secret every visitor through the app's server shares that server's address, so <a href="#property-passkeysigninglobal">
        DEFAULT_LIMITS.passkeySignInGlobal
      </a>
      
       is the ceiling behind it.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        passkeySignIn.kind
      </code>
    </td>
    
    <td>
      <code>
        "token bucket"
      </code>
    </td>
    
    <td>
      <code>
        'token bucket'
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        passkeySignIn.rate
      </code>
    </td>
    
    <td>
      <code>
        30
      </code>
    </td>
    
    <td>
      <code>
        30
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        passkeySignIn.period
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      <code>
        MINUTE
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        passkeySignIn.capacity
      </code>
    </td>
    
    <td>
      <code>
        30
      </code>
    </td>
    
    <td>
      <code>
        30
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="property-passkeysigninglobal">
        
      </a>
      
       <code>
        passkeySignInGlobal
      </code>
    </td>
    
    <td>
      { <code>
        kind
      </code>
      
      : <code>
        "fixed window"
      </code>
      
      ; <code>
        rate
      </code>
      
      : <code>
        3000
      </code>
      
      ; <code>
        period
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        applyUpdates
      </code>
      
      : <code>
        "asynchronously"
      </code>
      
      ; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      Passkey sign-in challenges across the whole deployment — 3000 per hour, a fixed window, spent after <a href="#property-passkeysignin">
        DEFAULT_LIMITS.passkeySignIn
      </a>
      
       allowed the request. The ceiling a caller who rotates its address meets: it bounds how fast anyone can fill the verification table. At the ceiling, a passkey prompt answers 429 and autofill offers no passkey; email codes still sign people in. Raise it when more sign-in pages than that open in an hour (a page left open in view spends about thirteen).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        passkeySignInGlobal.kind
      </code>
    </td>
    
    <td>
      <code>
        "fixed window"
      </code>
    </td>
    
    <td>
      <code>
        'fixed window'
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        passkeySignInGlobal.rate
      </code>
    </td>
    
    <td>
      <code>
        3000
      </code>
    </td>
    
    <td>
      <code>
        3000
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        passkeySignInGlobal.period
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      <code>
        HOUR
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        passkeySignInGlobal.applyUpdates
      </code>
    </td>
    
    <td>
      <code>
        "asynchronously"
      </code>
    </td>
    
    <td>
      <code>
        'asynchronously'
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="property-signupotpglobal">
        
      </a>
      
       <code>
        signUpOtpGlobal
      </code>
    </td>
    
    <td>
      { <code>
        kind
      </code>
      
      : <code>
        "fixed window"
      </code>
      
      ; <code>
        rate
      </code>
      
      : <code>
        200
      </code>
      
      ; <code>
        period
      </code>
      
      : <code>
        number
      </code>
      
      ; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      Sign-in codes to addresses with no account yet — 200 per hour across the deployment, a fixed window. Spent in place of <code>
        emailOtpGlobal
      </code>
      
       by a code that would create an account while <code>
        setupAccess
      </code>
      
       is wired, so a rush of joins on a launch day never holds up existing people's codes. Raise it for a launch that signs up more than that in an hour.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        signUpOtpGlobal.kind
      </code>
    </td>
    
    <td>
      <code>
        "fixed window"
      </code>
    </td>
    
    <td>
      <code>
        'fixed window'
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        signUpOtpGlobal.rate
      </code>
    </td>
    
    <td>
      <code>
        200
      </code>
    </td>
    
    <td>
      <code>
        200
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        signUpOtpGlobal.period
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      <code>
        HOUR
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="property-invitecheck">
        
      </a>
      
       <code>
        inviteCheck
      </code>
    </td>
    
    <td>
      { <code>
        kind
      </code>
      
      : <code>
        "token bucket"
      </code>
      
      ; <code>
        rate
      </code>
      
      : <code>
        10
      </code>
      
      ; <code>
        period
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        capacity
      </code>
      
      : <code>
        10
      </code>
      
      ; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      Invite checks (<code>
        checkInvite
      </code>
      
      , behind <code>
        useInvite().check
      </code>
      
       and the <code>
        /invite
      </code>
      
       page) — 10 per minute per signed-in caller, burst 10. A code has 50 bits, so guessing one is out of reach anyway; the limit keeps a script from turning the check into a lookup.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        inviteCheck.kind
      </code>
    </td>
    
    <td>
      <code>
        "token bucket"
      </code>
    </td>
    
    <td>
      <code>
        'token bucket'
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        inviteCheck.rate
      </code>
    </td>
    
    <td>
      <code>
        10
      </code>
    </td>
    
    <td>
      <code>
        10
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        inviteCheck.period
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      <code>
        MINUTE
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        inviteCheck.capacity
      </code>
    </td>
    
    <td>
      <code>
        10
      </code>
    </td>
    
    <td>
      <code>
        10
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="property-invitecheckglobal">
        
      </a>
      
       <code>
        inviteCheckGlobal
      </code>
    </td>
    
    <td>
      { <code>
        kind
      </code>
      
      : <code>
        "fixed window"
      </code>
      
      ; <code>
        rate
      </code>
      
      : <code>
        1000
      </code>
      
      ; <code>
        period
      </code>
      
      : <code>
        number
      </code>
      
      ; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      Invite checks across the deployment — 1000 per hour, a fixed window: the ceiling a caller without a session meets, and the backstop behind <a href="#property-invitecheck">
        DEFAULT_LIMITS.inviteCheck
      </a>
      
      .
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        inviteCheckGlobal.kind
      </code>
    </td>
    
    <td>
      <code>
        "fixed window"
      </code>
    </td>
    
    <td>
      <code>
        'fixed window'
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        inviteCheckGlobal.rate
      </code>
    </td>
    
    <td>
      <code>
        1000
      </code>
    </td>
    
    <td>
      <code>
        1000
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        inviteCheckGlobal.period
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      <code>
        HOUR
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="property-waitlistjoin">
        
      </a>
      
       <code>
        waitlistJoin
      </code>
    </td>
    
    <td>
      { <code>
        kind
      </code>
      
      : <code>
        "token bucket"
      </code>
      
      ; <code>
        rate
      </code>
      
      : <code>
        5
      </code>
      
      ; <code>
        period
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        capacity
      </code>
      
      : <code>
        3
      </code>
      
      ; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      Waitlist joins (<code>
        joinWaitlist
      </code>
      
      , behind <code>
        useWaitlist().join
      </code>
      
       and <code>
        <WaitlistForm>
      </code>
      
      ) — 5 per hour per address, burst 3, so a script cannot use the form to ask for one mailbox's codes in a loop.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        waitlistJoin.kind
      </code>
    </td>
    
    <td>
      <code>
        "token bucket"
      </code>
    </td>
    
    <td>
      <code>
        'token bucket'
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        waitlistJoin.rate
      </code>
    </td>
    
    <td>
      <code>
        5
      </code>
    </td>
    
    <td>
      <code>
        5
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        waitlistJoin.period
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      <code>
        HOUR
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        waitlistJoin.capacity
      </code>
    </td>
    
    <td>
      <code>
        3
      </code>
    </td>
    
    <td>
      <code>
        3
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="property-waitlistjoinglobal">
        
      </a>
      
       <code>
        waitlistJoinGlobal
      </code>
    </td>
    
    <td>
      { <code>
        kind
      </code>
      
      : <code>
        "fixed window"
      </code>
      
      ; <code>
        rate
      </code>
      
      : <code>
        1000
      </code>
      
      ; <code>
        period
      </code>
      
      : <code>
        number
      </code>
      
      ; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      Waitlist joins across the deployment — 1000 per hour, a fixed window: the ceiling on the form, behind <a href="#property-waitlistjoin">
        DEFAULT_LIMITS.waitlistJoin
      </a>
      
      . The codes a join asks for spend <code>
        signUpOtpGlobal
      </code>
      
       besides.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        waitlistJoinGlobal.kind
      </code>
    </td>
    
    <td>
      <code>
        "fixed window"
      </code>
    </td>
    
    <td>
      <code>
        'fixed window'
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        waitlistJoinGlobal.rate
      </code>
    </td>
    
    <td>
      <code>
        1000
      </code>
    </td>
    
    <td>
      <code>
        1000
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        waitlistJoinGlobal.period
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      <code>
        HOUR
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="property-contact">
        
      </a>
      
       <code>
        contact
      </code>
    </td>
    
    <td>
      { <code>
        kind
      </code>
      
      : <code>
        "token bucket"
      </code>
      
      ; <code>
        rate
      </code>
      
      : <code>
        5
      </code>
      
      ; <code>
        period
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        capacity
      </code>
      
      : <code>
        3
      </code>
      
      ; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      Contact and feedback messages (<code>
        submitContactMessage
      </code>
      
      , <code>
        <ContactForm>
      </code>
      
      ) — 5 per hour per sender, burst 3. The sender is the signed-in account, else a hash of the address typed, never the address itself, so one person cannot flood the team's inbox.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        contact.kind
      </code>
    </td>
    
    <td>
      <code>
        "token bucket"
      </code>
    </td>
    
    <td>
      <code>
        'token bucket'
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        contact.rate
      </code>
    </td>
    
    <td>
      <code>
        5
      </code>
    </td>
    
    <td>
      <code>
        5
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        contact.period
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      <code>
        HOUR
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        contact.capacity
      </code>
    </td>
    
    <td>
      <code>
        3
      </code>
    </td>
    
    <td>
      <code>
        3
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="property-contactglobal">
        
      </a>
      
       <code>
        contactGlobal
      </code>
    </td>
    
    <td>
      { <code>
        kind
      </code>
      
      : <code>
        "fixed window"
      </code>
      
      ; <code>
        rate
      </code>
      
      : <code>
        500
      </code>
      
      ; <code>
        period
      </code>
      
      : <code>
        number
      </code>
      
      ; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      Contact and feedback messages across the deployment — 500 per hour, a fixed window: the ceiling on the form, behind <a href="#property-contact">
        DEFAULT_LIMITS.contact
      </a>
      
      .
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        contactGlobal.kind
      </code>
    </td>
    
    <td>
      <code>
        "fixed window"
      </code>
    </td>
    
    <td>
      <code>
        'fixed window'
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        contactGlobal.rate
      </code>
    </td>
    
    <td>
      <code>
        500
      </code>
    </td>
    
    <td>
      <code>
        500
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        contactGlobal.period
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      <code>
        HOUR
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="property-inboundmail">
        
      </a>
      
       <code>
        inboundMail
      </code>
    </td>
    
    <td>
      { <code>
        kind
      </code>
      
      : <code>
        "token bucket"
      </code>
      
      ; <code>
        rate
      </code>
      
      : <code>
        30
      </code>
      
      ; <code>
        period
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        capacity
      </code>
      
      : <code>
        10
      </code>
      
      ; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      Inbound mail (<code>
        setupEmail({ inbound })
      </code>
      
      ) — 30 per hour per sender, burst 10, keyed by a hash of the sender's address. Mail past it is dropped and logged (<code>
        email.inbound_rejected
      </code>
      
      , reason <code>
        rate_limited
      </code>
      
      ), never answered.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        inboundMail.kind
      </code>
    </td>
    
    <td>
      <code>
        "token bucket"
      </code>
    </td>
    
    <td>
      <code>
        'token bucket'
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        inboundMail.rate
      </code>
    </td>
    
    <td>
      <code>
        30
      </code>
    </td>
    
    <td>
      <code>
        30
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        inboundMail.period
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      <code>
        HOUR
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        inboundMail.capacity
      </code>
    </td>
    
    <td>
      <code>
        10
      </code>
    </td>
    
    <td>
      <code>
        10
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="property-inboundmailglobal">
        
      </a>
      
       <code>
        inboundMailGlobal
      </code>
    </td>
    
    <td>
      { <code>
        kind
      </code>
      
      : <code>
        "fixed window"
      </code>
      
      ; <code>
        rate
      </code>
      
      : <code>
        3000
      </code>
      
      ; <code>
        period
      </code>
      
      : <code>
        number
      </code>
      
      ; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      Inbound mail across the deployment — 3000 per hour, a fixed window, behind <a href="#property-inboundmail">
        DEFAULT_LIMITS.inboundMail
      </a>
      
      .
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        inboundMailGlobal.kind
      </code>
    </td>
    
    <td>
      <code>
        "fixed window"
      </code>
    </td>
    
    <td>
      <code>
        'fixed window'
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        inboundMailGlobal.rate
      </code>
    </td>
    
    <td>
      <code>
        3000
      </code>
    </td>
    
    <td>
      <code>
        3000
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        inboundMailGlobal.period
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      <code>
        HOUR
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="property-report">
        
      </a>
      
       <code>
        report
      </code>
    </td>
    
    <td>
      { <code>
        kind
      </code>
      
      : <code>
        "fixed window"
      </code>
      
      ; <code>
        rate
      </code>
      
      : <code>
        10
      </code>
      
      ; <code>
        period
      </code>
      
      : <code>
        number
      </code>
      
      ; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      Content reports (<code>
        reportContent
      </code>
      
      , and each mailbox that sends notices through the <code>
        report
      </code>
      
       page, <code>
        me+1@
      </code>
      
       counted as <code>
        me@
      </code>
      
      ) — 10 per hour per person, so nobody floods the Reports tab.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        report.kind
      </code>
    </td>
    
    <td>
      <code>
        "fixed window"
      </code>
    </td>
    
    <td>
      <code>
        'fixed window'
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        report.rate
      </code>
    </td>
    
    <td>
      <code>
        10
      </code>
    </td>
    
    <td>
      <code>
        10
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        report.period
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      <code>
        HOUR
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="property-reportglobal">
        
      </a>
      
       <code>
        reportGlobal
      </code>
    </td>
    
    <td>
      { <code>
        kind
      </code>
      
      : <code>
        "fixed window"
      </code>
      
      ; <code>
        rate
      </code>
      
      : <code>
        500
      </code>
      
      ; <code>
        period
      </code>
      
      : <code>
        number
      </code>
      
      ; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      Notices through the public <code>
        report
      </code>
      
       page across the deployment — 500 per hour: the ceiling behind <a href="#property-report">
        DEFAULT_LIMITS.report
      </a>
      
      , and with the bot check the only limit on a notice without an address, so no shared bucket can shut the anonymous channel for child sexual abuse material.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        reportGlobal.kind
      </code>
    </td>
    
    <td>
      <code>
        "fixed window"
      </code>
    </td>
    
    <td>
      <code>
        'fixed window'
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        reportGlobal.rate
      </code>
    </td>
    
    <td>
      <code>
        500
      </code>
    </td>
    
    <td>
      <code>
        500
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        reportGlobal.period
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      <code>
        HOUR
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="property-write">
        
      </a>
      
       <code>
        write
      </code>
    </td>
    
    <td>
      { <code>
        kind
      </code>
      
      : <code>
        "token bucket"
      </code>
      
      ; <code>
        rate
      </code>
      
      : <code>
        120
      </code>
      
      ; <code>
        period
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        capacity
      </code>
      
      : <code>
        60
      </code>
      
      ; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      Writes of your own signed-in functions — 120 per minute per account, burst 60. The scaffold's <code>
        createFunctions(…, { limits: { authed: 'write', workspace: 'write' } })
      </code>
      
       spends one on every <code>
        authed
      </code>
      
      , <code>
        withRole
      </code>
      
      , <code>
        workspace
      </code>
      
       and <code>
        withFeature
      </code>
      
       mutation and action, keyed by the account, so one session cannot write in a loop. Override it here, or name another limit per tier.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        write.kind
      </code>
    </td>
    
    <td>
      <code>
        "token bucket"
      </code>
    </td>
    
    <td>
      <code>
        'token bucket'
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        write.rate
      </code>
    </td>
    
    <td>
      <code>
        120
      </code>
    </td>
    
    <td>
      <code>
        120
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        write.period
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      <code>
        MINUTE
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        write.capacity
      </code>
    </td>
    
    <td>
      <code>
        60
      </code>
    </td>
    
    <td>
      <code>
        60
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="property-upload">
        
      </a>
      
       <code>
        upload
      </code>
    </td>
    
    <td>
      { <code>
        kind
      </code>
      
      : <code>
        "token bucket"
      </code>
      
      ; <code>
        rate
      </code>
      
      : <code>
        100
      </code>
      
      ; <code>
        period
      </code>
      
      : <code>
        number
      </code>
      
      ; <code>
        capacity
      </code>
      
      : <code>
        20
      </code>
      
      ; }
    </td>
    
    <td>
      -
    </td>
    
    <td>
      Upload URLs — 100 per hour per account, burst 20. An upload URL takes a file of any size and the size is checked only once it has arrived, so this rate is what bounds the bytes one account can push into storage before <code>
        storage.claim
      </code>
      
       refuses them (<code>
        setupStorage
      </code>
      
      's <code>
        generateUploadUrl
      </code>
      
      ). The burst lets one batch of <code>
        useUploadQueue
      </code>
      
       through.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        upload.kind
      </code>
    </td>
    
    <td>
      <code>
        "token bucket"
      </code>
    </td>
    
    <td>
      <code>
        'token bucket'
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        upload.rate
      </code>
    </td>
    
    <td>
      <code>
        100
      </code>
    </td>
    
    <td>
      <code>
        100
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        upload.period
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      <code>
        HOUR
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        upload.capacity
      </code>
    </td>
    
    <td>
      <code>
        20
      </code>
    </td>
    
    <td>
      <code>
        20
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts" rel="nofollow">
        src/convex/integrations/rate-limit.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

## Functions

### setupRateLimiter()

```ts
function setupRateLimiter<Limits>(components, limits?): RateLimiter<{
  emailOtp: {
     kind: "token bucket";
     rate: 5;
     period: number;
     capacity: 5;
  };
  emailOtpGlobal: {
     kind: "fixed window";
     rate: 300;
     period: number;
     applyUpdates: "asynchronously";
  };
  emailOtpAttempt: {
     kind: "token bucket";
     rate: 10;
     period: number;
     capacity: 10;
  };
  emailChange: {
     kind: "token bucket";
     rate: 5;
     period: number;
     capacity: 5;
  };
  billingSync: {
     kind: "token bucket";
     rate: 10;
     period: number;
     capacity: 5;
  };
  ai: {
     kind: "token bucket";
     rate: 30;
     period: number;
     capacity: 10;
  };
  aiBudget: {
     kind: "fixed window";
     rate: 10000;
     period: number;
  };
  aiGlobal: {
     kind: "fixed window";
     rate: 300;
     period: number;
     applyUpdates: "asynchronously";
  };
  admin: {
     kind: "token bucket";
     rate: 30;
     period: number;
     capacity: 10;
  };
  invitation: {
     kind: "token bucket";
     rate: 30;
     period: number;
     capacity: 10;
  };
  invitationGlobal: {
     kind: "fixed window";
     rate: 200;
     period: number;
  };
  workspaceCreate: {
     kind: "token bucket";
     rate: 10;
     period: number;
     capacity: 5;
  };
  accountDelete: {
     kind: "token bucket";
     rate: 3;
     period: number;
     capacity: 3;
  };
  passkeySignIn: {
     kind: "token bucket";
     rate: 30;
     period: number;
     capacity: 30;
  };
  passkeySignInGlobal: {
     kind: "fixed window";
     rate: 3000;
     period: number;
     applyUpdates: "asynchronously";
  };
  signUpOtpGlobal: {
     kind: "fixed window";
     rate: 200;
     period: number;
  };
  inviteCheck: {
     kind: "token bucket";
     rate: 10;
     period: number;
     capacity: 10;
  };
  inviteCheckGlobal: {
     kind: "fixed window";
     rate: 1000;
     period: number;
  };
  waitlistJoin: {
     kind: "token bucket";
     rate: 5;
     period: number;
     capacity: 3;
  };
  waitlistJoinGlobal: {
     kind: "fixed window";
     rate: 1000;
     period: number;
  };
  contact: {
     kind: "token bucket";
     rate: 5;
     period: number;
     capacity: 3;
  };
  contactGlobal: {
     kind: "fixed window";
     rate: 500;
     period: number;
  };
  inboundMail: {
     kind: "token bucket";
     rate: 30;
     period: number;
     capacity: 10;
  };
  inboundMailGlobal: {
     kind: "fixed window";
     rate: 3000;
     period: number;
  };
  report: {
     kind: "fixed window";
     rate: 10;
     period: number;
  };
  reportGlobal: {
     kind: "fixed window";
     rate: 500;
     period: number;
  };
  write: {
     kind: "token bucket";
     rate: 120;
     period: number;
     capacity: 60;
  };
  upload: {
     kind: "token bucket";
     rate: 100;
     period: number;
     capacity: 20;
  };
} & Limits>;
```

Defined in: [src/convex/integrations/rate-limit.ts](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/rate-limit.ts)

Configure the [Rate Limiter](https://www.convex.dev/components/rate-limiter) component, pre-seeded with [DEFAULT_LIMITS](#default_limits). Pass extra
named limits to cover your own application functions; they are merged with
(and can override) the package defaults.

#### Type Parameters

<table>
<thead>
  <tr>
    <th>
      Type Parameter
    </th>
    
    <th>
      Default type
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="type-parameter-limits">
        
      </a>
      
       <code>
        Limits
      </code>
      
       <em>
        extends
      </em>
      
       <code>
        Record
      </code>
      
      <<code>
        string
      </code>
      
      , <a href="#ratelimitconfig">
        <code>
          RateLimitConfig
        </code>
      </a>
      
      >
    </td>
    
    <td>
      <code>
        Record
      </code>
      
      <<code>
        never
      </code>
      
      , <code>
        never
      </code>
      
      >
    </td>
  </tr>
</tbody>
</table>

#### Parameters

<table>
<thead>
  <tr>
    <th>
      Parameter
    </th>
    
    <th>
      Type
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        components
      </code>
    </td>
    
    <td>
      <a href="#ratelimitercomponents">
        <code>
          RateLimiterComponents
        </code>
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        limits?
      </code>
    </td>
    
    <td>
      <code>
        Limits
      </code>
    </td>
  </tr>
</tbody>
</table>

#### Returns

`RateLimiter`<{
`emailOtp`: {
`kind`: `"token bucket"`;
`rate`: `5`;
`period`: `number`;
`capacity`: `5`;
};
`emailOtpGlobal`: {
`kind`: `"fixed window"`;
`rate`: `300`;
`period`: `number`;
`applyUpdates`: `"asynchronously"`;
};
`emailOtpAttempt`: {
`kind`: `"token bucket"`;
`rate`: `10`;
`period`: `number`;
`capacity`: `10`;
};
`emailChange`: {
`kind`: `"token bucket"`;
`rate`: `5`;
`period`: `number`;
`capacity`: `5`;
};
`billingSync`: {
`kind`: `"token bucket"`;
`rate`: `10`;
`period`: `number`;
`capacity`: `5`;
};
`ai`: {
`kind`: `"token bucket"`;
`rate`: `30`;
`period`: `number`;
`capacity`: `10`;
};
`aiBudget`: {
`kind`: `"fixed window"`;
`rate`: `10000`;
`period`: `number`;
};
`aiGlobal`: {
`kind`: `"fixed window"`;
`rate`: `300`;
`period`: `number`;
`applyUpdates`: `"asynchronously"`;
};
`admin`: {
`kind`: `"token bucket"`;
`rate`: `30`;
`period`: `number`;
`capacity`: `10`;
};
`invitation`: {
`kind`: `"token bucket"`;
`rate`: `30`;
`period`: `number`;
`capacity`: `10`;
};
`invitationGlobal`: {
`kind`: `"fixed window"`;
`rate`: `200`;
`period`: `number`;
};
`workspaceCreate`: {
`kind`: `"token bucket"`;
`rate`: `10`;
`period`: `number`;
`capacity`: `5`;
};
`accountDelete`: {
`kind`: `"token bucket"`;
`rate`: `3`;
`period`: `number`;
`capacity`: `3`;
};
`passkeySignIn`: {
`kind`: `"token bucket"`;
`rate`: `30`;
`period`: `number`;
`capacity`: `30`;
};
`passkeySignInGlobal`: {
`kind`: `"fixed window"`;
`rate`: `3000`;
`period`: `number`;
`applyUpdates`: `"asynchronously"`;
};
`signUpOtpGlobal`: {
`kind`: `"fixed window"`;
`rate`: `200`;
`period`: `number`;
};
`inviteCheck`: {
`kind`: `"token bucket"`;
`rate`: `10`;
`period`: `number`;
`capacity`: `10`;
};
`inviteCheckGlobal`: {
`kind`: `"fixed window"`;
`rate`: `1000`;
`period`: `number`;
};
`waitlistJoin`: {
`kind`: `"token bucket"`;
`rate`: `5`;
`period`: `number`;
`capacity`: `3`;
};
`waitlistJoinGlobal`: {
`kind`: `"fixed window"`;
`rate`: `1000`;
`period`: `number`;
};
`contact`: {
`kind`: `"token bucket"`;
`rate`: `5`;
`period`: `number`;
`capacity`: `3`;
};
`contactGlobal`: {
`kind`: `"fixed window"`;
`rate`: `500`;
`period`: `number`;
};
`inboundMail`: {
`kind`: `"token bucket"`;
`rate`: `30`;
`period`: `number`;
`capacity`: `10`;
};
`inboundMailGlobal`: {
`kind`: `"fixed window"`;
`rate`: `3000`;
`period`: `number`;
};
`report`: {
`kind`: `"fixed window"`;
`rate`: `10`;
`period`: `number`;
};
`reportGlobal`: {
`kind`: `"fixed window"`;
`rate`: `500`;
`period`: `number`;
};
`write`: {
`kind`: `"token bucket"`;
`rate`: `120`;
`period`: `number`;
`capacity`: `60`;
};
`upload`: {
`kind`: `"token bucket"`;
`rate`: `100`;
`period`: `number`;
`capacity`: `20`;
};
} & `Limits`>

#### Example

```ts
import { setupRateLimiter } from 'nuxt-backend/rate-limit'
import { components } from './_generated/api'
import { MINUTE } from '@convex-dev/rate-limiter'

export const rateLimiter = setupRateLimiter(components, {
  sendMessage: { kind: 'token bucket', rate: 30, period: MINUTE, capacity: 5 },
})
```


## Sitemap

See the full [sitemap](https://nuxt-backend.dev/sitemap.md) for all pages.
