Scan your whole stack
Are you using @webxr-jp/avatar-optimizer?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.4.0
@webxr-jp/avatar-optimizer was last scanned on 24 Nov 2026 at version 0.4.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.4.0 LATEST | 24 Nov 2026 | No rules fired |
| 0.3.1 | 17 Oct 2026 | No rules fired |
| 0.3.0 | 31 Aug 2026 | No rules fired |
| 0.2.1 | 30 Aug 2026 | Not shown |
| 0.2.0 | 29 Aug 2026 | Not shown |
Findings for v0.4.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.4.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
3D model optimization library for WebXR applications.
npm install @webxr-jp/avatar-optimizer
npm install @gltf-transform/core @gltf-transform/extensions @pixiv/three-vrm @pixiv/three-vrm-materials-mtoon three
import { loadVRM, optimizeModel, exportVRM } from '@webxr-jp/avatar-optimizer'
// Load VRM file
const vrmResult = await loadVRM(file)
if (vrmResult.isErr()) {
console.error(vrmResult.error)
return
}
const vrm = vrmResult.value
// Optimize model
const optimizedResult = await optimizeModel(vrm, {
atlas: {
resolution: { base: 2048, blend: 1024 },
},
})
if (optimizedResult.isErr()) {
console.error(optimizedResult.error)
return
}
const optimizedVrm = optimizedResult.value
// Export VRM
const exportResult = await exportVRM(optimizedVrm)
if (exportResult.isErr()) {
console.error(exportResult.error)
return
}
const blob = new Blob([exportResult.value], { type: 'model/gltf-binary' })
import { exportVRM, UastcQuality } from '@webxr-jp/avatar-optimizer'
const exportResult = await exportVRM(vrm, {
textureCompression: {
quality: UastcQuality.Default,
supercompression: true,
},
})
import { simplifyMeshes } from '@webxr-jp/avatar-optimizer'
const result = await simplifyMeshes(vrm, {
targetRatio: 0.5,
targetError: 0.01,
})
| Function | Description |
|---|---|
loadVRM(source, options?) |
Load VRM from File, URL, or ArrayBuffer |
optimizeModel(vrm, options) |
Apply optimization pipeline |
exportVRM(vrm, options?) |
Export VRM to GLB binary |
simplifyMeshes(vrm, options) |
Reduce polygon count |
loadVRM に TSL 版のマテリアルを渡すと、WebGPURenderer で描画できる VRM として読み込みます。
mtoonMaterialType は通常の MToon、mtoonAtlasMaterialType は最適化済み VRM(XRIFT_mtoon_atlas)に使われます。
import { MToonNodeMaterial } from '@pixiv/three-vrm/nodes'
import { MToonAtlasNodeMaterial } from '@webxr-jp/mtoon-atlas/nodes'
const result = await loadVRM(file, {
mtoonMaterialType: MToonNodeMaterial,
mtoonAtlasMaterialType: MToonAtlasNodeMaterial,
})
KTX2 テクスチャを含む場合は、圧縮形式の判定を描画に使う WebGPURenderer で行わせてください(await renderer.init() の後に setKtx2Renderer(renderer)、または loadVRM の ktx2Renderer オプション)。省略すると一時的な WebGLRenderer で判定するため、WebGPU で扱えない形式が選ばれることがあります。
MToonNodeMaterial で読み込んだ VRM を最適化するときは、atlasMaterialType に MToonAtlasNodeMaterial を渡します。
省略すると、WebGPURenderer で描画できない MToonAtlasMaterial を作らないよう INVALID_PARAMETER を返します(モデルは変更されません)。
const result = await optimizeModel(vrm, {
atlasMaterialType: MToonAtlasNodeMaterial,
})
OptimizationOptions - Configuration for optimization pipelineExportVRMOptions - Export settings including texture compressionSimplifyOptions - Mesh simplification parametersTextureCompressionOptions - KTX2 compression settingsMIT
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.