Skip to main content
Generates backend code from the contract.

Subcommands

backend

Express.js or Hono router stubs with Zod validation.

Usage

Options

string
Target framework. One of express or hono.
string
Output directory for generated files.
boolean
Skip Zod validation schemas.
boolean
Also generate a Postman collection (postman_collection.json) from the contract next to the router stubs.
boolean
Print instructions to run Newman against the generated stub server. Requires --postman.

Examples

Pair with bazable gen ui to scaffold matching frontend forms, and see Postman Integration for testing the generated stubs with Newman.