New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@verida/client-rn

Package Overview
Dependencies
Maintainers
3
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@verida/client-rn

This is the Verida Client (Typescript) library compatible with NodeJs and modern web browsers.

3.0.2
latest
Source
npmnpm
Version
3.0.2
Version published
Weekly downloads
47
1075%
Maintainers
3
Weekly downloads
 
Created
Source

Verida Client (Typescript)

This is the Verida Client (Typescript) library compatible with NodeJs and modern web browsers.

See @verida/client-rn for a React Native version of this library.

Usage

Install the library:

yarn add @verida/client-ts

Context Initializing (Web - SSO)

See the Client SDK Getting Started Guide in the Developer Docs.

Context Initializing (Server / Mobile)

Initialize a connection to the Verida network with an existing private key.

See the Authentication with a Private Key.

Advanced Initializing

See the Advanced Authentication.

Tests

There are unit tests available in the tests/ folder.

$ yarn run tests
$ yarn run tests test/<testname>.ts

Setting up test environment

Verida DID Server (run locally)

The tests require running a local instance of the Verida DID server to support managing DIDs.

See @verida/did-server

Start a storage node server

You must run the [Datastore server](https://github.com/verida/storage- node) locally so there is a CouchDB instance for your test data.

Run the following in a new terminal within the storage-node directory:

$ npm install
$ npm run start

Running tests

You can now run tests from within the client-ts directory:

$ yarn run tests        // run all tests
$ yarn run test test/storage.context.tests.ts       // run a specific test

Development within a Web Environment

These instructions build this client-ts package in the mono repo and allow it type be linked to another typescript web application (such as @verida/web-sandbox).

$ cd packages/client-ts
$ yarn install
$ yarn build
$ yarn link

Within an existing typescript web project:

$ yarn link @verida/client-ts
$ yarn run serve

Generating API docs

yarn generate-api-docs

FAQs

Package last updated on 11 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts