# fortunejs/fortune

Non-native graph database abstraction layer for Node.js and web browsers.

Repository: https://github.com/fortunejs/fortune
Canonical: https://ross.abutalabs.com/products/fortune
Homepage: http://fortune.js.org
Language: JavaScript
License: MIT
License Family: permissive
Topics: database-adapter, data-access-layer, database-abstraction, graph-database
Last push: 2024-07-12T07:21:52+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": 4755, "days_push": 782, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1450, forks 116 (observed 2026-08-28T04:04:45.817059+00:00)

## What it is
Fortune.js is a non-native graph database abstraction layer for Node.js and web browsers that implements graph-like features such as bi-directional relationships, inverse updates, and referential integrity at the application level. It provides a common CRUD interface over pluggable database adapters including in-memory, IndexedDB, MongoDB, Postgres, and NeDB.

## Use cases
- add bi-directional relationships to any database
- make application storage portable across database backends
- share the same data models between server and client
- maintain referential integrity and inverse updates automatically
- build a data layer for a micro-blogging or social app
- persist data in the browser with IndexedDB

## When to choose
- you need graph-like relationships without running a native graph database
- you want to swap database adapters without changing application code
- you want one data model shared across Node.js server and browser client

## When to avoid
- you need native graph database query performance or traversal algorithms
- you need a full-featured ORM with complex query building and migrations
- you need an actively developed project with frequent releases

## Facets
- artifact type: library
- maturity: maintenance
- function: database, orm
- domain: databases, web-development, backend
- platform: browser
- tags: database-abstraction, graph-database, data-access-layer, database-adapter, referential-integrity, browser-storage, nodejs, javascript

## Member repositories
- fortunejs/fortune (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:45.817059+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-30T04:35:55.815954+00:00, confidence not recorded.
  - readme: https://github.com/fortunejs/fortune (fetched 2026-08-28T04:04:45.817059+00:00, sha 7a5a9ae60a47)
  - homepage: http://fortune.js.org (fetched 2026-08-29T11:45:42.615069+00:00, sha e6d6ea9b8046)
  - site_page: http://fortune.js.org/api (fetched 2026-08-29T11:45:42.624916+00:00, sha de3de48abd40)
  - site_page: http://fortune.js.org/changelog (fetched 2026-08-29T11:45:42.627568+00:00, sha 056c020e2b1b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
