BuildInstall an SDK

Install an SDK

This guide walks you through adding the Loop Platform SDK to your project.

Who this is for

Developers building applications that integrate with the Loop Platform via one of the official SDKs.

Node.js

Install the SDK package from the GitHub Packages registry:

npm install @platform/sdk

Configure your .npmrc to point to the registry:

@platform:registry=https://npm.pkg.github.com

Then import and initialize:

import { createClient } from "@platform/sdk";
 
const client = createClient({
  baseUrl: "https://api.platform.loop.health",
  token: process.env.LOOP_ACCESS_TOKEN,
});

Python

pip install loop-platform-sdk
from loop_platform import Client
 
client = Client(
    base_url="https://api.platform.loop.health",
    token=os.environ["LOOP_ACCESS_TOKEN"],
)

React Native

npx expo install @platform/sdk

The SDK works with both Expo managed and bare React Native workflows. See the React Native Quickstart for a complete example.

Next Steps