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
- Selections pick canonical subjects (every
schema, everyoperationwith an HTTP facet, everyproperty.enum). - Templates are files on disk. Each one is bound to a selection and decides where its output goes (
output.name,output.path,output.symbol). - 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.
- Composition lets packs
provideandneedcapabilities (schema.validation,schema.persistence) that a project binds together. - 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 to | Read |
|---|---|
| Make something work in ten minutes | Build your first pack |
Know every key of dryv.pack.yaml | Pack anatomy |
| See which values a template can read | Context overview and the catalog |
Understand is, has_*, *_json helpers | Derived values |
| Wire packs together | Composition and bindings |
| Run commands after generation | Actions and commands |
| Prove and ship a pack | Test and publish |
Discover context from the terminal
You never have to guess a path. The CLI asks the engine:
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