@opendj/abuse
v0.1.2
Published
Abuse signals, risk scoring, rate-limit contracts, and analytics primitives for OpenDJ.
Readme
@opendj/abuse
Abuse prevention primitives for OpenDJ. Hosts should be able to leave a session running with minimal moderation overhead.
Contents (planned — see docs/agent-brief.md §"Abuse prevention and backend analytics"):
- Action signal capture types (
action_eventsrow shape, privacy-minimized) AbuseDecisiondiscriminated union (allow/throttle/shadow_limit/require_host_review/block)- Rolling-window rate-limit contracts
- Risk scoring helpers
- Host-control surface (auto-pilot mode, cooldowns, duplicate-block, manual block/unblock)
Concrete enforcement happens inside the realtime room (NodeSessionRoom / SessionRoom); this package only provides the runtime-neutral types and pure functions.
