PostgreSQL Realtime Monitor
PostgreSQL Realtime Monitor is a powerful tool for monitoring database changes as they happen. Built with modern technologies, it provides instant visibility into INSERT, UPDATE, and DELETE operations across all your PostgreSQL tables.Quick Start
Get up and running in under 5 minutes with Docker and Bun
Architecture
Learn how the real-time monitoring system works under the hood
API Reference
Explore the WebSocket API and REST endpoints
Configuration
Customize database connections and server settings
Key Features
Real-time Updates
Monitor all database operations (INSERT, UPDATE, DELETE) as they occur using PostgreSQL logical replication
WebSocket Streaming
Low-latency WebSocket connections powered by Bun for instant change notifications
Sortable & Filterable
Interactive React table with column sorting, filtering, and dynamic column detection
Modern UI
Beautiful dark theme interface with color-coded operations and connection status indicators
Hot Module Reloading
Fast development workflow with Bun’s built-in HMR for React components
Auto-reconnect
Automatic WebSocket reconnection with graceful error handling and state recovery
How It Works
The system uses PostgreSQL’s logical replication feature to subscribe to database changes:- PostgreSQL is configured with
wal_level=logicalto enable change data capture - Bun Server subscribes to all table changes using the
postgreslibrary - WebSocket broadcasts changes in real-time to connected clients
- React Frontend displays changes in an interactive, filterable table
All changes are stored in memory on the server. When the server restarts, the change history is cleared.
Technology Stack
Use Cases
Development & Debugging
Development & Debugging
Watch database changes in real-time during development to understand how your application interacts with the database. Perfect for debugging complex workflows and data mutations.
Audit & Compliance
Audit & Compliance
Track all data modifications for compliance and audit purposes. Every INSERT, UPDATE, and DELETE operation is captured with full row data.
Analytics & Monitoring
Analytics & Monitoring
Build real-time dashboards and analytics by streaming database changes to your monitoring systems. The WebSocket API makes integration simple.
Cache Invalidation
Cache Invalidation
Automatically invalidate caches when database records change. Subscribe to specific tables and trigger cache updates instantly.
Requirements
Bun Runtime
Install Bun v1.0 or higher for the server runtime
Docker
Docker and Docker Compose for running PostgreSQL with logical replication enabled
What’s Next?
Get Started
Follow the Quickstart Guide to set up your first real-time monitor in minutes
Explore the Code
Dive into the Architecture to understand how the system works
Customize
Learn how to configure the database connection and server settings
Integrate
Check out the API Reference to integrate with your applications