Self-hosting weights
By default Longpipe fetches weights from https://cdn.longpipe.dev/models/v/0.0.1/. To host them yourself — for offline use, locked-down corporate networks, or just to avoid the public CDN dependency — point weightsBaseUrl at your own host.
new EffectsPipeline(stream, {
weightsBaseUrl: 'https://cdn.example.com/longpipe/v0.0.1/',
})
What to host
The SDK fetches files of the form model_${preset}.bin (and .f16.bin for fp16-capable hardware). The full set is in weights/ on GitHub. Download those and host them at the URL you set.
CORS
Browsers require the weight host to send Access-Control-Allow-Origin: * (or your specific origin). The SDK uses fetch() with default CORS mode.
Versioning
The default URL is versioned in the path (/v/0.0.1/) so SDK upgrades that change weight shapes can move to a new prefix without breaking older SDKs in the wild. Mirror that pattern when self-hosting if you want to stay in sync with future SDK versions.