bytex-cloud-sdk
v1.0.0
Published
The official ByteX Cloud SDK for BYOC (Bring Your Own Cloud) infrastructure management.
Maintainers
Readme
ByteX Cloud SDK 🚀
The official SDK for the ByteX ecosystem, enabling developers to build professional "Super SaaS" products with 100% cloud sovereignty (BYOC).
Features
- 🔐 Secure Authentication: Integrated with Supabase.
- 📦 Data Persistence: Upload and download streams directly to your own Cloud (HuggingFace).
- 🕵️♂️ X-Ray Diagnostics: Built-in network and infrastructure health checks.
- ⚡ Lightweight: Zero-config needed for most use cases.
Installation
npm install @bytex/cloud-sdkQuick Start
Initialize
import { BytexCloud } from '@bytex/cloud-sdk';
import AsyncStorage from '@react-native-async-storage/async-storage';
const bytex = new BytexCloud({
apiKey: 'YOUR_API_KEY',
workerUrl: 'https://api.bytex.work/',
storage: AsyncStorage // for React Native
});Upload Data
await bytex.uploadData('my_project', {
status: 'active',
users: 1000
});Infrastructure Health Check (X-Ray)
const report = await bytex.xray();
console.log(report.checks);License
MIT © ByteX Guru
