Skip to main content

Variable: Cast

const Cast: CastApi;

Defined in: packages/cast/src/cast.ts:276

The process-wide cast surface.

The native hybrid object is created on first use, not at import time — this keeps import '@afkcodes/timbre-cast' free of native side effects (and keeps the module importable in a plain Node/vitest process).

A singleton is the deliberate exception to CLAUDE.md principle 5: the OS cast framework (CastContext / GCKCastContext) is itself a process singleton on both platforms.