Alpine GUN adapter
This is very alpha. You can use GUN with Alpine with some two-way bindings.
Loading Name: Messages No messages.
Interface
$gun(soul)
Returns a proxy object that contains the entire tree of the node (withopen()
), including_
properties for metadata. Will update the component on every update of the data. TODO currently updates the entire tree. TODO currently there is no way to unsubscribe$setOf(node object, property name)
Returns an array with the values in the node TODO cannot get keys, maybe rename to$entries
and return key value pairs?$addToSet(node object, property name, value)
Doesgun(node soul).get(property name).set(value)
.