3.0.2 • Published 4 months ago

@verida/client-rn v3.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
4 months ago

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
3.0.2

4 months ago

3.0.1

4 months ago

3.0.0

4 months ago

2.4.0-rc6

4 months ago

2.4.0-rc5

4 months ago

2.4.0-rc4.1

4 months ago

2.4.0-rc4

4 months ago

2.4.0-rc2

5 months ago

2.3.4-rc1

1 year ago

2.3.4-rc2

1 year ago

2.2.0

1 year ago

2.3.2

1 year ago

2.3.1

1 year ago

2.3.4

1 year ago

2.3.3-rc2

1 year ago

2.3.3-rc3

1 year ago

2.1.2

1 year ago

2.1.1

1 year ago

2.1.0

1 year ago

2.0.6-rc3

1 year ago

2.0.6-rc2

1 year ago

2.0.6-rc1

1 year ago

2.0.0

1 year ago

2.0.0-rc7.1

1 year ago

2.0.0-rc7

1 year ago

2.0.0-rc5.5

1 year ago

2.0.0-rc5.4

1 year ago

2.0.0-rc5.3

1 year ago

2.0.0-rc5.2

1 year ago

2.0.0-rc5.1

1 year ago

2.0.0-rc5

1 year ago

2.0.0-rc4

1 year ago

2.0.0-rc2

2 years ago

1.1.15

2 years ago

1.1.13

2 years ago

1.1.12

2 years ago

1.1.11

2 years ago

1.1.10

2 years ago

1.1.9

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

3 years ago

1.0.7

3 years ago