@duke333/builder-contracts
v0.2.1
Published
Shared contracts, schemas, and types for Winu Builder packages.
Readme
@duke333/builder-contracts
Shared builder schemas and types. This package is safe for both backend and frontend usage.
It contains only builder-owned contracts:
- form/list/view metadata schemas
- runtime entry schemas
- field trigger schemas
- pagination helpers used by builder endpoints
It does not contain host app contracts such as products, users, auth, organization, or role definitions. Permission values are modeled as strings so each host app can keep its own permission enum and validation policy.
Usage
Backend packages:
import { builder } from "@duke333/builder-contracts";Install with backend runtime:
pnpm add @duke333/builder-contracts @duke333/builder-backendPublish this package before @duke333/builder-backend, because backend depends on it.
The package is configured for public npm publishing.
The package publishes dist only. prepack runs pnpm build.
