Metakit / API

@doeixd/metakit/inspect

Schema inspector (@doeixd/metakit/inspect) for forms, data grids, CMS fields, and AI agent JSON Schemas.

Reads Effect SchemaAST, Expr.refinementsOf and Domain.domainOf directly — no interpreter interface in between.

Functions

fieldSpecsExtract per-field kind, optionality, nullability, tightest bounds, enum literals, and domain metadata from a struct Schema (a non-struct Schema reads as one…
fnExtract parameter specs, JSON Schemas, return metadata, and contract counts from a Fn or FnSpec.
toJsonSchemaGenerate a JSON Schema object enriched with Expr.refine bounds, title/description annotations, and @doeixd/metakit/domain metadata (x-metakit-domain).…

Interfaces

FieldSpec
FnSpecInfoInspected metadata for a @doeixd/metakit/fn Fn or FnSpec (forms, docs, agent tools).