# Quick start

## 1. Install

TypeScript:

```bash
npm install -D @dryvcode/author @dryvcode/compiler
curl -fsSL https://dryvcode.com/install.sh | sh
```

Python 3.11+:

```bash
uv add --dev dryv-author dryv-compiler
curl -fsSL https://dryvcode.com/install.sh | sh
```

The `install.sh` line installs the `dryv` CLI. Today it has a Linux x64 build only; see [Installation](/docs/usage/installation) for other options.

The TypeScript compiler loads `.ts` files directly, so use Node 22.18+ or Bun, and erasable TypeScript only (no `enum`, no `namespace`).

## 2. Declare something

```ts
// dryv/contracts/index.ts
import {
  body,
  dryv,
  field,
  http,
  operation,
  property,
  respond,
  schema,
  storage,
} from "@dryvcode/author";

const shop = dryv.group({ name: "shop" });

const values = shop.properties({
  Id: property.string.uuid(),
  Name: property.string(),
});

const schemas = shop.schemas({
  Product: schema({
    id: field(values.Id).system(),
    name: field(values.Name),
  }).facets({ storage: storage("products").primaryKey("id") }),
});

const CreateProduct = operation()
  .role("create")
  .input(schemas.Product)
  .output(schemas.Product);
CreateProduct.facets({
  http: http("POST", "/products")
    .input(CreateProduct.in, body())
    .output(CreateProduct.out, respond(201)),
});
shop.operations({ CreateProduct });

export default dryv.app({ name: "shop" }).groups(shop);
```

The Python version uses the same concepts with Pythonic names. See the [Python author](/authoring/sdk/python) and the TypeScript to Python table there.

## 3. Point a project at it

```bash
dryv init --author typescript --author-path dryv/contracts/index.ts --yes
```

`dryv init` also writes `dryv/README.md` and an `AGENTS.md` block so people and agents know how the project works.

## 4. Compile, validate, plan

```bash
dryv build      # compile your contracts to Runtime IR
dryv validate   # check it against the engine
dryv plan       # see which files would be generated (writes nothing)
```

If `dryv build` fails, the error points at the line of your contract. See [Troubleshooting](/authoring/troubleshooting).

## Where next

- [A CRUD resource](/authoring/cookbook/crud-resource): the full pattern with projections and HTTP
- [Conventions](/authoring/conventions): naming and structure that scale
- [TypeScript author](/authoring/sdk/typescript): every helper
