@digiv3rse/client
TypeScript icon, indicating that this package has built-in type declarations

2.1.3 • Public • Published

DiGi JavaScript SDK

The official framework-agnostic JavaScript SDK for DiGi Protocol.


This package enables you to interact with the DiGi API via a type safe interface that abstracts away some of the GraphQL intricacies.

Documentation

Quick start

Install the DiGi React Native SDK package using your package manager of choice:

Package Manager Command
npm npm install @digiv3rse/client@latest
yarn yarn add @digiv3rse/client@latest
pnpm pnpm add @digiv3rse/client@latest

Development configuration example:

import { DiGiClient, development } from '@digiv3rse/client';

const client = new DiGiClient({
  environment: development,
});

Production configuration example:

import { DiGiClient, production } from '@digiv3rse/client';

const client = new DiGiClient({
  environment: production,
});

In a browser-based implementation you can use the Web Storage API to persist authentication state.

const client = new DiGiClient({
  environment: production,

  storage: window.localStorage,
});

Package Sidebar

Install

npm i @digiv3rse/client

Weekly Downloads

75

Version

2.1.3

License

MIT

Unpacked Size

10.7 MB

Total Files

106

Last publish

Collaborators

  • kimmy94