Skip to main content

Node.js SDK

Node.js/TypeScript SDK for API integration

Overview

Node.js/TypeScript SDK for MyBodyShield.

NPM Packages

EnvironmentPackage NameVisibility
Alpha@burdenoff/alpha-mybodyshield-sdk or @burdenoff/alpha-mybodyshield-sdk-nodePrivate
Stable@burdenoff/mybodyshield-sdk or @burdenoff/mybodyshield-sdk-nodePublic

Installation

Public (Stable)

npm install @burdenoff/mybodyshield-sdk

Private (Alpha)

npm login
npm install @burdenoff/alpha-mybodyshield-sdk

Repository

Usage

import { MyBodyShieldClient } from '@burdenoff/mybodyshield-sdk';

const client = new MyBodyShieldClient({
apiKey: process.env.MYBODYSHIELD_API_KEY
});

Features

  • Fully typed TypeScript API
  • GraphQL client
  • Authentication helpers
  • Error handling

See the NPM Package Management guide for more details.