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

Error Handling Patterns in TypeScript/React

Guide

Error handling patterns: Result types, Error Boundaries, try/catch strategies, structured logging, and error monitoring setup.

Error Handling

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

Supabase Server-Side Auth Reference

Reference

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

Supabase

Supabase Edge Functions Guide

Guide

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

Supabase

Next.js Rendering Strategies

Guide

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

Next.js

TypeScript Utility Types Cheatsheet

Reference

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

TypeScript

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.

Next.js

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.

Next.js

Rules of Hooks

Reference

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

React

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.

React

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

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

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

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.

SQL & Databases

SQL Injection Prevention

Guide

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

SQL & Databases

Testing Pyramid Guide

Guide

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

Testing

Test Factory Patterns

Tutorial

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

Testing

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

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