Installation
Get started with the official MsGine TypeScript SDK.
Prerequisites
- Node.js 16.x or higher
- npm, pnpm, or yarn package manager
Install the SDK
bash
pnpm add @msgine/sdkbash
npm install @msgine/sdkbash
yarn add @msgine/sdkVerify Installation
Create a test file to verify the installation:
typescript
import { MsGineClient } from '@msgine/sdk'
console.log('MsGine SDK installed successfully!')Run the file:
bash
node --loader ts-node/esm test.tsFeatures
The MsGine SDK includes:
- ✅ Fully Typed - Complete TypeScript support with strict typing
- ✅ Auto Retry - Configurable retry logic with exponential backoff
- ✅ Validation - Runtime validation using Zod schemas
- ✅ Modern - Built with latest TypeScript and ES modules
- ✅ Well Tested - Comprehensive test coverage
- ✅ Zero Config - Sensible defaults, easy to customize
- ✅ Flexible - Support for custom fetch implementations
What's Next?
- Quick Start Guide - Send your first message
- Configuration - Customize the SDK behavior
- API Reference - Detailed API documentation
Getting Help
If you encounter any issues:
- Check the Troubleshooting Guide
- Open an issue on GitHub
- Contact support at support@msgine.net