ApexTools

A TriggerHandler base class and a DI-aware HTTP request wrapper. The small foundation layer of Apex Stem.

What ApexTools Gives You

Foundation Utilities, Two Pillars

Slim Handlers With a TriggerHandler Base Class

extends TriggerHandler unifies the seven Trigger hooks behind a single interface. You only override the hooks you need — no empty placeholder methods. A built-in field-change detection helper (getUpdateRecordIdsWithChangedFields) narrows down afterUpdate to "records where field X changed" in a single line.

External APIs Via DI: An HttpRequest Wrapper

The trio of IHttpRequestHandler / HttpRequestHandler / MockHttpRequestHandler resolves three pain points of the official HttpCalloutMock (hand-written JSON strings / URL-based if-else / counter-bearing Mocks) in one shot. Declarative via Map and List; Queue structure makes retries and pagination natural.

ApexTools is intentionally small. It is one of the four OSS that make up Apex Stem, alongside ApexEloquent / ApexBlueprint / ApexTrace.

Ready to dive in?

The developer guide walks through TriggerHandler usage, the three pain points of HttpCalloutMock and ApexTools' answer, and integration with the Layered Constructor Pattern — all in one pass.