JSPM

gun-levelgraph

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q42156F
  • License MIT

Gun to LevelGraph/triplets translation

Package Exports

  • gun-levelgraph

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gun-levelgraph) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

gun-levelgraph

Interop layer between Gun and LevelGraph via levelgraph-jsonld

Status

Conversion to JsonLd format is super flexible and works!

The following default functions need to be fixed however:

  • Tweak default addContext, graphId and referenceNode functions:
    • add valid JsonLd @context on each node
    • add valid JsonLd @id on each node
    • make sure valid references

Install

npm i -S gun-levelgraph

Usage

See docs:

Gun utility functions

More Gun chain utility functions are available via:

Run Tests

npm i -g ava

Try ava test

TODO

  • Test LevelGraph save functions
  • Load JsonLd object into Gun graph for a full cycle

Save Gun node to LevelGraph

  • Fix addContext and graphId functions to:
    • add valid JsonLd @context on each node
    • add valid JsonLd @id on each node

Licence

MIT Kristian Mandrup 2017