@uprtcl/holochain-provider
TypeScript icon, indicating that this package has built-in type declarations

0.1.0-beta.12 • Public • Published

@uprtcl/holochain-provider

This node package includes basic _Prtcl provider wrappers around @holochain/hc-web-client. These services include standard funcionality like a retry mechanism, or a ready() function to wait for them to be ready.

Documentation

Visit our documentation site.

Install

npm install @uprtcl/holochain-provider

Usage

Import the appropriate connection you would like to use, and make a new instance of it by passing its configuration:

import {MicroOrchestrator} from '@uprtcl/micro-orchestrator';
import { HolochainConnectionModule, HolochainConnection } from '@uprtcl/holochain-provider';

const hcConnection = new HolochainConnection({
  host: 'localhost:8888'
});

const hcModule = new HolochainConnectionModule(hcConnection);

const orchestrator = new MicroOrchestrator();

await orchestrator.loadModule(hcModule);

/@uprtcl/holochain-provider/

    Package Sidebar

    Install

    npm i @uprtcl/holochain-provider

    Homepage

    uprtcl.io

    Weekly Downloads

    1

    Version

    0.1.0-beta.12

    License

    MIT

    Unpacked Size

    79.8 kB

    Total Files

    25

    Last publish

    Collaborators

    • sotous
    • guillem.cordoba
    • pepoospina