IFClite TypeScript API
    Preparing search index...

    Interface RateLimitOptions

    Per-peer write budget — open problem #10.

    AI agents (and over-eager scripts) can outwrite humans 100× in a sustained session. The server gates per-connection writes with a token bucket so a single agent peer can't starve real-time human edits.

    Default thresholds are generous; production deployments should tune them per role (humans get higher, service accounts lower).

    interface RateLimitOptions {
        capacity?: number;
        refillPerSecond?: number;
    }
    Index
    capacity?: number

    Capacity of the token bucket — burst size. Default 200.

    refillPerSecond?: number

    Refill rate in tokens per second. Default 60.