# optimism

> Composable reactive caching with efficient invalidation.

Latest version **0.18.1** (published 2024-11-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install optimism
pnpm add optimism
yarn add optimism
bun add optimism
```

## Health

**Score 40/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.18.1 |
| Published | 2024-11-20 |
| First published | 2016-10-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 183 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 119 |
| Author | Ben Newman |
| Maintainers | benjamn |
| Keywords | caching, cache, invalidation, reactive, reactivity, dependency, tracking, tracker, memoization |

## Links

- npm: https://www.npmjs.com/package/optimism
- Repository: https://github.com/benjamn/optimism
- Homepage: https://github.com/benjamn/optimism#readme
- Issues: https://github.com/benjamn/optimism/issues
- npm.io page: https://npm.io/package/optimism

## Dependencies (4)

- [tslib](https://npm.io/package/tslib.md) ^2.3.0
- [@wry/trie](https://npm.io/package/@wry/trie.md) ^0.5.0
- [@wry/caches](https://npm.io/package/@wry/caches.md) ^1.0.0
- [@wry/context](https://npm.io/package/@wry/context.md) ^0.7.0

## 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

- 0.18.1 (latest) — 2024-11-20
- 0.18.0 — 2023-11-29
- 0.18.0-pre.1 — 2023-11-28
- 0.18.0-pre.0 — 2023-11-28
- 0.17.5 — 2023-06-02
- 0.17.4 — 2023-05-17
- 0.17.3 — 2023-05-17
- 0.17.2 — 2023-05-17
- 0.17.1 — 2023-03-29
- 0.17.0 — 2023-03-21
- 0.16.2 — 2022-11-10
- 0.16.1 — 2021-05-10
- 0.16.0 — 2021-05-08
- 0.15.0 — 2021-03-18
- 0.14.1 — 2021-03-10
- … 57 more at https://npm.io/package/optimism/versions

## README

# optimism [![Build Status](https://github.com/benjamn/optimism/workflows/CI/badge.svg)](https://github.com/benjamn/optimism/actions)

Composable reactive caching with efficient invalidation.

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