Skip to content

Installation

Terminal window
bun add brex
  • Node ≥ 20.19, or any modern runtime with a global fetch (Bun, Deno, browsers, edge runtimes).
  • The package is ESM-only. On Node ≥ 20.19, require("brex") works too, thanks to require(esm) support.
  • Zero runtime dependencies.

The package ships 11 entry points: the root brex client plus one subpath per Brex API (brex/payments, brex/expenses, and so on). Each entry point carries its own types and, for the subpaths, a lightweight client factory. See Tree-shakeable imports for when to use which.

Next: head to the Quickstart.