Crux
API Reference

API Reference

Hand-written API reference for every Crux package, organized by package.

The reference is organized by package. Pick the package you're working with — each one has its own landing page with subpath-by-subpath documentation.

Packages

How reference pages are organized

Package landing pages use package names. Pages inside a package use readable API-area names in the sidebar, while the exact import path appears in the page body.

Every reference page follows the same layout so you can scan quickly:

  1. Overview — what it is and when to reach for it
  2. Signature — the TypeScript signature of the export
  3. Parameters — table of options with types and defaults
  4. Returns — what comes back
  5. Example — a minimal working snippet
  6. Hooks emitted — instrumentation events the export fires (when applicable)
  7. Related — links to the relevant guide and cookbook recipes

If you want narrative how-to content with "when to use" guidance, look in Guides. If you want full working examples, look in Cookbook. The reference is for what does this function do, exactly.

On this page