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
PricingBlogContributorsDocs
2Sign In
FeaturesExplore
RulesSkillsKnowledgePrompts
PricingBlogContributorsDocs
Sign In

Explore

Browse 158 rules, 25 knowledge articles, and 25 prompt templates across security, performance, architecture, and quality.

25 knowledge items

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.

beforemerge-supabase-review

Supabase Server-Side Auth Reference

Reference

Complete reference for server-side authentication in Supabase: client types, user retrieval methods, cookie handling, and middleware patterns.

beforemerge-supabase-review

Supabase Edge Functions Guide

Guide

Building and deploying Supabase Edge Functions: project structure, environment variables, CORS handling, client invocation, and error handling.

beforemerge-supabase-review

Next.js Rendering Strategies

Guide

When to use Server Components, Client Components, and Server Actions. Includes a decision tree with concrete examples.

beforemerge-nextjs-review

TypeScript Utility Types Cheatsheet

Reference

Practical guide to Partial, Required, Pick, Omit, Record, Extract, Exclude, ReturnType, Parameters, and Awaited with real-world examples.

TypeScript Review

Next.js Caching Reference

Reference

Next.js caching layers explained: Request Memoization, Data Cache, Full Route Cache, and Router Cache. How each works and common pitfalls.

beforemerge-nextjs-review

Next.js Middleware Patterns

Guide

Middleware use cases for Next.js: auth guards, redirects, geolocation, A/B testing, with matcher config examples and edge runtime limitations.

beforemerge-nextjs-review

Rules of Hooks

Reference

Rules of Hooks explained: why they exist, what breaks when violated, and how to structure custom hooks correctly.

beforemerge-react-review

React State Management Decision Tree

Guide

When to use useState, useReducer, Context, or external state libraries. Decision tree based on scope, complexity, and sharing needs.

beforemerge-react-review

TypeScript Strict Mode Reference

Reference

Every TypeScript strict flag explained: what each catches, why it matters, and the migration path from loose to strict.

TypeScript Review

REST API Design Checklist

Runbook

Step-by-step checklist for designing REST APIs: naming conventions, versioning, pagination, filtering, error format, authentication, and rate limiting.

API Design Review

API Error Handling Patterns

Guide

Standard error response format, HTTP status code mapping, error codes, client-friendly messages, and retry guidance for APIs.

API Design Review

SQL Indexing Guide

Guide

When and how to add database indexes: B-tree, GIN, partial, and composite indexes. Includes EXPLAIN ANALYZE examples and read/write tradeoffs.

Database Review

SQL Injection Prevention

Guide

How SQL injection works, parameterized queries in Node.js and Python, ORM safety, and common bypass techniques to test for.

Database Review

Testing Pyramid Guide

Guide

Unit, integration, and E2E testing: what each level tests, recommended ratios, tooling recommendations, and cost/benefit analysis.

Testing Review

Test Factory Patterns

Tutorial

Building test factories with the builder pattern: createUser(), createOrder(), with overrides, traits, and sequences in TypeScript.

Testing Review

WCAG 2.1 AA Compliance Checklist

Runbook

WCAG 2.1 AA compliance checklist organized by principle: Perceivable, Operable, Understandable, Robust. Includes automated testing tools.

Accessibility Review

Git Commit Message Conventions

Reference

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

Git Workflow Review

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.

DevOps & CI/CD Review

Docker Containerization Guide

Tutorial

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

DevOps & CI/CD Review

JWT Authentication Guide

Guide

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

Node.js Security Review

Security Headers Reference

Reference

Every important security header explained: CSP, HSTS, X-Frame-Options, X-Content-Type-Options, Permissions-Policy. Includes Next.js configuration examples.

Node.js Security Review

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 Review

Image Optimization Guide

Tutorial

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

Web Performance Review

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