SMOZ is a small, pragmatic toolkit for authoring AWS Lambda handlers with [Middy] and [Zod], then aggregating Serverless functions and hand‑crafted OpenAPI 3.1 paths from a single, schema‑first application definition.
From an empty directory:
npx @karmaniverous/smoz init -i
npx smoz dev -p 3000
smoz
bin).Prefer serverless‑offline
?
npx smoz dev -l offline -p 3000
Add your first endpoint (avoid clashing with the template’s hello):
npx smoz add rest/foo/get
npm i @karmaniverous/smoz zod zod-openapi
npm i -D typescript typescript-eslint eslint prettier typedoc