---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/storage/opfs/interfaces/OpfsSpoolReaderOptions.md
description: 'Constructor options for [`OpfsSpoolReader`](https://adk.nht.io/api/@nhtio/adk/batteries/storage/opfs/classes/OpfsSpoolReader).'
---

# Interface: OpfsSpoolReaderOptions

Defined in: [batteries/storage/opfs/index.ts:161](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/batteries/storage/opfs/index.ts#L161)

Constructor options for [OpfsSpoolReader](../classes/OpfsSpoolReader.md).

## Properties

| Property                                                           | Type     | Default value               | Description                                                                                                                                                                                                                                                                                                             | Defined in                                                                                                                      |
| ------------------------------------------------------------------ | -------- | --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
|  `streamThresholdBytes?` | `number` | `10 * 1024 * 1024` (10 MiB) | Byte-length threshold that switches between eager and streaming modes. **Remarks** - Below the threshold → eager (whole-file in memory). - At or above the threshold → streaming (line-offset index + per-line slice reads). Set to `0` to force streaming mode; set to `Number.POSITIVE_INFINITY` to force eager mode. | [batteries/storage/opfs/index.ts:173](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/batteries/storage/opfs/index.ts#L173) |
