supabase-load-scale

jeremylongshore's avatarfrom jeremylongshore

Implement Supabase load testing, auto-scaling, and capacity planning strategies.Use when running performance tests, configuring horizontal scaling,or planning capacity for Supabase integrations.Trigger with phrases like "supabase load test", "supabase scale","supabase performance test", "supabase capacity", "supabase k6", "supabase benchmark".

⭐878stars🔀101forks📁View on GitHub🕐Updated Jan 4, 2026

When & Why to Use This Skill

This Claude skill automates the implementation of Supabase load testing, horizontal auto-scaling, and capacity planning. It streamlines performance engineering by leveraging k6 for benchmarking and Kubernetes HPA for dynamic resource management, ensuring Supabase integrations remain performant and scalable under high-traffic conditions.

Use Cases

  • Performance Benchmarking: Generate and execute k6 load testing scripts to identify bottlenecks and evaluate Supabase performance under stress.
  • Automated Scaling: Configure Kubernetes Horizontal Pod Autoscaler (HPA) using CPU and custom Prometheus metrics to handle fluctuating database loads.
  • Capacity Planning: Analyze test results to determine optimal resource allocation and define long-term infrastructure requirements for production environments.
  • Infrastructure Documentation: Automatically document benchmark results and capacity recommendations to maintain a reliable and cost-effective database architecture.
namesupabase-load-scale
description|
allowed-toolsRead, Write, Edit, Bash(k6:*), Bash(kubectl:*)
version1.0.0
licenseMIT
authorJeremy Longshore <jeremy@intentsolutions.io>

Supabase Load Scale

Prerequisites

  • k6 load testing tool installed
  • Kubernetes cluster with HPA configured
  • Prometheus for metrics collection
  • Test environment API keys

Instructions

Step 1: Create Load Test Script

Write k6 test script with appropriate thresholds.

Step 2: Configure Auto-Scaling

Set up HPA with CPU and custom metrics.

Step 3: Run Load Test

Execute test and collect metrics.

Step 4: Analyze and Document

Record results in benchmark template.

Output

  • Load test script created
  • HPA configured
  • Benchmark results documented
  • Capacity recommendations defined

Error Handling

See {baseDir}/references/errors.md for comprehensive error handling.

Examples

See {baseDir}/references/examples.md for detailed examples.

Resources