# @wora/relay-store

> @wora Relay Store

Latest version **8.0.0** (published 2025-10-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install @wora/relay-store
pnpm add @wora/relay-store
yarn add @wora/relay-store
bun add @wora/relay-store
```

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 8.0.0 |
| Published | 2025-10-03 |
| First published | 2019-07-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 33 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 176 |
| Author | morrys |
| Maintainers | morrys |
| Keywords | cache, wora, cache-persist, inmemory, relay |

## Links

- npm: https://www.npmjs.com/package/@wora/relay-store
- Repository: https://github.com/morrys/wora
- Issues: https://github.com/morrys/wora/issues
- Funding: https://github.com/sponsors/morrys
- npm.io page: https://npm.io/package/@wora/relay-store

## Dependencies (2)

- [tslib](https://npm.io/package/tslib.md) ^1.11.1
- [@wora/cache-persist](https://npm.io/package/@wora/cache-persist.md) ^2.2.1

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 8.0.0 (latest) — 2025-10-03
- 8.0.0-rc.1 (beta) — 2025-09-30
- 7.0.0 — 2022-05-19
- 6.0.1 — 2022-04-14
- 6.0.0 — 2022-01-18
- 6.0.0-rc.1 — 2021-11-29
- 5.0.1 — 2021-04-27
- 5.0.0 — 2021-04-27
- 4.1.0 — 2021-01-29
- 4.0.0 — 2021-01-19
- 4.0.0-rc.1 — 2021-01-09
- 3.2.0 — 2020-05-02
- 3.1.0 — 2020-04-18
- 3.0.1 — 2020-04-04
- 3.0.0 — 2020-04-04
- … 11 more at https://npm.io/package/@wora/relay-store/versions

## README

# [@wora/relay-store](https://github.com/morrys/wora)


## Installation

Install @wora/relay-store using yarn or npm:

```
yarn add @wora/relay-store
```



### Examples

```ts
import { RecordSource, Store } from '@wora/relay-store';
import { CacheOptions } from "@wora/cache-persist";
import { Environment } from 'relay-runtime';

const defaultTTL: number = 10 * 60 * 1000; // optional, default
const persistOptions: CacheOptions = { defaultTTL }; // optional, default
const persistOptionsRecords: CacheOptions = {}; // optional, default
const recordSource = new RecordSource(persistOptionsRecords);
const store = new Store(recordSource, persistOptions);
const environment = new Environment({network, store});

// ...

await store.hydrate();

```


## Documentation

Follow the link: [Relay Store Documentation](https://morrys.github.io/wora/docs/relay-store)

---
_Source: https://npm.io/package/@wora/relay-store · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
