# nbubna/store

A better way to use localStorage and sessionStorage

Repository: https://github.com/nbubna/store
Canonical: https://ross.abutalabs.com/products/nbubna-store
Language: JavaScript
License: MIT
License Family: permissive
Topics: storage, sessionstorage, localstorage, namespace, browsers, javascript
Last push: 2026-08-23T15:12:15+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 4905, "days_push": 10, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1945, forks 114 (observed 2026-08-28T04:05:57.711625+00:00)

## What it is
store2 is a small JavaScript library that provides a friendly, feature-filled API over the browser's localStorage and sessionStorage. It adds JSON serialization, namespacing, transactions, and convenience methods like getAll, each, and transact on top of the raw Web Storage API.

## Use cases
- store and retrieve JSON data in localStorage without manual stringify/parse
- namespace browser storage keys to avoid collisions
- run transactional updates on stored values
- iterate over all stored key/value pairs
- manage sessionStorage with the same API as localStorage
- clear or bulk-set storage entries safely

## When to choose
- you want a nicer API over localStorage/sessionStorage in the browser
- you need automatic JSON serialization and namespacing for web storage
- you want a tiny dependency-free storage helper for a frontend app

## When to avoid
- you need storage beyond the browser (Node.js, native apps)
- you need large-scale or indexed storage where IndexedDB is more appropriate
- you only need raw localStorage and don't want any wrapper

## Facets
- artifact type: library
- maturity: stable
- function: serialization, developer-tools
- domain: web-development, frontend, developer-tools
- platform: browser, cross-platform
- tags: localstorage, sessionstorage, web-storage, namespacing, browser-storage, javascript

## Member repositories
- nbubna/store (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:57.711625+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-30T03:07:58.408276+00:00, confidence not recorded.
  - readme: https://github.com/nbubna/store (fetched 2026-08-28T04:05:57.711625+00:00, sha 897e975c2576)
- Data as of 2026-08-30T08:39:29.467469+00:00.
