# Vendored: onnxruntime-web

- **Package:** `onnxruntime-web`
- **Version:** 1.27.0 (same version PicRemedy / ai-modern-upscaler ships)
- **Licence:** MIT (declared in the package's `package.json`; Copyright © Microsoft
  Corporation). The published npm tarball does not include a standalone `LICENSE`
  file, so the MIT text is reproduced below.
- **Source:** `https://registry.npmjs.org/onnxruntime-web/-/onnxruntime-web-1.27.0.tgz`
- **Retrieved:** 2026-08-18

## Files kept

- `ort.webgpu.bundle.min.mjs` — the WebGPU ESM entry.
- `ort-wasm-simd-threaded.jsep.{mjs,wasm}` — the WebGPU (jsep) backend.
- `ort-wasm-simd-threaded.asyncify.{mjs,wasm}` — the wasm fallback backend, imported
  when WebGPU is unavailable.
- `ort-wasm-simd-threaded.{mjs,wasm}` — the base simd-threaded backend.

The bundle dynamically imports whichever backend the browser can run, so the whole
set has to be present — a real headless-Chrome run (2026-08-18) failed with
"Failed to fetch ort-wasm-simd-threaded.asyncify.mjs" when only the jsep files were
vendored, then loaded and ran the model once the set was complete. The jspi, webgl,
node and non-webgpu entry variants are dropped. This runtime is third-party and
minified on purpose; the site's own engine stays readable at `/assets/engine/`, and
the only first-party code that touches it is the small, readable `src/engine/ort.js`.

## MIT License

```
MIT License

Copyright (c) Microsoft Corporation.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```
