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
Built with ❤️ by Miguel Lipa