3.0.3 • Published 3 days ago

@verida/client-ts v3.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
3 days 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.4

3 days ago

4.0.0-alpha.0

16 days ago

3.0.3

2 months ago

3.0.3-alpha.0

4 months ago

3.0.2

4 months ago

3.0.1

4 months ago

3.0.0

5 months ago

2.4.0-rc6.1

5 months ago

2.4.0-rc6

5 months ago

2.4.0-rc5

5 months ago

2.4.0-rc3

5 months ago

2.4.0-rc4

5 months ago

2.4.0-rc2

5 months ago

2.4.0-rc1

5 months ago

2.3.8

8 months ago

2.3.7

9 months ago

2.3.9

8 months ago

2.3.6

10 months ago

2.3.4-rc1

1 year ago

2.3.4-rc2

1 year ago

2.2.1

1 year ago

2.2.0

1 year ago

2.3.5-rc1

1 year ago

2.3.3-rc1

1 year ago

2.3.3-rc2

1 year ago

2.3.0

1 year ago

2.3.2

1 year ago

2.3.1

1 year ago

2.1.3

1 year ago

2.3.4

1 year ago

2.3.3

1 year ago

2.3.5

12 months ago

2.3.0-rc1

1 year ago

2.3.0-rc2

1 year ago

2.3.0-rc3

1 year ago

2.3.5-rc1.0

1 year ago

2.1.2

1 year ago

2.1.1

1 year ago

2.0.2

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.1.0

1 year ago

2.0.1

1 year ago

2.0.3-rc1.0

1 year ago

2.0.0-rc7

1 year ago

2.0.0-rc6

1 year ago

2.0.0-rc5

1 year ago

2.0.0-rc4

1 year ago

2.0.0-rc3

2 years ago

2.0.0-rc2

2 years ago

2.0.0-rc1

2 years ago

2.0.0

1 year ago

1.1.15

2 years ago

1.1.14

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.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.1

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago