Installation
Swift SDK
Requirements
- iOS 15.0+ / macOS 12.0+
- Xcode 15.0+
- Swift 5.9+
Swift Package Manager
Add the ModelHealth SDK to your project using Swift Package Manager:
- In Xcode, select File > Add Package Dependencies...
- Enter the repository URL:
https://github.com/model-health/model-health - Select the version you want to use
- Add
ModelHealthto your target
Alternatively, add it to your Package.swift:
dependencies: [
.package(url: "https://github.com/model-health/model-health", from: "1.0.0")
]
Then import it in your Swift files:
import ModelHealth
TypeScript SDK
Requirements
- Node.js 16.0+
- Modern browser with WebAssembly support
npm
npm install @modelhealth/sdk
yarn
yarn add @modelhealth/sdk
Import
import { ModelHealthService } from '@modelhealth/sdk';
Verification
Swift
import ModelHealth
do {
let service = try ModelHealthService()
print("ModelHealth SDK initialized successfully")
} catch {
print("Failed to initialize: \(error)")
}
TypeScript
import { ModelHealthService } from '@modelhealth/sdk';
const service = new ModelHealthService();
await service.init();
console.log('ModelHealth SDK initialized successfully');
Next Steps
Now that you have the SDK installed, check out the Quick Start Guide to learn how to use it.