Documentation
    Preparing search index...

    Variable DEFAULT_UNFOCUSED_MULTIPLIERConst

    DEFAULT_UNFOCUSED_MULTIPLIER: 0.25

    Fractional capacity multiplier applied to unfocused napplets: 0.25.

    Scales the effective token-bucket capacity for napplets that are not the currently focused window. Chosen at 1/4 so background napplets can still make legitimate low-rate requests while a sustained high-rate attack from a background napplet is throttled quickly.

    MUST remain strictly greater than 0 — focus alone must NEVER hard-block a napplet (FOCUS-02 invariant). A value of 0 would be equivalent to an unconditional deny for all unfocused napplets.

    const effectiveCapacity = limit.capacity * (obs.focused ? 1 : DEFAULT_UNFOCUSED_MULTIPLIER);