Skip to content

terok-util

The shared utility library that sits at the bottom of the terok-* dependency chain — the foundation of terok.

Every terok-* package depends on terok-util. terok-util depends on nothing else in the ecosystem. The package collects cross-cutting bits that would otherwise be duplicated (or quietly diverge) across the siblings: CLI registry types, filesystem invariants, namespace-aware XDG path resolution, the layered YAML config-merge engine, untrusted-string sanitisation, and a strict template renderer.

Where to go next

  • Adoption Guide — how to pick up terok-util in a downstream package; what to replace; what to leave alone.
  • API Reference — every public symbol, grouped by module.
  • Code Metrics — package-level stats (LoC, complexity, coverage).
  • CI Workflow Map — what runs where, on what triggers.

Source

github.com/terok-ai/terok-util