Content and AI
Model portable content operations and compose AI-assisted generation through explicit providers, schemas, policy, and application-owned publication workflows.
Content contracts
Reuse Zod schemas across Playstack content, React forms, wire validation, and NestJS request boundaries.
Visit Zod ↗Model portable content operations and compose AI-assisted generation through explicit providers, schemas, policy, and application-owned publication workflows.
Content contracts
@playstack/content/zod supplies reusable content fields, while @playstack/validation re-exports Zod and adds stable parsing, wire-error, React-form, and NestJS boundaries.
import { contentBase } from '@playstack/content/zod'
import { parse, z } from '@playstack/validation'
const articleSchema = z.object({
...contentBase,
body: z.string().min(1),
})
const article = parse(articleSchema, input)Applications still own their schemas and may use the native Zod APIs directly. Playstack adds consistent error identity and framework bridges rather than introducing a separate schema language.