@tinycloudlabs/web-sdk-wasm
v0.2.1
Published
<img src="https://github.com/TinyCloudLabs/web-sdk/blob/main/documentation/static/img/tinycloudheader.png?raw=true" alt="TinyCloud" width="100%" />
Downloads
190
Readme
TinyCloud Web SDK (Rust/WASM)
WebAssembly library written in Rust for the TinyCloud Web SDK.
Overview
This package provides high-performance WebAssembly components for TinyCloud Web SDK. It uses rollup to encode the .wasm as a base64-encoded string, meaning there is no configuration needed downstream to support WebAssembly (other than a compatible browser).
Features
- High Performance - Critical operations implemented in Rust for maximum efficiency
- Small Footprint - Minimal bundle size overhead
- Seamless Integration - Works directly with the JavaScript SDK without configuration
Installation
# Using npm
npm install @tinycloudlabs/web-sdk-rs
# Using Yarn
yarn add @tinycloudlabs/web-sdk-rs
# Using Bun (recommended)
bun add @tinycloudlabs/web-sdk-rsUsage
This package is typically used internally by the main TinyCloud Web SDK, but you can also use it directly:
import { initialize } from '@tinycloudlabs/web-sdk-rs';
// Initialize the WASM module
await initialize();
// Use the WASM functions
// ...Building from Source
Requirements
Building
For development builds:
bun run build-devFor optimized release builds:
bun run build-releaseThen bundle the package:
bun run bundleDocumentation
For complete documentation, please visit:
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE-MIT file for details.
Related Packages
- @tinycloudlabs/web-sdk - The main TinyCloud Web SDK package
- @tinycloudlabs/web-core - Core utilities and types
