On this page

Pack builders

A pack is a reusable implementation. It reads the meaning a project has authored and turns it into files: controllers, entities, DTOs, SDKs, config, docs. Packs never redefine meaning; they represent it.

This section is for people who write packs. If you only want to use packs, read Find and use packs. If you want to describe software, read Authoring.

The mental model

  1. Selections pick canonical subjects (every schema, every operation with an HTTP facet, every property.enum).
  2. Templates are files on disk. Each one is bound to a selection and decides where its output goes (output.name, output.path, output.symbol).
  3. Context is what a template can read. The engine never hands a template the whole model. It analyses the template, learns which context paths it reads, validates them against the vocabulary, and projects only those paths.
  4. Composition lets packs provide and need capabilities (schema.validation, schema.persistence) that a project binds together.
  5. Actions are explicit commands (format, install) the client runs after generation. The engine plans them; it never runs them.

Everything is deterministic and explainable. A generated file can always be traced back to the selection, template and context that produced it.

Where to go next

You want toRead
Make something work in ten minutesBuild your first pack
Know every key of dryv.pack.yamlPack anatomy
See which values a template can readContext overview and the catalog
Understand is, has_*, *_json helpersDerived values
Wire packs togetherComposition and bindings
Run commands after generationActions and commands
Prove and ship a packTest and publish

Discover context from the terminal

You never have to guess a path. The CLI asks the engine:

terminal
dryv context list                                         # every root and type
dryv context show "schema.fields[].value.is.boolean"     # what one path reads, with provenance
dryv context show "schema.fields[].value.generated.schema_validation" --json

Explore this section

Search in