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

# Extension

The `Storage.extension()` adapter uses the browser's [extension storage API](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/storage) to store data.
Use this adapter if you are building a browser extension for Chrome, Firefox, or Edge.

## Pre-requisites

You will need to enable the `storage` permission in your extension's `manifest.json` file:

```json theme={null}
{
  "permissions": ["storage"]
}
```

Optionally, you can also enable the `unlimitedStorage` permission to allow your extension to use more than 5MB of storage.

```json theme={null}
{
  "permissions": ["storage", "unlimitedStorage"]
}
```

## Example

```js theme={null}
import { Storage } from "@chainpatrol/sdk";

const storage = Storage.extension({
  quota: 1024 * 1024 * 5, // 5MB
});
```
