Build on the supported package contract
Use absolutejs-rate-limit-example through its supported public entry points.
absolutejs-rate-limit-examplev0.0.1betaDev ToolsSingle-package example for @absolutejs/rate-limit. Boots an Elysia app with three rate-limiting setups:
# Private workspace project: ~/abs/examples/rate-limitSingle-package example for @absolutejs/rate-limit. Boots an Elysia app with three rate-limiting setups:
Global per-IP gate — GCRA, 10 requests/second sustained with burst 5.
Per-route cost — /api/upload charges 5× what /api/info charges.
Stacked per-user gate — combined runs a per-user token bucket on
top of a shared global one.
The React page surfaces the IETF RateLimit- headers in a decision log so you can watch the bucket drain and the breaker trip in real time.
Then http://localhost:3000/.
Playwright drives the page through a burst that's guaranteed to throttle, and confirms the IETF headers + Retry-After are emitted correctly.
Outcomes
Use absolutejs-rate-limit-example through its supported public entry points.
Hardening checklist
Follow in order
Working example for Run.
bun install
bun run dev # absolute dev — hot reload
# or
bun run start # absolute start — production serverWorking example for Test.
PORT=3000 bun run testScripts declared by this package manifest.