@developeruche/runtime-sdk
v0.11.8-development
Published
This is a typescript SDK plate
Readme
Open Reward Runtime SDK
Runtime helper utilities for interacting with the Open Reward protocol from Node.js or browser environments.
Installation
yarn add @developeruche/runtime-sdk
# or
npm install @developeruche/runtime-sdkBrowser / CDN Usage
The package now ships a pre-bundled browser build that can be consumed directly from popular npm-backed CDNs.
jsDelivr
<script src="https://cdn.jsdelivr.net/npm/@developeruche/runtime-sdk/dist/browser/runtime-sdk.umd.min.js"></script> <script> const { createMutationSdk } = window.OpenRewardSDK; // your code here </script>unpkg
<script src="https://unpkg.com/@developeruche/runtime-sdk/dist/browser/runtime-sdk.umd.min.js"></script>
For ESM-friendly CDNs or bundlers, you can import the module build directly:
import { createMutationSdk } from 'https://cdn.jsdelivr.net/npm/@developeruche/runtime-sdk/dist/browser/runtime-sdk.esm.js';Both builds expose the same APIs that are exported from src/index.ts. The UMD bundle registers window.OpenRewardSDK.
Local Development
yarn install
yarn build # emits dist/ (Node) and dist/browser (CDN) buildsRun tests and lint checks as usual:
yarn test
yarn lint