BeforeMerge

AI-native code review knowledge base. Structured rules that catch what linters miss.

Product

  • Features
  • Explore
  • Pricing
  • Docs
  • GitHub

Company

  • About
  • Blog
  • Contributors
  • Contributing

Legal

  • Privacy Policy
  • Terms of Service
  • MIT License

© 2026 BeforeMerge. Built by Peter Krzyzek

BeforeMerge
Features
Explore
PricingBlogContributorsInstall Guide
2Sign In
FeaturesExplore
RulesSkillsKnowledgePrompts
PricingBlogContributorsInstall Guide
Sign In

Explore

Browse 225 rules, 42 knowledge articles, and 28 prompt templates across security, performance, architecture, and quality.

42 knowledge items

Security Checklist for Next.js + Supabase

Reference

Environment variable management, SSRF prevention, input validation, rate limiting, CSP headers, and service role key protection.

Next.js + Supabase Standards

Performance Optimization Checklist for Next.js

Reference

Image optimization, font loading, dynamic imports, bundle analysis, Suspense streaming, and ISR patterns.

Next.js + Supabase Standards

Error Handling Architecture for Next.js + Supabase

Guide

Error boundary hierarchy, structured logging with pino, user-friendly error messages, and Supabase error code reference.

Next.js + Supabase Standards

TypeScript Patterns for Supabase Applications

Guide

Generated types workflow, type-safe database queries, discriminated unions for state, and generic CRUD helpers.

Next.js + Supabase Standards

Testing Supabase Applications

Guide

Testing RLS policies, server action isolation, integration tests with real database, and E2E patterns.

Next.js + Supabase Standards

Database Migration Best Practices for Supabase

Guide

Migration naming, rollback strategies, seeding data, the moddatetime trigger pattern, and index strategy for Supabase PostgreSQL.

Next.js + Supabase Standards

The Three Supabase Clients — When to Use Each

Guide

Deep dive into createClient(), createAdminClient(), and createReadOnlyClient(). Decision tree for choosing the right client in Next.js.

Next.js + Supabase Standards

RLS Policy Design Patterns for Multi-Tenant Apps

Guide

Common Row Level Security patterns: org-scoped access, public read with auth write, self-service profiles, and anti-patterns to avoid.

Next.js + Supabase Standards

Server Components vs Client Components — The Decision Framework

Guide

When to use server components and when to reach for "use client". Flowchart, refactoring patterns, and performance implications.

Next.js + Supabase Standards

Data Fetching Patterns in Next.js + Supabase

Guide

Comparison of data fetching approaches: server component fetching, SWR, React Query, and Supabase real-time subscriptions.

Next.js + Supabase Standards

Server Action Patterns — Auth, Validation, Error Handling

Guide

Complete guide to writing production server actions with requireAuth, Zod validation, structured error handling, and revalidation.

Next.js + Supabase Standards

Authentication Flow — From OAuth to Protected Page

Guide

End-to-end auth flow: GitHub OAuth callback, session management, middleware protection, and logout handling in Next.js + Supabase.

Next.js + Supabase Standards

Supabase Splinter Linter: Complete Guide

Guide

How to set up and use the Supabase splinter linter for PostgreSQL schema security and performance auditing.

PostgreSQL

Squawk: PostgreSQL Migration Linter Guide

Guide

Set up Squawk to catch unsafe PostgreSQL migrations before they reach production.

PostgreSQL

pgTAP: PostgreSQL Schema Testing Guide

Guide

Write pgTAP tests to verify your PostgreSQL schema, RLS policies, and constraints.

PostgreSQL

MySQL & MariaDB Linting Tools Reference

Reference

Comprehensive reference for MySQL and MariaDB linting and analysis tools.

MySQL & MariaDB

Hosted Database Platform Comparison

Reference

Feature comparison of popular hosted database platforms: Supabase, Neon, PlanetScale, RDS, Cloud SQL, and more.

Managed Databases

Git Commit Message Conventions

Reference

Conventional Commits specification: commit types, scope, breaking changes, multi-line bodies, and tooling for enforcement.

Git

CI/CD Pipeline Setup

Tutorial

Setting up a CI/CD pipeline from scratch with GitHub Actions: test, lint, build stages, deployment gates, environment secrets, and caching.

CI/CD & DevOps

Docker Containerization Guide

Tutorial

Dockerizing a Node.js/Next.js application: multi-stage builds, .dockerignore, health checks, non-root users, and layer caching strategies.

CI/CD & DevOps

JWT Authentication Guide

Guide

How JWTs work, access vs refresh tokens, storage best practices, token rotation, and revocation strategies.

Node.js Security

Supabase RLS Policy Patterns

Guide

Common Row Level Security policy patterns for Supabase: owner-only, org-scoped, role-based, and public read access with SQL examples.

Supabase

Core Web Vitals Guide

Guide

LCP, FID/INP, and CLS explained: what they measure, target values, how to diagnose issues, and how to fix common problems.

Web Performance

Image Optimization Guide

Tutorial

Modern image optimization: formats (WebP, AVIF), responsive images, the Next.js Image component, lazy loading, and CDN strategies.

Web Performance

Automate these checks on every PR

BeforeMerge scans your pull requests against these rules automatically. Get actionable feedback before code ships to production.

Join WaitlistLearn More
Sort:
Previous12Next