vastai-sdk-patterns
Installation
SKILL.md
Vast.ai SDK Patterns
Overview
Production-ready patterns for Vast.ai SDK usage in TypeScript and Python.
Prerequisites
- Completed
vastai-install-authsetup - Familiarity with async/await patterns
- Understanding of error handling best practices
Instructions
Step 1: Implement Singleton Pattern (Recommended)
// src/vastai/client.ts
import { Vast.aiClient } from '@vastai/sdk';
let instance: Vast.aiClient | null = null;
Related skills