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
Section titled “Import”import { localFixedWindowRateLimitBundle } from "@graphrefly/ts/rate-limit";Signature
Section titled “Signature”function localFixedWindowRateLimitBundle( graph: Graph, source: Node<T>, opts: LocalFixedWindowRateLimitOptions,): LocalFixedWindowRateLimitBundle<T>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
graph | Graph | Graph that owns the created nodes or projector. |
source | Node<T> | Source node that provides graph-visible input. |
opts | LocalFixedWindowRateLimitOptions | Options that configure the helper. |
Returns
Section titled “Returns”A bundle of graph-visible nodes for the recipe.
Example
Section titled “Example”import { localFixedWindowRateLimitBundle } from "@graphrefly/ts/rate-limit";Source
Section titled “Source”packages/ts/src/rate-limit/local-fixed-window.ts