Skip to content

Panoptes SQL auditing SDK for Node.js with multi-database support, before/after data capture, and database transport

Notifications You must be signed in to change notification settings

malydev/panoptes-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

46 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” Panoptes SDK

Enterprise-grade SQL auditing for modern applications

License: MIT Node.js Version npm version

Automatically audit all SQL queries with rich context, flexible rules, and zero configuration. A modern alternative to database triggers.


πŸš€ Quick Start

npm install panoptes/sdk
import { initAudit, createAuditedPostgresClient } from 'panoptes/sdk';

initAudit({
  appName: 'my-app',
  transports: { enabled: ['console'] }
});

const auditedClient = createAuditedPostgresClient(client, dbInfo);

πŸ“š Full Documentation | 🎯 Live Examples


✨ Features

  • ⚑ 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

πŸ—‚οΈ Project Structure

panoptes-sdk/
β”œβ”€β”€ node/          # Node.js SDK
β”œβ”€β”€ python/        # Python SDK (coming soon)
β”œβ”€β”€ docs/          # Comprehensive documentation (Astro)
└── README.md      # This file

πŸ’‘ Why Panoptes?

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

πŸ§‘β€πŸ’» Supported Platforms

Node.js SDK (Ready)

  • βœ… PostgreSQL
  • βœ… MySQL
  • βœ… Microsoft SQL Server
  • βœ… SQLite
  • βœ… Oracle

Python SDK (Coming Soon)

  • πŸ”„ In development

πŸ“– Documentation

Visit the documentation site for:

  • πŸ“š Complete API reference
  • 🎯 Step-by-step guides
  • πŸ’‘ Real-world examples
  • πŸ”§ Advanced configuration
  • πŸ“Š Best practices

🀝 Contributing

Contributions are welcome! Please see our Contributing Guide for details.


πŸ“„ License

MIT License - feel free to use in commercial projects.


πŸ‘€ Author

Created by malydev (Miguel Lipa)

If you find this project useful, consider:

  • ⭐ Starring the repository
  • πŸ› Reporting issues
  • πŸ’‘ Suggesting features
  • 🀝 Contributing code

πŸ”— Links


Built with ❀️ by Miguel Lipa

About

Panoptes SQL auditing SDK for Node.js with multi-database support, before/after data capture, and database transport

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published