API Reference
Every function, class, and type the Brick packages export, generated from the JSDoc in their source.
Every function, class, interface, and type that the Brick packages export, with its signature, parameters, return value, and examples, so you do not have to read the source to find out what one does. The pages are generated from the JSDoc in the source, so they are always as current as the code.
| Import | What it is | Exports |
|---|---|---|
@brickkit/core | Services, actions, tools, resources, databases, secrets, the HTTP runtime, and the typed contract of a Brick application. | 321 |
@brickkit/core/client | The typed HTTP client a frontend uses to call a Brick application, inferred from its contract. | 29 |
@brickkit/core/tanstack-query | TanStack Query options and keys for the typed client's actions. | 3 |
@brickkit/core/pg | Postgres databases for Brick services, with Drizzle's table builders. | 33 |
@brickkit/core/workflow | Typed errors for workflow steps, safe to import in workflow code. | 5 |
@brickkit/core/testing | createTestApp: an app per test with a typed client and a cleanup. | 3 |
@brickkit/cli | The brick command's building blocks: the dev and production servers, contract generation, and the OpenAPI pages. | 12 |
@brickkit/cli/config | Define and validate brick.config.ts, resolve project paths, and apply CLI flag defaults. | 21 |
@brickkit/cli/compiler | Emit the JavaScript module of a compiled application's route handlers, and each handler factory, for an ahead-of-time build. | 2 |
@brickkit/cli/production-dashboard | Serve the production dashboard with bearer authentication and database access controls. | 2 |
@brickkit/cli/dashboard | defineDashboard, the UI kit and the data hooks for a dashboard extension. | 63 |
@brickkit/cli/vite | The Vite plugin that generates the typed client contract and serves the dashboard. | 3 |
@brickkit/cli/workflows | Load and build the "use workflow" and "use step" files of a Brick application, for tests and scripts that run workflows without brick dev. | 5 |
@brickkit/cli/dev-reporter | Report a worker process's requests to a running dev dashboard. | 2 |
@brickkit/cli/lint/eslint | The Brick lint rules as an ESLint flat-config plugin. | 1 |
@brickkit/cli/lint/oxlint | The Brick lint rules as an oxlint JS plugin, and an oxlint config from brick.config.ts. | 3 |
@brickkit/crud | CRUD actions for a resource, with access rules, filters, and hooks. | 22 |
Each page lists its functions first, with a line about each, then classes, interfaces, and types. Search finds any name. Names are re-exported from where they are defined, so a type may appear on more than one page.
Improve a description
The text on these pages is the JSDoc above each export in packages/*/src. To fix or add one, edit the comment there: the first paragraph is the summary, @param name - text describes a parameter, @returns the result, @example adds a code sample, @throws and @deprecated are shown as written, and @internal leaves an export out of this reference.