Overview of @qvac/diffusion-cpp
mainThe @qvac/diffusion-cpp package (v0.6.0) provides a cross-platform JavaScript API for diffusion model inference using stable-diffusion.cpp. It is designed for Bare runtime applications and enables local image generation (txt2img and img2img) on desktop and mobile platforms with CPU/GPU acceleration (Metal, Vulkan, OpenCL).
Key Capabilities:
- Cross-platform support: macOS, iOS, Linux, Android, and Windows.
- Local Model Management: Uses disk-local model files. Users must provide absolute file paths for models (e.g.,
model,clipL,vae) via the constructor. - Progress Tracking: Provides step-by-step generation progress via callbacks.
- Quantized Model Support: Works with GGUF, safetensors, and checkpoint formats.
- Supported Models: SD2.x, SDXL, SD3, and FLUX.2 [klein].