npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@monorka/tabletrace

v0.1.4

Published

Real-time PostgreSQL change monitoring CLI

Downloads

34

Readme

tabletrace

████████╗ █████╗ ██████╗ ██╗     ███████╗  ████████╗██████╗  █████╗  ██████╗███████╗
╚══██╔══╝██╔══██╗██╔══██╗██║     ██╔════╝  ╚══██╔══╝██╔══██╗██╔══██╗██╔════╝██╔════╝
   ██║   ███████║██████╔╝██║     █████╗       ██║   ██████╔╝███████║██║     █████╗
   ██║   ██╔══██║██╔══██╗██║     ██╔══╝       ██║   ██╔══██╗██╔══██║██║     ██╔══╝
   ██║   ██║  ██║██████╔╝███████╗███████╗     ██║   ██║  ██║██║  ██║╚██████╗███████╗
   ╚═╝   ╚═╝  ╚═╝╚═════╝ ╚══════╝╚══════╝     ╚═╝   ╚═╝  ╚═╝╚═╝  ╚═╝ ╚═════╝╚══════╝

Real-time PostgreSQL change monitoring CLI.

npm version License: MIT

English | 日本語

Features

  • 🔍 Real-time monitoring - Watch INSERT, UPDATE, DELETE operations as they happen
  • 📊 Multiple tables - Monitor multiple tables simultaneously
  • 🎨 Color-coded output - Green for INSERT, yellow for UPDATE, red for DELETE
  • 🔄 Interactive mode - View change details, history, and switch tables on the fly
  • Lightweight - No triggers, no schema changes, minimal performance impact

💡 Note: This CLI is a development tool designed for local environments. For GUI version, see TableTrace OSS. For team development or staging environments, see TableTrace Pro(coming soon).

Installation

npm (recommended)

npm install -g @monorka/tabletrace

Or use directly with npx:

npx @monorka/tabletrace watch --preset postgres

Cargo (Rust)

cargo install --git https://github.com/monorka/tabletrace-cli

Manual download

Download the binary for your platform from GitHub Releases.

Quick Start

Using presets (recommended for local development)

# Local PostgreSQL (localhost:5432)
tabletrace watch --preset postgres

# Supabase local (localhost:54322)
tabletrace watch --preset supabase

Custom connection

# Basic connection
tabletrace watch -d mydb -u postgres -W mypassword

# Full options
tabletrace watch -H localhost -P 5432 -d mydb -u postgres -W mypassword

Using environment variable (recommended for security)

export PGPASSWORD=mypassword
tabletrace watch -d mydb -u postgres

Usage

tabletrace watch [OPTIONS]

Options:
      --preset <PRESET>      Preset: 'supabase' (localhost:54322) or 'postgres' (localhost:5432)
  -H, --host <HOST>          Database host [default: localhost]
  -P, --port <PORT>          Database port [default: 5432]
  -d, --database <DATABASE>  Database name (required unless using --preset)
  -u, --user <USER>          Database user [default: postgres]
  -W, --password <PASSWORD>  Database password (or use PGPASSWORD env var)
  -s, --schema <SCHEMA>      Schema to watch (use 'all' for all schemas) [default: public]
  -i, --interval <INTERVAL>  Polling interval in milliseconds [default: 1000]
      --interactive          Enable interactive mode [default: true]
  -h, --help                 Print help
  -V, --version              Print version

Interactive Commands

When running in interactive mode, you can use these commands:

| Key | Command | |-----|---------| | 1, 2, ... | Show details of change #N | | l | List all recorded changes | | c | Clear change history | | w | Show currently watching tables | | r | Reset/reselect tables to watch | | h | Show help | | q | Quit |

Example Output

████████╗ █████╗ ██████╗ ██╗     ███████╗  ████████╗██████╗  █████╗  ██████╗███████╗
╚══██╔══╝██╔══██╗██╔══██╗██║     ██╔════╝  ╚══██╔══╝██╔══██╗██╔══██╗██╔════╝██╔════╝
   ██║   ███████║██████╔╝██║     █████╗       ██║   ██████╔╝███████║██║     █████╗
   ██║   ██╔══██║██╔══██╗██║     ██╔══╝       ██║   ██╔══██╗██╔══██║██║     ██╔══╝
   ██║   ██║  ██║██████╔╝███████╗███████╗     ██║   ██║  ██║██║  ██║╚██████╗███████╗
   ╚═╝   ╚═╝  ╚═╝╚═════╝ ╚══════╝╚══════╝     ╚═╝   ╚═╝  ╚═╝╚═╝  ╚═╝ ╚═════╝╚══════╝

                      Real-time PostgreSQL Monitor

👁 Watching (2 tables)
  [1] public.users
  [2] public.orders

+ #1 [14:23:45] INSERT public.users (1 row)
    + id=123 { name=Alice, [email protected] }

~ #2 [14:23:52] UPDATE public.orders (1 row)
    ~ id=456 { status: pending → completed }

- #3 [14:24:01] DELETE public.users (1 row)
    - id=123 { name=Alice, [email protected] }

How it Works

TableTrace monitors PostgreSQL's pg_stat_user_tables system view to detect changes:

  • No triggers required - Works with any PostgreSQL database
  • No schema changes - Read-only monitoring
  • Minimal impact - Uses lightweight polling
  • Row-level diffs - Shows exactly what changed

Security

  • Passwords can be passed via PGPASSWORD environment variable (recommended)
  • Connection credentials are never logged
  • Only reads from system catalogs and user tables

Requirements

  • PostgreSQL 9.6 or higher
  • Node.js 16 or higher (for npm installation)

Related

License

MIT © Monorka Inc.