[API reference](https://evolu.dev/docs/api-reference) › [@evolu/common](https://evolu.dev/docs/api-reference/common) › [local‑first/Protocol](https://evolu.dev/docs/api-reference/common/local-first/Protocol) › ProtocolMessageRangesMaxSize

```ts
const ProtocolMessageRangesMaxSize: between(
  3_000,
  100_000,
)(Int);
```

Defined in: [packages/common/src/local-first/Protocol.ts:324](https://github.com/evoluhq/evolu/blob/e7144e2bbe9069362b62dec1b64a8aa922b8f1b0/packages/common/src/local-first/Protocol.ts#L324)

Protocol message ranges maximum size.

Defines the upper limit for how large the ranges section of a protocol
message can be. Implementations must enforce a maximum size between 3KB and
100KB to ensure compatibility.

The upper bound is set to ensure ranges fit within the default 1MB
[defaultProtocolMessageMaxSize](https://evolu.dev/docs/api-reference/common/local-first/Protocol/variables/defaultProtocolMessageMaxSize), maintaining compatibility between all
clients and relays.