{"library":"better-auth-audit-logs","type":"library","category":null,"description":"This package, `better-auth-audit-logs`, provides a plug-in for the `better-auth` authentication library, designed to automatically capture and store authentication lifecycle events. It is currently at version 0.3.0 and appears to have a fairly active release cadence, with several minor versions released recently. Key features include automatic logging of auth events (like sign-in, sign-up, password changes) with associated metadata such as IP address and user agent, support for custom storage backends (Prisma, Drizzle, MongoDB examples are provided), and PII redaction capabilities. It differentiates itself by offering a zero-config setup for automatic event capture when integrated with `better-auth`, and exposing query endpoints for retrieving logs, including the ability to insert custom audit entries for non-auth related administrative actions. It relies on `better-auth` for its core functionality and `zod` for schema validation.","language":"javascript","status":"active","version":"0.3.0","tags":["javascript","better-auth","better-auth-plugin","audit-log","audit-trail","auth","authentication","security","logging","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install better-auth-audit-logs","imports":["import { auditLog } from 'better-auth-audit-logs';","import { auditLogClient } from 'better-auth-audit-logs/client';","import type { AuditLogSchema } from 'better-auth-audit-logs';"]},{"cmd":"yarn add better-auth-audit-logs","imports":[]},{"cmd":"pnpm add better-auth-audit-logs","imports":[]}],"homepage":null,"github":"https://github.com/ejirocodes/better-auth-audit-logs","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/better-auth-audit-logs","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/better-auth-audit-logs/compatibility"}}