On this page
Get started with Dryv
A Dryv project connects software meaning, reusable packs, and output destinations
through one user-facing project contract: dryv.yaml.
The recommended first loop is simple:
- install the CLI and an author for your language;
- create
dryv.yaml; - point it at your authored source;
- activate one small pack;
- run
dryv planand read the plan; - run
dryv generateonly after you understand the plan.
For the whole picture of what runs where, read How a project flows through Dryv.
Create dryv.yaml
version: dryv/v1alpha1
sources:
authoring:
main:
type: typescript
path: dryv/contracts
entrypoint: index.ts
packs:
local:
path: dryv/packs
packs:
models:
source:
$ref: "#/sources/packs/local"
path: models
destination: { $ref: "#/destinations/generatedModels" }
destinations:
ir:
main: { path: dryv/ir }
generatedModels:
path: src/_gen/models
authoring:
source: { $ref: "#/sources/authoring/main" }
destination: { $ref: "#/destinations/ir/main" }
build:
cache: reuse
default_action: generate
Choose how meaning enters Dryv
A project can provide authored source through a supported Author implementation or load serialized Canonical Runtime IR directly. Once canonical meaning exists, the downstream planning and generation model is the same.
Inspect before generating
Planning should expose validation diagnostics, selected and skipped template invocations, planned artifact identities and paths, generated dependencies, cache decisions, and collision diagnostics before workspace mutation.
Keep the first project small
Start with one pack and one destination. Verify that selection and output paths are understandable before composing multiple packs.