---
title: Installation
description: Add Logic SDK and choose a database adapter for mutations.
---

Logic SDK is a TypeScript package for Node 24 or newer, Bun, and Cloudflare Workers.

## 1. Add the package

In your project folder, run this command.

```bash
npm install logic-sdk zod
```

Your `package.json` lists `logic-sdk` and `zod`.

- **Schemas.** Use any Standard Schema library for input and output. This manual uses Zod.
- **TypeScript.** The project tests against TypeScript 7.

## 2. Choose a database adapter

Mutations need an adapter with interactive transactions. D1 and HTTP-only drivers cannot hold a transaction open.

- **Drizzle.** Use `logic-sdk/drizzle/pg` for Postgres or `logic-sdk/drizzle/sqlite` for SQLite on disk.
- **Other ORMs.** See [Adapters](/docs/reference/adapters).

## See also

- [Quickstart](/docs/quickstart)
- [API](/docs/reference/api)
