Skip to main content

The Darkblock NPM

The NPM consist of the Darkblock Viewer and the Darkblock Upgrader.

The Darkblock NPM enables you to add unlockable content to any website with ease. The best way to add the Darkblock Viewer to your website is to use one of our chain-specific NPM packages.

We have built out a robust set of NPMs available across 5 different chains.

Shared Components Library

Install Darkblock's React Shared Component Library using yarn or npm

yarn add @darkblock.io/shared-components

npm i @darkblock.io/shared-components --save

Once the library is installed, import or require components into your codebase, i.e:

import {
Header,
Panel,
Player,
Stack,
utils,
widgetMachine
} from "@darkblock.io/shared-components"