# @dxos/random-access-storage

> Multiple random storage types.

Latest version **0.16.0** (published 2026-10-19) · FSL-1.1-Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @dxos/random-access-storage
pnpm add @dxos/random-access-storage
yarn add @dxos/random-access-storage
bun add @dxos/random-access-storage
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.16.0 |
| Published | 2026-10-19 |
| First published | 2022-11-04 |
| Weekly downloads | 0 |
| License | FSL-1.1-Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 16 |
| Unpacked size | 376 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 532 |
| Author | DXOS.org |
| Maintainers | richburdon, marik_d, wittjosiah, dxos-bot, mykola-vrmchk |

## Links

- npm: https://www.npmjs.com/package/@dxos/random-access-storage
- Repository: https://github.com/dxos/dxos
- Homepage: https://dxos.org
- Issues: https://github.com/dxos/dxos/issues
- npm.io page: https://npm.io/package/@dxos/random-access-storage

## Dependencies (16)

- [del](https://npm.io/package/del.md) ^5.1.0
- [once](https://npm.io/package/once.md) ^1.4.0
- [pify](https://npm.io/package/pify.md) ~5.0.0
- [inherits](https://npm.io/package/inherits.md) ^2.0.3
- [@dxos/log](https://npm.io/package/@dxos/log.md) 0.16.0
- [next-tick](https://npm.io/package/next-tick.md) ^1.0.0
- [@dxos/util](https://npm.io/package/@dxos/util.md) 0.16.0
- [@dxos/async](https://npm.io/package/@dxos/async.md) 0.16.0
- [@dxos/debug](https://npm.io/package/@dxos/debug.md) 0.16.0
- [buffer-from](https://npm.io/package/buffer-from.md) ^0.1.1
- [buffer-alloc](https://npm.io/package/buffer-alloc.md) ^1.1.0
- [@dxos/node-std](https://npm.io/package/@dxos/node-std.md) 0.16.0
- [@dxos/invariant](https://npm.io/package/@dxos/invariant.md) 0.16.0
- [random-access-file](https://npm.io/package/random-access-file.md) ^2.2.1
- [random-access-memory](https://npm.io/package/random-access-memory.md) ^4.1.0
- [random-access-storage](https://npm.io/package/random-access-storage.md) ^1.3.0

## Recent versions

- 0.16.0 (latest) — 2026-10-19
- 0.16.0-next-60712ab191a99ba90316cc4be753e9e11b17100a (next) — 2026-10-19
- 0.9.1-main.c7dcc2e112 (main) — 2026-06-19
- 0.7.5-labs.d199c0f (labs) — 2025-03-12
- 0.16.0-next-b440559823fb87ed1a4590dab21ae924d4d76c3a — 2026-10-19
- 0.14.0 — 2026-10-10
- 0.13.0 — 2026-10-07
- 0.12.0-next-73daef452f1464b62efdbca75fb0067c1066f264 — 2026-08-27
- 0.12.0-next-2800d0376abcc62d5544afdd744b16b2b960434e — 2026-08-27
- 0.12.0-next-2be9f24c465d98f4bd186aa03ece788902e6c17a — 2026-08-27
- 1.0.0-next-bbabc02363f18d7643ea4160e3a7a7809870fd0d — 2026-08-10
- 0.11.1 — 2026-08-05
- 0.11.0 — 2026-08-05
- 0.10.0 — 2026-07-02
- 0.9.1-staging.ee54ba693a — 2026-07-02
- … 2445 more at https://npm.io/package/@dxos/random-access-storage/versions

## README

# Random Access Storage

Factory for creating platform-specific [random-access-storage](https://github.com/random-access-storage) files.

- `browser`
  - `StorageType.RAM`: [random-access-memory](https://github.com/random-access-storage/random-access-memory).
  - `StorageType.CHROME`: Store files using [random-access-chrome-file](https://github.com/dxos/random-access-chrome-file) and the [Chromium File System API](https://web.dev/native-file-system/).
  - `StorageType.FIREFOX`: Store files using [random-access-idb-mutable-file](https://github.com/random-access-storage/random-access-idb-mutable-file) and the [Firefox IDBMutableFile](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile).
  - `StorageType.IDB`: Store files in an IDB database using [random-access-idb](https://github.com/random-access-storage/random-access-idb).
- `node`
  - `StorageType.RAM`: [random-access-memory](https://github.com/random-access-storage/random-access-memory).
  - `StorageType.NODE`: Store files in the real filesystem [random-access-file](https://github.com/random-access-storage/random-access-file). Default.

## Development

Browser extensions to manage and inspect storage:

- https://addons.mozilla.org/en-US/firefox/addon/clear-browsing-data/?src=search
- https://chrome.google.com/webstore/detail/clear-cache-for-chrome/lcebokhepdpopanpieoopnjiehmoabfp?hl=en-US

---
_Source: https://npm.io/package/@dxos/random-access-storage · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
