new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Better Auth · Reference · all subjects

options/ratelimit

2 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

rateLimit option fields

The rateLimit option has the following fields: enabled (enable rate limiting; defaults: true in production, false in development), window (time window for rate limiting in seconds; default: 10), max (default maximum number of requests allowed within window; default: 100), customRules (object with path keys and objects with window and max values for custom rate limit rules), storage (storage configuration: 'memory', 'database', or 'secondary-storage'; if secondary storage passed, rate limiting stored there; default: 'memory'), modelName (name of table for rate limiting if database used as storage; default: 'rateLimit').

rateLimit example code

import { betterAuth } from "better-auth"; export const auth = betterAuth({ rateLimit: { enabled: true, window: 10, max: 100, customRules: { "/example/path": { window: 10, max: 100 } }, storage: "memory", modelName: "rateLimit" } })

Give your agent this brain