# Wisembly/basil.js

The missing Javascript smart persistent layer

Repository: https://github.com/Wisembly/basil.js
Canonical: https://ross.abutalabs.com/products/basiljs
Homepage: https://wisembly.github.io/basil.js
Language: JavaScript
License: NOASSERTION
License Family: other
Last push: 2022-12-07T12:42:32+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4576, "days_push": 1365, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1970, forks 62 (observed 2026-08-28T04:06:00.762085+00:00)

## What it is
Basil.js is a JavaScript library providing a unified API over localStorage, sessionStorage, cookies, and in-memory storage. It automatically selects the best available storage mechanism and gracefully handles disabled cookies, full storage, and other native exceptions.

## Use cases
- persist user preferences in the browser with automatic storage fallback
- store JavaScript objects client-side without manual JSON serialization
- handle browsers where cookies or localStorage are disabled
- namespace and manage client-side key-value data
- wrap cookies, localStorage, and sessionStorage behind one API

## When to choose
- you need resilient client-side persistence that survives storage failures
- you want one API across cookies, localStorage, and sessionStorage
- you need namespaced storage with per-key storage selection

## When to avoid
- you need server-side or cross-device persistence
- you only target modern browsers and prefer the native Storage API directly
- you need large-scale structured storage like IndexedDB

## Facets
- artifact type: library
- maturity: maintenance
- function: caching, serialization
- domain: web-development, frontend, developer-tools
- platform: browser
- tags: localstorage, cookies, session-storage, client-side-persistence, storage-fallback, javascript

## Member repositories
- Wisembly/basil.js (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:00.762085+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:05:07.510369+00:00, confidence not recorded.
  - readme: https://github.com/Wisembly/basil.js (fetched 2026-08-28T04:06:00.762085+00:00, sha 0ee17c769a4b)
  - homepage: https://wisembly.github.io/basil.js (fetched 2026-08-29T10:44:59.928290+00:00, sha 4d84afb8578c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
