Adapters
Overview
What adapters are and how to choose them.
Adapters decide where data is stored or sent. Swap in your infra without changing feature logic.
- Key store: persist key records (
create/find/update/revoke
) - Rate limit store: evaluate request quotas (fixed window, token bucket)
- Analytics: emit audit events
Use the sidebar to expand the Adapters section and see specific implementations.
Built-in adapters:
- Key store: Memory, SQLite, Redis, Postgres, HTTP, Cloudflare D1
- Rate limit store: Memory, SQLite, Redis, Postgres, Cloudflare KV
- Analytics: Console, ClickHouse
See also: Authoring Adapters
Analytics adapters:
- Console: logs analytics events to stdout
- ClickHouse: batches events to a ClickHouse table