This app runs inside the BotSurf browser. Don't have it yet? Get the app or extension now!

Supabase Dashboard Table Row Count Badge

Developer Tools · All
0 installs · Verified BotGentz app
Launch App
Opens in BotSurf — try it free, no account needed.
CategoryDeveloper Tools
PlatformAll
Pricing Free
Installs0
Download BotSurf to use — free
No account needed for free apps. Once BotSurf is open, find this app in Apps from the + menu.

About this app

WHAT IT DOES This userscript adds row count visibility to your Supabase dashboard table list. It reads table row counts from the page and displays a compact color-coded badge on each table row showing the exact row count with a size indicator: green for small tables (100,000). A summary panel shows total rows across all tables, average rows per table, and identifies the largest table. Each table entry includes a one-click link to view the table data, making it easy to navigate directly to high-priority tables. This is invaluable for database administrators, backend developers, and data engineers who need to understand database size, identify large tables that may need optimization, and monitor data growth across their Supabase projects. WHERE IT RUNS The script runs on all Supabase web application pages at *.supabase.com/*, with automatic detection of the dashboard table list, schema view, and any page displaying tables in a list format. It works across all Supabase interfaces by using multiple selector strategies to find table rows, names, row counts, and schema information. The script detects dynamic content loading and re-applies row count badges when the table list updates. It runs across the entire Supabase domain, ensuring coverage whether you're viewing the table editor, the SQL editor table list, or the schema browser. HOW TO USE Install the script via the BotGentz extension and navigate to your Supabase dashboard table list (project > Table Editor). Row count badges will appear automatically on every table row. Each badge shows the row count with a color-coded size indicator. Click the ↗ button next to any table name to open the table data view in a new tab. The summary panel appears above your table list showing total rows across all tables, average rows per table, largest table name and size, and a breakdown by size category with counts and percentages. Use the panel controls to customize your experience: toggle row count badges on or off, show or hide the summary panel, enable or disable the size indicator, or adjust the size threshold values for each category (Small, Medium, Large, Huge). The "Refresh" button manually reapplies all badges if the page updates, and the "Reset" button restores the default threshold values. THE MECHANISM - ROW COUNT EXTRACTION, SIZE CATEGORIZATION, AND SUMMARIZATION This script identifies table data by scanning each table row using a cascading selector strategy. It extracts table names from name or title elements, row counts from count or rows elements, and schema information from schema elements. Row counts are parsed by removing commas and extracting numeric values. Size categories are determined by comparing row counts against user-configurable thresholds: small (100,000). The badge is created as a DOM element with inline styles and inserted into the table name cell. The summary panel aggregates data across all tables to calculate total rows, average rows, largest table, and size category distribution. The view link is extracted from table links and opened in a new tab when clicked. THE PANEL The control panel appears as a floating, draggable element that you can position anywhere on the Supabase page. Drag by the header to reposition it, and the position is saved per site using GM_setValue so it stays where you left it across sessions. Release the panel near any edge and it snaps into place, keeping your workspace organized. Click the panel header to collapse it into a small bubble showing only the chart emoji (📊), minimizing distraction while keeping controls accessible. Drag from the bubble to restore the full panel. The panel automatically resizes to fit its content and includes all setting toggles, threshold controls, action buttons, and a size legend. Press the Escape key to quickly collapse the panel to its minimized state. The panel remains visible across page navigation within Supabase, with row count badges updating automatically as you move between projects and views. PLEASE NOTE This script requires the free BotGentz extension to function. It is designed for Supabase users who need to monitor table sizes and data growth. The script reads only visible table data from the DOM—it does not access Supabase's API, your database credentials, or any sensitive information. All settings (badge visibility, summary toggle, size indicator toggle, threshold values, and panel position) are stored locally using GM_setValue and never leave your browser. The script does not modify your Supabase data—it only reads and visualizes visible information. Row counts are based on the values displayed in the dashboard; if the dashboard shows estimated counts, those estimates will be reflected in the badges. The view link opens the table in a new tab; ensure your browser allows pop-ups for this functionality. If Supabase updates its website structure, the script may need to be updated to match new selectors.

Similar Apps

Log in to BotGentz

Suggest an App

Tell us what you'd find useful — if we build it, we'll email you the moment it's ready.