> ## Documentation Index
> Fetch the complete documentation index at: https://docs.yield.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Security deployment options

> Combine client-side Shield, server-side Defense Mode, and the standalone binary to match your integration's security posture.

Every option below runs the same Shield validation engine in a different place, and there are no separate product tiers. Each enforcement point you add is another independent check, and you can combine them to match how your integration is deployed.

## Enforcement points

| Option | Where it runs | What it adds |
| - | - | - |
| **Server-side (Defense Mode)** | Inside the Earn API's transaction pipeline | Runs inside the API in Monitor mode (validate and log) by default; in Block mode, transactions that fail validation are rejected before they're returned. See [Defense Mode](https://docs.yield.xyz/documentation/security/shield/index.md#defense-mode). |
| **Client-side, TypeScript library** | In your Node.js or browser process, after you receive a transaction | A second, independent check before signing; catches anything altered in transit or by a compromised intermediate layer. See [Shield integration](https://docs.yield.xyz/documentation/security/shield/integration.md). |
| **Client-side, standalone binary** | Any language, any environment, including restricted or air-gapped hosts | The same validation logic with no Node.js dependency and no network calls, since the vault registry is embedded in the binary. |

Running server-side Defense Mode plus a client-side check (library or binary) gives you two independent checkpoints: one inside the API, one in your own signing flow. Defense Mode needs no code changes on your end; a client-side check adds protection against tampering after the API responds.

## Choosing a client-side option

> [tab] TypeScript / Node.js
>
> Use the `@yieldxyz/shield` npm package directly in a Node.js backend, a server-side rendering layer, or a browser bundle. This is the simplest path for wallets, web apps, and hosted widget integrations.

> [tab] Any other language
>
> Use the standalone binary via its JSON-over-stdin/stdout protocol from Go, Python, Rust, or any language that can spawn a subprocess. This is the path for exchanges, custodians, and backends not written in TypeScript.

> [tab] Restricted or air-gapped
>
> Because the binary is self-contained and validates fully locally, it can run inside compiled backends, locked-down hosts, or air-gapped signing environments with no outbound network access.

> [!NOTE]
>
> For dedicated on-premises deployments or custom policy control beyond the standalone binary, contact the [Yield.xyz team](mailto:hello@yield.xyz) to scope the setup.

## Next steps

> [card] [Shield integration](https://docs.yield.xyz/documentation/security/shield/integration.md)
>
> Library, standalone binary, and language guides

> [card] [Security overview](https://docs.yield.xyz/documentation/security/overview.md)
>
> How every piece fits together


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.