Trap.apex

Trap.apex is a versatile functional reactive library to handle Salesforce triggers.

Why Trap.apex?

Trap.apex takes its name from 'trigger the trap', which aims to become the delicate device that takes care of Salesforce triggers. Besides adopting the trigger best practices from the community, Trap.apex distinguishes itself from other trigger frameworks in its stream-based trigger execution and rich features.

FRP Style

Trap.apex adopts the functional reactive style to process trigger logic.

Trigger Control

Trap.apex offers fine control over trigger handlers.

Adaptive

Trap.apex can be used with other trigger frameworks.

Triggers in Functional Style

Trap.apex is not a monster. It just puts your triggers into a functional style.

Stream Style

Trap.apex uses stream-based API to handle trigger logic.

Stream Style

Trigger Control

Trap.apex executes fine controls over trigger handlers.

Trigger Control

Easy Unit Test

Trap.apex makes it easy to do unit test with triggers.

Easy Unit Test