[go: up one dir, main page]

Skip to content

timdeputter/purescript-gun

Repository files navigation

purescript-gun Build Status License: MIT purescript-gun on Pursuit

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.