Audit
Enterprise audit logging with pluggable storage and HTTP middleware registration.
my add audit
my add audit --storage file
my organization setup
What gets scaffolded
| Artifact | Path | |----------|------| | Service | src/audit/audit.service.ts | | Repository | src/audit/audit.repository.ts | | Middleware | src/audit/audit.middleware.ts | | Storage | src/audit/storage/ (memory or file) | | Register | src/audit/register-audit.ts | | Docs | AUDIT.md |
Storage backends
| Backend | Use case | |---------|----------| | memory | Development and tests (default) | | file | Local JSON audit trail persistence |
HTTP integration
my add audit registers registerAuditMiddleware in src/routes/features.ts so Fastify apps can attach request/response audit hooks automatically.
Related checks
my governance check— verifies audit module presencemy compliance check— passes HIPAA/SOC 2 audit-log checks whensrc/auditorAUDIT.mdexists