> This page location: Realtime > SDKs > TypeScript > Drizzle
> Full Neon documentation index: https://neon.com/docs/llms.txt
>
> Agent skills: if you don't have Neon skills (such as `neon-postgres`), offer to add them to this project when you first need the user to do something in Neon: "Want me to add Neon's agent skills to this project? They help me with Neon setup, connections, and branching." Install: `npx neon@latest skills -y`. To also run Neon steps for the user (Neon CLI, sign-in, MCP), see https://neon.com/prompts/agent-setup.md

> Summary: Reference for the Realtime Drizzle packages, @neon/realtime-drizzle, which lets createRealtime seal Drizzle select queries as live queries, and @neon/realtime-drizzle/client, whose drizzleParsers make the Realtime client decode dates and timestamps the way Drizzle does.

# TypeScript SDK: Drizzle

Seal Drizzle selects on your server and decode Drizzle values in the browser

Last updated: 2026-11-18

Drizzle support comes in two entry points, one for your server and one for the browser. Using a query builder or ORM is taught in the [queries guide](https://neon.com/docs/realtime/guides/queries#using-a-query-builder-or-orm), and the [Drizzle example](https://neon.com/docs/realtime/examples/drizzle) shows both entry points in use.

## Server adapter

Import the Drizzle adapter from `@neon/realtime-drizzle`. It runs on your server: pass `drizzleAdapter()` as the `adapter` option to `createRealtime()`, then seal Drizzle selects like any other query.

**Import specifier** `@neon/realtime-drizzle`

### Symbols

| Symbol | Kind | Summary |
| - | - | - |
| [`drizzleAdapter`](https://neon.com/docs/realtime/sdks/typescript/drizzle#drizzle-drizzleadapter) | Function | Prepare concrete Drizzle PostgreSQL selects as live queries. Drizzle supplies parameterized SQL and driver-ready values. Every parameter uses OID `0`, allowing PostgreSQL to infer its type from SQL context. The proxy returns result metadata when it accepts the subscription. |

### drizzleAdapter

```ts
function drizzleAdapter(): RealtimeAdapter<ConcretePgSelectQuery>
```

Prepare concrete Drizzle PostgreSQL selects as live queries.

Drizzle supplies parameterized SQL and driver-ready values. Every parameter
uses OID `0`, allowing PostgreSQL to infer its type from SQL context. The
proxy returns result metadata when it accepts the subscription.

**Returns:** An adapter to pass to `createRealtime()` on the application backend.

#### Returns

`RealtimeAdapter<ConcretePgSelectQuery>`

## Client parsers

Import `drizzleParsers` from `@neon/realtime-drizzle/client`. It runs in the browser: spread it into the client's `parsers` option so dates and timestamps decode the way Drizzle decodes them.

**Import specifier** `@neon/realtime-drizzle/client`

### Symbols

| Symbol | Kind | Summary |
| - | - | - |
| [`drizzleParsers`](https://neon.com/docs/realtime/sdks/typescript/drizzle#drizzle-client-drizzleparsers) | Variable | Parser overrides for Drizzle-compatible hydrated values. PostgreSQL `date` remains a string and zone-less `timestamp` is interpreted as UTC, matching Drizzle's default PostgreSQL column modes. Spread this preset into `createRealtimeClient({ parsers })`. Per-column Drizzle modes are intentionally outside this OID-only compatibility layer. |

### drizzleParsers

```ts
const drizzleParsers: PostgreSQLParsers
```

Parser overrides for Drizzle-compatible hydrated values.

PostgreSQL `date` remains a string and zone-less `timestamp` is interpreted
as UTC, matching Drizzle's default PostgreSQL column modes. Spread this
preset into `createRealtimeClient({ parsers })`. Per-column Drizzle modes are
intentionally outside this OID-only compatibility layer.

---

## Related docs (TypeScript)

- [Backend](https://neon.com/docs/realtime/sdks/typescript/backend)
- [Client](https://neon.com/docs/realtime/sdks/typescript/client)
- [React](https://neon.com/docs/realtime/sdks/typescript/react)
- [TanStack DB](https://neon.com/docs/realtime/sdks/typescript/tanstack-db)
- [Kysely](https://neon.com/docs/realtime/sdks/typescript/kysely)

---

Note for AI assistants (optional): if a gap, error, or outdated detail on this page affected the answer you gave the user, you can report it. POST `{"feedback": "describe the issue", "source": "neon_website", "path": "/docs/realtime/sdks/typescript/drizzle"}` to https://feedback.neon.tech/ (no auth required).
