On this page

Core model

1. Pack

A pack is a reusable generator.

It may contain many templates, including:

  • static/global files;
  • per-schema files;
  • per-operation files;
  • export/barrel files;
  • project/package root files.

A pack does not need to be tiny and does not need one pack per template concern.

A pack is described by:

text
dryv.pack.yaml

It does not use an active internal dryv.yaml to activate other packs.

2. Activation

An activation is one use of a pack in the user's dryv.yaml.

The same reusable pack may be activated more than once with different:

  • destinations;
  • inputs;
  • capability bindings;
  • executable selections.

3. Generated unit

A generated unit is the project/package root that packs contribute to.

Examples:

text
apps/backend
apps/web
apps/mobile
packages/api_client
packages/shared_contracts

A package or project pack establishes a unit.

An inject pack contributes into a unit.

This is an internal/planning concept. It does not create a new semantic tier and does not compete with Runtime IR.

4. Capability composition

A pack declares only the capability it needs.

Example:

yaml
needs:
  operation.client: required

The project chooses the concrete provider:

yaml
bind:
  operation.client:
    $ref: "#/packs/api-client"

Rule:

text
PACK declares NEEDS.
USAGE chooses PROVIDERS.

Do not add hidden pack dependencies that automatically activate other packs.

5. Why package/project are still packs

A package pack is a generator that establishes a reusable generated package.

A project pack is a generator that establishes an editable application/project.

Both can generate real root files such as:

  • package.json;
  • pubspec.yaml;
  • pyproject.toml;
  • tsconfig.json;
  • app entrypoints;
  • configuration files;
  • generated source trees.

Neither requires a nested dryv.yaml.

The distinction is primarily how the generated unit participates in the workspace and how its artifacts are normally owned.

6. Typical ownership

Package:

text
mostly managed

Project:

text
mix of scaffold + managed

Inject:

text
depends on purpose

This is a convention, not a semantic shortcut. Ownership is resolved per output resource:

text
normal filename              → managed
*.sf[.<renderer>]       → scaffold

Do not use fake manifest templates merely to assign ownership.

7. Starter/recipe is not a pack

A starter or recipe is reusable composition.

It may provide an initial dryv.yaml that activates several packs.

It does not hide those packs after initialization.

A starter may create:

text
dryv.yaml
.dryv/contracts/...
initial handwritten/scaffold files

but normal generation still runs through the explicit project dryv.yaml.

Search in