Crux
API Reference

API Reference

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

The reference is organized by package and developer interface. Pick the area you're working with for exact APIs, commands, settings, and protocol behavior.

Developer interfaces

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. For help choosing between browser Devtools, terminal tools, editor integration, and coding-agent docs, start with Developer Tools. If you want full working examples, look in Cookbook. The reference is for what does this function do, exactly.

On this page