Skip to main content
command

supabase-realtime-monitor — Claude Code command: features and setup

Inspect Supabase Realtime connections, find subscription code in a project, and focus analysis on performance, errors, or connection status.

Install into Claude Code · claude-code-templates All methods and platforms ↓
npx claude-code-templates@latest --command database/supabase-realtime-monitor
Open on GitHub

What supabase-realtime-monitor does

The command gathers Supabase Realtime context and searches .ts and .js files for subscribe, realtime, and channel. Pass a monitoring mode to focus on connections, subscriptions, performance, debugging, or analytics.

Its analysis covers connection stability, active subscriptions, message throughput, and errors. It can also suggest ways to reduce connection overhead and handle retries. The description says Supabase connection and subscription context comes through MCP; available tools include file reading and editing, plus shell commands. Without MCP access to connection data, conclusions about current status may be limited.

What it helps with

  • find realtime subscription code in a project
  • investigate Supabase connection failures
  • assess message throughput and connection overhead
  • review subscription patterns and their lifecycle

Example prompts for the agent

  • Check active Supabase Realtime connections: /supabase-realtime-monitor --connections
  • Review the project's subscriptions: /supabase-realtime-monitor --subscriptions
  • Investigate Realtime errors and suggest debugging steps: /supabase-realtime-monitor --debug

How to install supabase-realtime-monitor

1claude-code-templates

npx claude-code-templates@latest --command database/supabase-realtime-monitor

2Manually: put the files in place

.claude/commands/supabase-realtime-monitor.md

Call it with /supabase-realtime-monitor. For all projects use ~/.claude/commands/

Questions about supabase-realtime-monitor

How do I install supabase-realtime-monitor in Claude Code?

Run npx claude-code-templates@latest --command database/supabase-realtime-monitor. The command file is placed at .claude/commands/supabase-realtime-monitor.md.

What does supabase-realtime-monitor do?

It searches project files for Supabase subscription code and analyzes connection status, performance, and errors. Arguments such as --connections and --debug select the focus.

Does Supabase monitoring require MCP?

The command description says it gets connection and subscription context through MCP. Without access to that data, its assessment of current connection status may be limited.

Source text

supabase-realtime-monitor.md · MIT
---
allowed-tools: Read, Write, Edit, Bash
argument-hint: "[monitoring-type] | --connections | --subscriptions | --performance | --debug | --analytics"
description: Monitor and optimize Supabase realtime connections with performance analysis and debugging
---

# Supabase Realtime Monitor

Monitor and optimize Supabase realtime connections with comprehensive performance analysis: **$ARGUMENTS**

## Current Realtime Context

- Supabase realtime: Connection status and subscription management via MCP
- Application subscriptions: !`find . -name "*.ts" -o -name "*.js" | xargs grep -l "subscribe\|realtime\|channel" 2>/dev/null | head -5` active subscription code
- Performance metrics: Current connection performance and message throughput
- Error patterns: Recent realtime connection issues and debugging information

## Task

Execute comprehensive realtime monitoring with performance optimization and debugging support:

**Monitoring Type**: Use $ARGUMENTS to focus on connection monitoring, subscription analysis, performance optimization, debugging assistance, or analytics reporting

**Realtime Monitoring Framework**:
1. **Connection Analysis** - Monitor active connections, analyze connection stability, track connection lifecycle, identify connection issues
2. **Subscription Management** - Track active subscriptions, analyze subscription performance, optimize subscription patterns, manage subscription lifecycle
3. **Performance Optimization** - Analyze message throughput, optimize payload sizes, reduce connection overhead, improve subscription efficiency
4. **Error Monitoring** - Track connection errors, analyze failure patterns, implement retry strategies, provide debugging insights
5. **Analytics Dashboard** - Generate usage analytics, track performance trends, monitor resource utilization, provide optimization recommendations
6. **Developer Tools** - Provide debugging utilities, implement connection testing, create performance profiling, optimize development workflow

**Advanced Features**: Real-time performance monitoring, predictive analytics, automated optimization suggestions, comprehensive logging, alert management.

**Integration Support**: Application performance monitoring, CI/CD integration, team collaboration tools, documentation generation, troubleshooting guides.

**Output**: Comprehensive realtime monitoring with performance analytics, optimization recommendations, debugging tools, and developer documentation.

© davila7 · MIT · davila7/claude-code-templates

Similar slash commands

All slash commands for Data and databases →

From the same set238

The whole set →
create-feature Builds a new feature scaffold with implementation guidance, tests, and docs. Use it when a feature needs a structured path from planning to review. 898installs create-onboarding-guide Scans your project repository to generate tailored onboarding documentation for new team members. It extracts stack details and workflows directly from config files. 835installs supabase-backup-manager A Claude slash command that runs Supabase database backups: takes snapshots, validates restores and manages the schedule. 812installs optimize-database-performance A Claude slash command that walks through slow queries, indexes and schema, then tells you what to rewrite. Useful when a page stalls on one SELECT. 794installs setup-docker-containers Sets up Docker for development and production projects, covering multi-stage builds, Compose environments, and container workflows. 740installs doc-api Scans your codebase for endpoints and writes the API documentation: spec, request and response examples, an interactive page. Useful when there are too many routes to describe by hand. 733installs nextjs-performance-audit This command checks a Next.js project’s Lighthouse results, bundle size, and runtime performance. Use it to find performance issues and get optimization suggestions. 694installs performance-audit Audits codebase performance, locating slow database queries, nested loops, and build bottlenecks. Prioritizes optimizations by system impact and implementation effort. 661installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor