Skip to content
PACKAGES

localFixedWindowRateLimitBundle()

Creates a graph-local in-memory fixed-window rate limit bundle.

This helper is a local stream-shaping state machine. It is not keyed, durable, atomic across processes, or an application security/enforcement authority. Use the D648 keyed external authority surface when a protected operation depends on host-owned durable quota authority and receipts; governed protected effects must not use this helper’s allowed projection as an authority-adapter bypass.

import { localFixedWindowRateLimitBundle } from "@graphrefly/ts/rate-limit";
function localFixedWindowRateLimitBundle(
graph: Graph,
source: Node<T>,
opts: LocalFixedWindowRateLimitOptions,
): LocalFixedWindowRateLimitBundle<T>
ParameterTypeDescription
graphGraphGraph that owns the created nodes or projector.
sourceNode<T>Source node that provides graph-visible input.
optsLocalFixedWindowRateLimitOptionsOptions that configure the helper.

A bundle of graph-visible nodes for the recipe.

import { localFixedWindowRateLimitBundle } from "@graphrefly/ts/rate-limit";

packages/ts/src/rate-limit/local-fixed-window.ts