Package

purescript-gun

Repository
timdeputter/purescript-gun
License
MIT
Uploaded by
timdeputter
Published on
2018-09-13T18:43:32Z

Purescript bindings to the gun.js database.

Installation

Install purescript-gun with bower:

$ bower install purescript-gun

Getting started

Use syncWithPeer or syncWithPeers to connect to gun database.

do
  gundb -> liftEffect syncWithPeer "http://myserver.com/gun"
  ...

After you've got a reference to a gundb instance, define a path with gun get and read data with once

do
  gundb -> liftEffect syncWithPeer "http://myserver.com/gun"
  data -> gundb # get ["users", "friends"] # once
  ...

Have a look at the test directory for more examples.

Documentation

Module documentation is published on Pursuit.

License

Check LICENSE file for more information.