avatar-stream
БесплатноБез исполняемых скриптовНе проверенPack, inspect, verify and stream A3S progressive 3D files with the a3s CLI and @three-ws/avatar-stream. Use when a GLB avatar should render from its first 50…
от nirholas★ 289 звёзд на GitHubОб этом скилле
Avatar stream (A3S)
An A3S file is a static asset: layer 0 is a complete, skinned, spec-valid GLB, and later layers refine geometry, textures and animations. Any host that supports HTTP Range can serve it. No custom server.
Install: npm install @three-ws/avatar-stream (Node 18+, ESM). The CLI is a3s, so you can also run npx -y -p @three-ws/avatar-stream a3s <command>.
CLI
a3s pack <input.glb> [-o out.a3s] [--levels 0.03,0.1,0.3,1] [--base-texture 64] [--json]
a3s inspect <file.a3s|url> [--json]
a3s verify <file.a3s|url> [--deep] [--json]
a3s extract <file.a3s|url> [-o preview.glb]
a3s bench <input.glb> [--connection slow-3g|fast-3g|4g] [--json]
packbuilds the stream.--levelsare triangle-count fractions per layer.inspectprints each layer's bytes, triangles and the Range it needs.verifyre-hashes every layer.--deepreplays the stream and proves the refined surface equals the source triangle for triangle.extractwrites layer 0 as a standalone GLB.benchestimates time-to-first-frame against a classic GLB fetch.
Library
@three-ws/avatar-stream/node:pack(glbBytes, { levels, baseTextureSize, name })returns{ container, header, stats }. Alsoreconstruct,triangleCount,triangleFingerprint,verifyNesting.@three-ws/avatar-stream(browser-safe):A3SStream.open(urlOrBytes, { prefixBytes, verify }), thenstream.base(layer 0 GLB bytes),stream.header,stream.layerCount,stream.bytesThroughLayer(n),await stream.layer(n),for await (const l of stream.layers()). AlsobytesSource,httpSource.@three-ws/avatar-stream/three:A3SPlayer.load(target, { THREE, GLTFLoader, onLayer, configureLoader })returns a player whosesceneis ready immediately.await player.refine()applies the remaining layers in place. PassconfigureLoaderto install meshopt or draco decoders.
Worked example
a3s pack avatar.glb -o avatar.a3s --levels 0.03,0.1,0.3,1
a3s verify avatar.a3s --deep
a3s inspect avatar.a3s
# upload avatar.a3s to any static host or CDN that honours Range
import * as THREE from 'three';
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
import { A3SPlayer } from '@three-ws/avatar-stream/three';
const player = await A3SPlayer.load('https://cdn.example.com/avatar.a3s', {
THREE, GLTFLoader,
onLayer: ({ level, triangleCount, bytes }) => console.log(level, triangleCount, bytes),
});
scene.add(player.scene); // coarse avatar is already on screen
await player.refine(); // refine in place, layer by layer
Guidance
- Serve with
Accept-Rangesand permissive CORS if the page is on another origin. - Run
a3s verify --deepin CI after packing so a regression in a layer fails the build. packreads meshopt and Draco compressed input itself, and the base layer never depends on either extension.
Установить avatar-stream в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл avatar-stream?
Pack, inspect, verify and stream A3S progressive 3D files with the a3s CLI and @three-ws/avatar-stream. Use when a GLB avatar should render from its first 50 KB and refine in place over HTTP byte-range requests.
Как установить скилл avatar-stream?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл avatar-stream запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic