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:

  1. install the CLI and an author for your language;
  2. create dryv.yaml;
  3. point it at your authored source;
  4. activate one small pack;
  5. run dryv plan and read the plan;
  6. run dryv generate only after you understand the plan.

For the whole picture of what runs where, read How a project flows through Dryv.

Create dryv.yaml

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.

Search in