MIND SDK is not yet published to npm. The command below reflects the intended public package name.
npm install @ulesson-education/mind-sdk
Peer dependencies
react, react-dom, and ofetch are peer dependencies. Install them in your app:
| Peer dependency | Supported version |
|---|
react | >=18.2.0 |
react-dom | >=18.2.0 |
ofetch | ^1.3.0 |
Entry points
The package ships three entry points:
| Import path | What it provides |
|---|
@ulesson-education/mind-sdk | Core, framework-agnostic client, types, and errors |
@ulesson-education/mind-sdk/react | React provider, host component, and hooks |
@ulesson-education/mind-sdk/styles | The widget’s bundled stylesheet (style.css) |
Import the styles
If you consume the prebuilt package, import the styles once at the root of your app:
import '@ulesson-education/mind-sdk/styles';