0.1.0-alpha.7 • Published 5 years ago

hyperfact v0.1.0-alpha.7

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
5 years ago

Hyperfact

Store data as a unified JSON-LD graph.

This experimental. Expect things to change.

Quick start

import createStore from "hyperfact";

const facts = createStore();

// add facts to the store (this is async!)
facts.merge({
              "@context": "http://schema.org/",
              "@id": "https://people.example/profile/jane#me",
              "@type": "Person",
              "name": "Jane Doe",
              "jobTitle": "Professor",
            });
            
// subscribe to changes
facts.subscribe('https://people.example/profile/jane#me', (current, prev) => {
  console.log('updated', {current, prev});
});

// get facts
const data = facts.getResource('https://people.example/profile/jane#me');
console.log()
0.1.0-alpha.7

5 years ago

0.1.0-alpha.6

5 years ago

0.1.0-alpha.5

5 years ago

0.1.0-alpha.4

5 years ago

0.1.0-alpha.3

5 years ago

0.1.0-alpha.2

5 years ago

0.1.0-alpha.1

5 years ago

0.0.1

5 years ago