Scan your whole stack
Are you using @lenhonbp/pixijs-vfx-runtime?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v2.2.0
@lenhonbp/pixijs-vfx-runtime was last scanned on 25 Nov 2026 at version 2.2.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 2.2.0 LATEST | 25 Nov 2026 | No rules fired |
| 1.4.0 | 25 Nov 2026 | No rules fired |
| 1.3.0 | 25 Nov 2026 | No rules fired |
Findings for v2.2.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 2.2.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Free forever, MIT. A small, zero-runtime-dependency atlas player for PixiJS 7 and 8. Commercial use welcome; keep the MIT copyright and license notice in copies of the runtime. It plays baked effects; it does not import or require the procedural kit.
npm install @lenhonbp/pixijs-vfx-runtime pixi.js
To try unreleased changes, build this directory with npm run build and install
it locally with npm install /path/to/pixijs-skill-vfx/runtime. Install dev tools
from the repository root first. Packs can be downloaded per skill from the
showcase or with the
agent skill's fetch script.
Serve packs over HTTP(S); cross-origin sheets must permit CORS.
For black-backed additive atlases, use an opaque application background (the
Pixi default). A transparent WebGL canvas can accumulate opaque alpha in the
additive region when composited over HTML; put the game background inside Pixi.
import { VfxPlayer } from '@lenhonbp/pixijs-vfx-runtime';
const vfx = await VfxPlayer.create(app, { packs: ['packs/free/hoa-fireball.vfxb'] });
vfx.play('hoa-fireball', { from: caster, to: target });
caster and target expose { x, y } ground positions, in the coordinate
space of the playback parent. Do not use a character's head position. With Pixi
v8, await app.init(...) first; v7 uses new Application(options). The player
handles rectangle textures, blend constants and ticker differences internally.
VfxPlayer.create(app, options?) → Promise<VfxPlayer>; loads options.packs.
new VfxPlayer(app, options?) is also available for explicit loading.maxResidentDirections: baked directions of one skill kept in GPU memory,
default 1. Loading another direction of a skill at the limit evicts its least
recently loaded or played direction: its plays stop and its atlas textures are
destroyed. Use 2 to cross-fade between directions, Infinity to keep them all.groundDissolve: { filter: GroundDissolveFilter, ms?, edgeWidth?, edgeColor?, edgeIntensity?, noiseScale? } erodes expiring ground decals along noise
(see Ground dissolve). Off by default.load(url | url[]) → Promise<void> accepts .vfx.json and .vfxb, including
default-scrambled and unscrambled containers. Concurrent identical URLs share
loading work. A loaded pack ID is not replaced; unload first to replace it.
Failures reject; failed loads can be retried.play(id, options) → { stop(), finished: Promise<void> }. finished resolves
on natural completion, stop, unload or destroy. Missing IDs/invalid speed throw.from (required), to (optional): live ground points, read every update.parent: container, defaults to app.stage.zIndex: effect-root depth; enable parent.sortableChildren to use sorting.speed: positive playback multiplier, default 1.fitDistance: scale the baked cast distance to the actual caster–target
distance. Effects mirror automatically when the target is left of the caster.groundSquash: camera squash (ground y / screen y) of your game view, used to
pick a direction; defaults to the pack's baked value, else 0.6.loop: repeat until explicitly stopped. The finished promise remains pending.layers, tiers, recommendedBlend: see Impact tiers.hitstop, target, flash, impulse: see Combat juice.element: recolour the pack's energy layers, see Gradient ramps.on('cue', fn) / off('cue', fn): cue events contain manifest cue fields plus
packId and the playback handle. Times are animation-clock milliseconds.
Sound is only a hint; the runtime does not create audio.on('tier', fn) / off('tier', fn): fired once when an impact tier starts; see
Impact tiers.unload(id): stop that pack's plays and free sheet/frame textures. For a
directional family, unload('id') frees every loaded direction and
unload('id@90') (or unload('id', 90)) frees just that one.directions(id) → loaded ground directions of a pack family, e.g. [0, 90].packDirection(from, to, groundSquash?, available?) (named export) →
{ direction, mirror }: the canonical direction (0, 45, 90, -45 or -90) whose
file a cast toward to needs, and whether it plays mirrored. Use it to load
only the directions a scene needs.destroy(): stop all plays, detach ticker, restore shake offset, free resources.stats() → { active, pooled, packs, quadBatches, sheets, textureBytes }: active
plays, available pooled sprites, loaded packs, ramp draw calls, resident atlas
sheets and their decoded GPU size (width × height × 4 bytes). Sprites and effect containers are reused on subsequent plays;
frame textures are prepared on load, not on play.playing → the number of running plays, like stats().active without building the stats object (safe to read every frame).update(dtMs): explicit deterministic stepping in real milliseconds, useful
with a stopped application ticker for tests. Do not also auto-tick the same time.getManifest(id) returns a detached metadata snapshot of the loaded base bake,
or undefined for an unloaded ID. handle.manifest returns the manifest of the
direction bake that play actually picked. Use its cues and duration to
synchronize a character clip without downloading the pack again.handle.elapsedMs is the read-only playback clock: it honors speed and hitstop,
wraps on loops, and returns zero after stop or completion.const vfx = await VfxPlayer.create(app, {
packs: ['packs/free/hoa-fireball.vfxb'],
loadKey: 'lenhon-vfx', // default; supply your custom bake key here
shake: { target: cameraContainer },
hitstop: true,
});
vfx.on('cue', cue => {
if (cue.type === 'sound') sounds.play(cue.id);
if (cue.type === 'hit') console.log('visual contact', cue.packId);
});
vfx.shakeEnabled = false;
vfx.hitstopEnabled = false;
Both built-ins are opt-in (shake and hitstop respectively). Shake applies a
temporary offset to the supplied container, preserving your own camera movement.
Hit-stop pauses only this player's affected playback, not your game simulation.
Toggle either at runtime; the underlying cue still fires for game-owned feedback.
Do not drive gameplay damage from the pre-baked cues without your own authority checks.
The showcase maps sound hints to small synthesized WebAudio tones.
Pushing a runtime-v<version> tag that matches version in this package.json
runs .github/workflows/publish-runtime.yml, which typechecks, builds and
publishes through npm trusted publishing (OIDC, with provenance); no npm token
is stored in the repository. One-time setup: a maintainer publishes the first
version from their own machine (npm run build && npm publish here, confirming
their 2FA), then adds this repository and workflow file as the package's
Trusted Publisher in its npm settings.
From the repository root: npm run typecheck, npm run build, then
npm run check:runtime. The smoke test serves the built showcase under a
subdirectory, exercises all free packs twice, checks cleanup and pool stability,
loads a plain manifest and tests the runtime bundled against Pixi v7 too.
Plain format examples are in docs/format-examples/, not the deployed showcase.
The showcase loads only its index and initially selected pack, then lazily loads on selection and unloads the previous pack. Changing the aim unloads the skill's previous direction before loading the new one, so one direction stays resident. It does not prefetch. Canvas backing resolution follows the displayed width with DPR capped at 2, including on phones.
See pack-format.md. Scrambling is an anti-scrape deterrent, not DRM or encryption. MIT code and free packs may be used commercially.
Packs are baked in ground space, so a cast can go any way on the ground: left,
right, up the screen (away from the camera), down (toward it) or diagonally.
Directional skills ship up to five files: <id>.vfxb (direction 0, cast to the
right), <id>@45.vfxb (down-right), <id>@90.vfxb (down), <id>@-45.vfxb
(up-right) and <id>@-90.vfxb (up). Left-hand directions reuse the right-hand
file mirrored. Their manifests carry direction and groundSquash. Skills that
look the same from every side (self buffs) ship only <id>.vfxb.
Load any subset of a family; the files share one id. A player keeps
maxResidentDirections of them (default 1), evicting the least recently used, so
load the direction a cast needs right before it, or raise the limit to keep more
resident at once. play picks the nearest
loaded direction for the actual caster–target angle, mirrors it when the target
is to the left, and skews it the remaining few degrees onto the real target, so
the effect lands on the target at any angle. With only <id>.vfxb loaded it falls
back to the original left/right behavior.
import { VfxPlayer, packDirection } from '@lenhonbp/pixijs-vfx-runtime';
const { direction } = packDirection(hero.position, enemy.position);
const base = 'packs/'; // or your CDN's pack directory
await vfx.load(`${base}hoa-fireball${direction ? '@' + direction : ''}.vfxb`);
vfx.play('hoa-fireball', { from: hero.position, to: enemy.position, fitDistance: true });
Packs without direction metadata (all 1.0 packs) keep playing exactly as before.
Three cheap effects that make a hit feel like one, switched on per play:
const vfx = await VfxPlayer.create(app, { shake: { target: camera }, colorMatrixFilter: ColorMatrixFilter });
vfx.play('hoa-fireball', { from: hero, hitstop: true, target: enemySprite }); // `to` defaults to the target
At every contact (each hit cue of the pack):
hitstop: true freezes the whole player for 2 frames (32 ms); a number is the freeze in ms (0-100). It freezes
every playback, not only this one, and sets vfx.frozen: pause your own game logic on it so everything stops together.
vfx.freeze(ms) does the same by hand. It replaces the pack's own longer hit-stop cue for that play.shake: { target }) is kicked 2.5 px along the blow (the pack's hit vector, mirrored for left
casts, else from to to) and rings out over about 200 ms, returning to exactly where it started. impulse: 4 changes the size,
impulse: false turns it off. It replaces the pack's non-directional jitter shake for that play.target is flashed at full strength for 2 frames, then decays over 80 ms (flash: { color, frames, decayMs },
flash: false to skip). By default two additive overlay sprites burn a Sprite out towards the flash colour. Pass Pixi's
ColorMatrixFilter class as colorMatrixFilter for an exact flat silhouette of any Sprite or Container. It is injected rather
than imported so pages that never flash do not download Pixi's filter system (about 140 KB). Flashing never stacks: a second hit
restarts the flash.Plays without these options behave as before. A pack without hit cues has no contact to react to.
FlowTrail draws high-velocity energy, flame and wind ribbons from one small energy texture and one 64x64 wrapping noise texture,
animated on the GPU instead of baked into dozens of frames (Pixi 8 on WebGL; FlowTrail.supported(app) tells you).
const trail = new FlowTrail({ texture: energyTexture, width: 40, speed: 1.6, turbulence: 0.25 });
stage.addChild(trail.mesh); trail.reset(x, y);
app.ticker.add(t => { trail.push(x, y); trail.dissolve = age / life; trail.update(t.deltaMS); });
The energy texture scrolls along the ribbon and its UVs are warped by scrolling noise (more towards the tail, so the head stays
attached). dissolve 0 to 1 eats the ribbon from its tail along the noise, with a bright rim. makeNoiseTexture(seed, size) builds the
seamless default (16 KB). One quad strip, one draw call, no per-frame allocation.
Ground decals (fissures, runes, scorch and impact marks on background layers and background impact tiers) are baked with a
uniform alpha fade. With groundDissolve set, the player replaces the tail of that fade with procedural noise erosion and a burning
rim (Pixi 8 on WebGL; GroundDissolveFilter.supported(app) tells you, elsewhere leave the option off and the baked fade plays).
import { VfxPlayer, GroundDissolveFilter } from '@lenhonbp/pixijs-vfx-runtime';
const vfx = new VfxPlayer(app, {
groundDissolve: GroundDissolveFilter.supported(app)
? { filter: GroundDissolveFilter, ms: 600, edgeColor: 0xff8a2a, edgeIntensity: 1.5, edgeWidth: 0.12 }
: undefined
});
For each ground root (the under root and each background tier) the player takes the last ms of the ground layers' visible span (at most 40% of it), holds the baked frame at
the start of that window and erodes it: uProgress runs 0 to 1 across the window, pixels whose noise value falls under the
threshold are cut (smoothstep(threshold - uEdgeWidth, threshold, noise)), and the band just above it is tinted with
uEdgeColor * uEdgeIntensity. The threshold is uProgress * (1 + uEdgeWidth), so the decal is fully gone at 1. The noise is the same
shared 64x64 texture FlowTrail uses, offset per play so neighbouring decals erode differently.
Filters are pooled: one per ground layer currently dissolving, composited with that layer's blend mode (an additive glow keeps
adding light), reused across plays and returned on finish, stop or unload. The per-frame
cost is one uniform write; nothing is allocated while a decal erodes. stats().dissolving counts the active ones.
new GroundDissolveFilter(options) also works on its own on any Pixi 8 container: set filter.progress from 0 to 1.
A pack baked with the factory's --mono true stores its energy (additive) layers as a luminance mask. The runtime colours the mask
through a 1D gradient ramp, so one atlas plays as any element and any custom colour:
vfx.play('hoa-fireball', { from, to, element: 'fire' }); // the pack's own look when `element` is omitted
vfx.play('hoa-fireball', { from, to, element: 'cyan' }); // the same atlas, recoloured
kim, moc, thuy, hoa, tho, loi, phong (aliases metal, wood, water, fire, earth, lightning, wind, ...)
and the looks gold, crimson, cyan (RAMP_PRESETS). Add your own with new VfxPlayer(app, { ramps: { ice: [[0, 0x000000], [0.5, 0x2040ff], [1, 0xffffff]] } })
or vfx.addRamp(id, stops); a registered id beats an alias of the same name. Stops run from black at 0 to the hottest colour at 1.element, a pack plays through its native ramp (shipped in the manifest), which reproduces the baked look; an element
ramp is a restyle (it colours by intensity, so it is not identical to the original colours).vfx.stats().quadBatches is how many that is. Energy
layers draw above the pack's material layers in the same parent. Materials (normal-blend layers) keep their own colours.layers, tiers) too.Honest limits: a mono pack uses the same GPU memory as the RGB one (a grey sheet still uploads as RGBA); the gain is that one atlas serves every element. Packs currently use one sheet per layer, so a pack costs about one draw call per layer however many times it plays; a shared atlas per pack would make that two.
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.