@blockv/faces

The HTML Bridge SDK allows web apps to become vAtoms, and access the properties and resources of the vatom. It also allows for communication between vatoms and the viewer.

Usage no npm install needed!

<script type="module">
  import blockvFaces from 'https://cdn.skypack.dev/@blockv/faces';
</script>

README

HTML Bridge SDK

The HTML Bridge SDK allows web apps to become vAtoms, and access the properties and resources of the vAtom. It also allows for communication between vAtoms and the viewer.

For more information on how to use the Bridge SDK, see the [Documentation].

Installing the SDK

npm install @blockv/faces

Importing The SDK

import BlockVBridge from '../src/BlockVBridge';
import BlockVFaceApi from '../src/BlockVFaceApi';

Face API

getResource(resourceName)

subscribeVatomUpdates(callback)

unsubscribeVatomUpdates(callback)