brick.ts

API Reference

Every function, class, and type the Brick packages export, generated from the JSDoc in their source.

llms.txt

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.

ImportWhat it isExports
@brickkit/coreServices, actions, tools, resources, databases, secrets, the HTTP runtime, and the typed contract of a Brick application.321
@brickkit/core/clientThe typed HTTP client a frontend uses to call a Brick application, inferred from its contract.29
@brickkit/core/tanstack-queryTanStack Query options and keys for the typed client's actions.3
@brickkit/core/pgPostgres databases for Brick services, with Drizzle's table builders.33
@brickkit/core/workflowTyped errors for workflow steps, safe to import in workflow code.5
@brickkit/core/testingcreateTestApp: an app per test with a typed client and a cleanup.3
@brickkit/cliThe brick command's building blocks: the dev and production servers, contract generation, and the OpenAPI pages.12
@brickkit/cli/configDefine and validate brick.config.ts, resolve project paths, and apply CLI flag defaults.21
@brickkit/cli/compilerEmit the JavaScript module of a compiled application's route handlers, and each handler factory, for an ahead-of-time build.2
@brickkit/cli/production-dashboardServe the production dashboard with bearer authentication and database access controls.2
@brickkit/cli/dashboarddefineDashboard, the UI kit and the data hooks for a dashboard extension.63
@brickkit/cli/viteThe Vite plugin that generates the typed client contract and serves the dashboard.3
@brickkit/cli/workflowsLoad 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-reporterReport a worker process's requests to a running dev dashboard.2
@brickkit/cli/lint/eslintThe Brick lint rules as an ESLint flat-config plugin.1
@brickkit/cli/lint/oxlintThe Brick lint rules as an oxlint JS plugin, and an oxlint config from brick.config.ts.3
@brickkit/crudCRUD 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.

On this page

Generated from the JSDoc above each export. Edit the comment there.