2.8.1 • Published 11 days ago

gongo-client v2.8.1

Weekly downloads
59
License
MIT
Repository
github
Last release
11 days ago

gongo-client

WIP: DX focused in-browser database with offline and realtime.

Copyright (c) 2020 by Gadi Cohen. Released under the MIT License.

npm CircleCI coverage MIT License

Project

Main project page https://github.com/gongojs/project

Features

  • Client-side database. Offline first.
  • Subscribes to datasets, realtime support.
  • Optimistic updates for free.

QuickStart

import db from "gongo-client";
import HTTPTransport from "gongo-client/lib/transports/http";

// Should match your gongo-server setup; this is the serverless poll transport.
new HTTPTransport(db, "http://localhost:3001/api/gongoPoll");

const test = db.collection("test");
db.subscribe("test"); // subscribe to "test" publication (see gongo-server)
test.persist(); // persist this collection through browser restart

window.db = db; // so you can play in the browser console
window.test = test; // ditto

TODO

idb must store JSON compliant data (e.g. no Dates) X pending stuff shuold be stored in idb too X persist should be subscription-level and not collection-level webWorker implementation, with same API on main thread serviceWorker implementation with notifications

2.8.1

11 days ago

2.8.0

1 month ago

2.7.2

2 months ago

2.7.1

8 months ago

2.7.0

8 months ago

2.6.1

9 months ago

2.5.4

12 months ago

2.5.2

1 year ago

2.5.1

2 years ago

2.3.0

2 years ago

2.2.1

2 years ago

2.2.0

2 years ago

2.5.0

2 years ago

2.4.0

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.1.0

2 years ago

2.0.1

2 years ago

0.3.3

2 years ago

0.3.0

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.2.1

2 years ago

0.2.0

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

4 years ago