Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@webxr-jp/avatar-optimizer

Latest version: v0.4.0

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: halby, sawa-zen
9 Stars
2 Forks
5 Versions
922 Downloads
TypeScript Repo language

Scan summary

@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.

  • Releases: 5 versions; the latest was published on 24 Nov 2026.
  • Findings: No rules fired in version 0.4.0.
  • Downloads: 922 downloads.

Versions

5 versions published
Versions and the rules that fired in each
VersionPublishedStatus
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

No rules fired in 0.4.0

Findings

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.

README

The publisher’s own README, as collected from the registry.

@webxr-jp/avatar-optimizer

3D model optimization library for WebXR applications.

Features

  • VRM model loading and export
  • Texture atlas generation for material consolidation
  • Mesh simplification using meshoptimizer
  • KTX2 texture compression support
  • VRM0 to VRM1 skeleton migration utilities

Installation

npm install @webxr-jp/avatar-optimizer
Peer Dependencies
npm install @gltf-transform/core @gltf-transform/extensions @pixiv/three-vrm @pixiv/three-vrm-materials-mtoon three

Usage

Basic Optimization
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' })
With Texture Compression
import { exportVRM, UastcQuality } from '@webxr-jp/avatar-optimizer'

const exportResult = await exportVRM(vrm, {
  textureCompression: {
    quality: UastcQuality.Default,
    supercompression: true,
  },
})
Mesh Simplification
import { simplifyMeshes } from '@webxr-jp/avatar-optimizer'

const result = await simplifyMeshes(vrm, {
  targetRatio: 0.5,
  targetError: 0.01,
})

API

Main Functions
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
WebGPURenderer で読み込む

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,
})
Types
  • OptimizationOptions - Configuration for optimization pipeline
  • ExportVRMOptions - Export settings including texture compression
  • SimplifyOptions - Mesh simplification parameters
  • TextureCompressionOptions - KTX2 compression settings

License

MIT

OX Radar and Response Center

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.

Where it’s listed

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).

  • npm @webxr-jp/avatar-optimizer

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229