asset-url

A tiny indirection for referencing hosted blobs (models, textures, audio, …) by a LOGICAL path, so demos/consumers aren't littered with a hostname and can retarget the host in one place. assetUrl('kenney/vehicles/car.glb') resolves against a base set once via setAssetBase(...); the base defaults to empty, so paths resolve locally (served from static/) for tests and offline dev. Already-absolute URLs (http(s)://, data:, blob:) pass through untouched.

import { setAssetBase, assetUrl, b3dLoader } from 'tosijs-3d'

setAssetBase('https://cdn.tosijs.net')          // once, e.g. in demo/site.ts
b3dLoader({ url: assetUrl('kenney/vehicles/car.glb') })