Audit Log

0•

Implements an append-only audit logging system and admin UI for NestJS, MongoDB, and React applications.

The Audit Log skill provides a complete implementation pattern for adding traceable, append-only activity records to a NestJS and Mongoose backend paired with a React frontend. It introduces a fire-and-forget AuditService that captures user actions, IP addresses, timestamps, and request payloads without blocking user-facing requests or failing critical workflows. With built-in sensitive key redaction for passwords and tokens, an indexed MongoDB schema, and an administrative drawer UI for filtering and payload inspection, this skill is ideal for projects requiring compliance readiness, administrative attribution, or debugging capabilities.

Key Features

01Complete React admin UI pattern featuring action badge coloring and a payload inspection drawer
020 GitHub stars
03Fire-and-forget global NestJS service ensuring logging failures never block API requests
04Automated payload sanitization that strips sensitive keys like passwords, tokens, and secrets
05High-performance MongoDB schema with compound indexing on timestamps and user IDs
06Admin-only REST API endpoints with pagination, date range, action, and full-text search

Use Cases

01Maintaining compliance and accountability trails for user management and permission changes
02Tracking internal tool modifications, admin actions, and authentication events
03Recording terminal sessions and command executions for security investigations and debugging