Skip to main content

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.

The Storage.extension() adapter uses the browser’s extension storage API 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:
{
  "permissions": ["storage"]
}
Optionally, you can also enable the unlimitedStorage permission to allow your extension to use more than 5MB of storage.
{
  "permissions": ["storage", "unlimitedStorage"]
}

Example

import { Storage } from "@chainpatrol/sdk";

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