# gritzko/swarm

JavaScript replicated model (M of MVC) library

Repository: https://github.com/gritzko/swarm
Canonical: https://ross.abutalabs.com/products/gritzko-swarm
Homepage: http://swarmdb.net/
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2024-10-29T14:02:46+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4879, "days_push": 673, "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 2666, forks 99 (observed 2026-08-28T04:07:09.147074+00:00)

## What it is
Swarm.js is a JavaScript replicated model (M of MVC) library implementing real-time data sync based on CRDTs and Replicated Object Notation (RON). It provides offline-capable, conflict-free data replication for web and mobile apps, like 'git for data' with real-time merging.

## Use cases
- sync data between client and server in real time
- build collaborative editing features
- make my app work offline and re-sync on reconnect
- replicate an object model across devices without merge conflicts
- self-hosted alternative to Firebase realtime sync
- cache data locally in a web or React Native app

## When to choose
- you need offline-first, conflict-free data sync in JavaScript
- you want real-time collaboration with automatic merging
- you prefer self-hosting over Firebase-style BaaS

## When to avoid
- you need an actively developed JavaScript implementation - the README marks this code as historical, pointing to RDX C/Go successors
- you need a production-proven general-purpose database
- you are unwilling to work with CRDT concepts and RON internals

## Facets
- artifact type: library
- maturity: maintenance
- function: database, state-management, websocket, serialization
- domain: microservices, web-development, databases
- platform: browser, cross-platform
- tags: crdt, offline-first, data-sync, replicated-data, real-time-collaboration, ron, real-time, javascript, nodejs

## Member repositories
- gritzko/swarm (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:09.147074+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:18:16.008307+00:00, confidence not recorded.
  - readme: https://github.com/gritzko/swarm (fetched 2026-08-28T04:07:09.147074+00:00, sha d956fd83a8fb)
  - homepage: http://swarmdb.net/ (fetched 2026-08-29T10:01:14.501937+00:00, sha 65d8c170c85f)
  - site_page: https://swarmdb.net/about-us (fetched 2026-08-29T10:01:14.510790+00:00, sha d55bb766761c)
  - registry_npm: https://registry.npmjs.org/swarm (fetched 2026-08-29T10:01:14.512703+00:00, sha 8e76f22e0c2b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
