Enterprise-grade SQL auditing for modern applications
Automatically audit all SQL queries with rich context, flexible rules, and zero configuration. A modern alternative to database triggers.
npm install panoptes/sdkimport { initAudit, createAuditedPostgresClient } from 'panoptes/sdk';
initAudit({
appName: 'my-app',
transports: { enabled: ['console'] }
});
const auditedClient = createAuditedPostgresClient(client, dbInfo);π Full Documentation | π― Live Examples
- β‘ Zero Configuration - Auto-creates audit tables, no manual setup
- ποΈ Multi-Database Support - PostgreSQL, MySQL, MSSQL, SQLite, Oracle
- π€ Rich User Context - Tracks who, what, when, where for every query
- π― Flexible Rules - Configure auditing per table or operation type
- π Multiple Transports - Console, File, HTTP, Database
- π Before/After Capture - Track data changes for compliance
- βοΈ Production Ready - Battle-tested, optimized, and secure
panoptes-sdk/
βββ node/ # Node.js SDK
βββ python/ # Python SDK (coming soon)
βββ docs/ # Comprehensive documentation (Astro)
βββ README.md # This file
Better than Database Triggers:
- β Portable across databases
- β Rich application context (user, IP, roles, request ID)
- β Multiple output destinations (not just same DB)
- β Versionable, testable, debuggable
- β Zero database overhead
Perfect for:
- π₯ Healthcare (HIPAA compliance)
- π° Finance (SOX compliance)
- π E-commerce (PCI-DSS)
- π Security & Compliance
- π Data governance
- β PostgreSQL
- β MySQL
- β Microsoft SQL Server
- β SQLite
- β Oracle
- π In development
Visit the documentation site for:
- π Complete API reference
- π― Step-by-step guides
- π‘ Real-world examples
- π§ Advanced configuration
- π Best practices
Contributions are welcome! Please see our Contributing Guide for details.
MIT License - feel free to use in commercial projects.
Created by malydev (Miguel Lipa)
If you find this project useful, consider:
- β Starring the repository
- π Reporting issues
- π‘ Suggesting features
- π€ Contributing code
- π¦ npm Package
- π Documentation
- π Issue Tracker
- π¬ Discussions
Built with β€οΈ by Miguel Lipa