# unjs/unstorage

💾 Unstorage provides an async Key-Value storage API with conventional features like multi driver mounting, watching and working with metadata, dozens of built-in drivers and a tiny core.

Repository: https://github.com/unjs/unstorage
Canonical: https://ross.abutalabs.com/products/unstorage
Homepage: https://unstorage.unjs.io
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2026-08-26T03:53:05+00:00

## Health v2 (maintenance only)
Score: 91/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 76, longevity 100
- inputs: {"age_days": 2005, "days_push": 7, "days_rel": 160, "gap_med": 16.0, "n_releases_24m": 21}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2637, forks 189 (observed 2026-08-28T04:07:06.336581+00:00)

## What it is
Unstorage is an async key-value storage library for JavaScript with a unified API across 30+ built-in drivers (memory, filesystem, browser, databases, cloud platforms). It supports driver mounting under key prefixes, storage watching, JSON auto-serialization, binary values, and snapshots, with a tiny tree-shakable core.

## Use cases
- abstract storage behind one API across node, browser and workers
- mount filesystem and redis storage under different key prefixes
- cache data with pluggable backend drivers
- store and retrieve JSON or binary blobs asynchronously
- watch storage keys for changes
- export and restore storage snapshots

## When to choose
- you need a runtime-agnostic key-value abstraction with many backends
- you want to swap storage drivers without changing application code
- you need a tiny, tree-shakable storage layer for edge/serverless environments

## When to avoid
- you need full SQL queries or relational data modeling
- you need a distributed cache with clustering features out of the box
- you need strong transactional guarantees

## Facets
- artifact type: library
- maturity: stable
- function: caching, file-system, serialization, http-server
- domain: developer-tools, web-development, databases, backend
- platform: bun, browser, cross-platform
- tags: key-value-storage, storage-abstraction, multi-driver, universal-storage, async-api, nodejs, deno, typescript

## Member repositories
- unjs/unstorage (main) score 91

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:06.336581+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:19:18.892218+00:00, confidence not recorded.
  - readme: https://github.com/unjs/unstorage (fetched 2026-08-28T04:07:06.336581+00:00, sha f8590254aa13)
  - homepage: https://unstorage.unjs.io (fetched 2026-08-29T10:02:30.448208+00:00, sha dd36ec81a53d)
  - registry_npm: https://registry.npmjs.org/unstorage (fetched 2026-08-29T10:02:30.457332+00:00, sha 40d67854cc3d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
