On this page

Authoring

Authoring is where you describe meaning. You declare what your software is (typed structures, what can happen, who may do it, what it emits) and nothing about how any framework represents it. Packs turn that meaning into code.

Both languages describe the same concepts and compile to the same IR, so you can pick the language your team already writes and still use every pack.

What you describe

ConceptIn one lineReference
PropertyA reusable value type: string.uuid, an enum, a union, a dateProperties
SchemaTyped structure built from fields: entities, requests, responsesSchemas
OperationWhat happens: one input, one output, failures, eventsOperations
EventA business occurrence with an optional payloadEvents
FailureA named, typed way an operation can failOperations
PolicyA reusable rule or required context, not a framework guardPolicies
WorkflowOrchestration over operations and eventsWorkflows
ViewA user-facing composition of parts on a surfaceViews
Group / featureOwnership and registration scopesGroups

Start with the Quick start, then keep the Cookbook open while you work. The canonical vocabulary is the full reference.

Rules that keep authoring honest

  • Register before you reference. A reusable declaration must be registered on a group before another declaration can use it. Registration returns a lightweight typed ref.
  • Meaning, not representation. Say "this field is a UUID and is generated by the system", not "this column is uuid with a default". Packs decide the representation.
  • Names are semantic. Group, app and registration names never contain .; the compiler qualifies identities (users + User becomes users.User).
  • One input, one output. An operation takes a single input (a schema or named fields) and returns a single output.
  • No hidden conventions. If generated code needs a fact, there is a place in the model to state it.

Agents

Authoring is deliberately explicit, so agents do well with it. Run dryv docs authoring for the built-in tips and dryv docs agents for the working rules.

Explore this section

Search in