# kevinohara80/sfdc-trigger-framework

A minimal trigger framework for your Salesforce Apex Triggers

Repository: https://github.com/kevinohara80/sfdc-trigger-framework
Canonical: https://ross.abutalabs.com/products/sfdc-trigger-framework
Language: Apex
License: MIT
License Family: permissive
Topics: salesforce, apex, salesforce-developers, salesforce-api, apex-triggers
Last push: 2024-03-27T20:07:00+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4851, "days_push": 889, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1046, forks 551 (observed 2026-08-28T04:03:21.655067+00:00)

## What it is
A minimal Salesforce Apex trigger framework providing a TriggerHandler base class that keeps triggers logicless by routing trigger context events to overridable handler methods. It also acts as a supervisor for trigger execution with APIs for controlling execution flow and bypassing handlers.

## Use cases
- structure apex trigger logic into testable handler classes
- keep salesforce triggers logicless
- control trigger execution flow and bypass handlers
- manage before insert/update and after insert/update trigger contexts
- prevent recursive trigger execution in salesforce
- standardize trigger patterns across a salesforce org

## When to choose
- you develop on the Salesforce platform with Apex
- you want a lightweight, minimal trigger handler pattern instead of a heavy framework
- you need testable, maintainable trigger logic with context-specific entry points
- you want built-in trigger recursion and bypass controls

## When to avoid
- you are not working with Salesforce or Apex
- you need a full-featured enterprise trigger framework with extensive metadata-driven configuration
- your project uses Flow or declarative automation instead of Apex triggers

## Facets
- artifact type: framework
- maturity: stable
- function: middleware, developer-tools, testing
- domain: developer-tools, backend
- platform: cloud, self-hosted
- tags: salesforce, apex, trigger-framework, crm, force-com, sfdx, automation

## Member repositories
- kevinohara80/sfdc-trigger-framework (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:21.655067+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:01:57.319122+00:00, confidence not recorded.
  - readme: https://github.com/kevinohara80/sfdc-trigger-framework (fetched 2026-08-28T04:03:21.655067+00:00, sha f9da6da47def)
- Data as of 2026-08-30T08:39:29.467469+00:00.
