> For the complete documentation index, see [llms.txt](https://rangle.gitbook.io/redux-beacon/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rangle.gitbook.io/redux-beacon/index-2.md).

# Extensions

Both [createMiddleware](broken://pages/-L8oOdRtI5NPRSDh9ux6) and [createMetaReducer](/redux-beacon/index-1/create-meta-reducer.md) accept an **optional** extensions object as their third parameter. If provided, an extensions object should have at least one of the following properties:

```javascript
{
  logger,
  offlineStorage,
}
```

Each property corresponds to a different type of extension that Redux Beacon supports:

* [`offlineStorage` extensions](/redux-beacon/index-2.md#offlinestorage-extensions)
* [`logger` extensions](/redux-beacon/index-2.md#logger-extensions)

As an added convenience we maintain some prebuilt extension constructors:

| Extension Type   | Extension Constructor                                               |
| ---------------- | ------------------------------------------------------------------- |
| `logger`         | [logger](/redux-beacon/index-2/logger.md)                           |
| `offlineStorage` | [offlineWeb](/redux-beacon/index-2/offline-web.md)                  |
| `offlineStorage` | [offlineReactNative](/redux-beacon/index-2/offline-react-native.md) |

## logger extensions

`logger` extensions provide a means to log events after they are created.

## offlineStorage extensions

`offlineStorage` extensions provide a means to record analytics events even when your app is offline. An `offlineStorage` extension should have three methods: `saveEvents`, `purgeEvents`, and `isConnected`.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://rangle.gitbook.io/redux-beacon/index-2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
