verida / verida-js

The Verida SDK provides several SDKs to interact with the Verida Network
https://developers.verida.network
ISC License
1.32k stars 38 forks source link
blockchain decentralized identity personal-data privacy web3

Verida Javascript Library

This monorepo contains Verida Client Library and a variety of utility packages that support that library.

There is a React Native repository that maintains a slightly modified version of the Verida Client Library that is used to generate the @verida/client-rn package.

Packages

These are the main packages you are likely to use:

These are helper packages that typically aren't used directly:

Developer Notes

Node Version

This requires node v18 (lts/hydrogen) to build. We use nvm to manage this:

nvm install lts/hydrogen
nvm use # this uses the .nvmrc file

Linking dependencies

It's not possible to add dependencies between monorepo packages using yarn (ie: yarn add @verida/encryption-utils) if that package hasn't been published to npm.

Unpublished dependencies between monorepo packages can be linked by:

Building

Build all packages:

In the root directory:

yarn install
npx lerna run build

To build a specific package:

Creating a release

Update all the CHANGELOG.md files in each package to include entries for all the changes made since the last release.

$ npx lerna run build
$ npx lerna publish --dist-tag next

Use tag next for an upcoming release or latest for the latest version.