# coresmart/persistencejs

persistence.js is an asynchronous Javascript database mapper library. You can use it in the browser, as well on the server (and you can share data models between them).

Repository: https://github.com/coresmart/persistencejs
Canonical: https://ross.abutalabs.com/products/persistencejs
Homepage: http://persistencejs.org
Language: JavaScript
License Family: other
Last push: 2017-08-08T14:23:16+00:00

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

## Adoption (not part of the score)
Stars 1711, forks 233 (observed 2026-08-28T04:05:25.734195+00:00)

## What it is
persistence.js is an asynchronous JavaScript object-relational mapper (ORM) library usable in both the browser and on Node.js servers, with shared data models between them. It supports HTML5 WebSQL, Google Gears, MySQL (via node-mysql), and in-memory/localStorage data stores, with plugins for full-text search, schema migrations, and server synchronization.

## Use cases
- store data offline in the browser with WebSQL
- share data models between browser and node.js server
- map JavaScript objects to a relational database asynchronously
- sync client-side database with a remote server
- run database schema migrations in JavaScript
- add full-text search to a client-side database

## When to choose
- building an older mobile web app needing offline storage on WebKit browsers
- you want one ORM working in both browser and Node.js
- you need client-server database synchronization in JavaScript

## When to avoid
- starting a new modern project (WebSQL and Gears are deprecated)
- you need an actively maintained library with a license file
- you need Promise/async-await based APIs
- targeting browsers without WebSQL support

## Facets
- artifact type: library
- maturity: abandoned
- function: orm, database, database-driver, search-engine, serialization
- domain: web-development, databases, frontend, backend, mobile-development
- platform: browser, cross-platform
- tags: object-relational-mapper, websql, offline-storage, data-sync, migrations, javascript, nodejs

## Member repositories
- coresmart/persistencejs (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:25.734195+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:34:58.517719+00:00, confidence not recorded.
  - readme: https://github.com/coresmart/persistencejs (fetched 2026-08-28T04:05:25.734195+00:00, sha a0ae1b1643fa)
  - homepage: http://persistencejs.org (fetched 2026-08-29T11:11:21.092276+00:00, sha 2f409cd6aa8b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
