npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@viggle/splat-engine

v0.1.1

Published

Gaussian-splat character engine for PlayCanvas: load .vsplat character bundles, skin them to a rig, play skeletal animation, and render them alongside .ply/.spz environment splats.

Readme

@viggle/splat-engine

Minimal Gaussian Splat character engine. Load .vsplat characters, play MetaHuman GLB skeletal animations with crossfade blending, load .ply/.spz environment splats, render with PlayCanvas.

Install

npm install @viggle/splat-engine [email protected]

This engine reaches into PlayCanvas well past its documented surface - the splat pipeline, the sorter and the shader chunks all depend on internals that carry no compatibility promise across minor versions. Using other PlayCanvas versions may cause issues.

Quick Start

Get the character .vsplat file and glb animations from https://viggle.ai/pinoc/app/

import {
  Scene,
  Character,
  Animation,
  Environment,
  OrbitControls,
  Grid,
  SkyDome,
} from '@viggle/splat-engine';

// 1. Create scene
const canvas = document.getElementById('canvas') as HTMLCanvasElement;
const scene = await Scene.create(canvas, { fov: 45 });
scene.start();

// 2. Orbit camera + sky + grid + environment splat (optional)
const controls = new OrbitControls({
  distance: 4,
  pitch: 15,
  target: { x: 0, y: 0.8, z: 0 },
});
controls.attach({ canvas, cameraEntity: scene.cameraEntity });
scene.app.on('update', () => controls.update());
SkyDome.create(scene, { topColor: '#c2f0ff', bottomColor: '#ffffff' });
Grid.create(scene);
await Environment.load(scene, '/assets/room.spz');

// 3. Load character
const character = await Character.load(scene, '/assets/character.vsplat');

// 4. Load animations (fetch + parse + register in one call)
await Promise.all([
  Animation.loadGlb(scene, '/assets/idle.glb', 'idle'),
  Animation.loadGlb(scene, '/assets/run.glb', 'run'),
]);

// 5. Play / crossfade
character.playAnimation('idle', { loop: true });
character.crossfadeTo('run', { duration: 0.3, loop: true });

FAQ:

If you want depth-correct mixing of GLB models with splats, set depth: true on Scene.create - otherwise PC standard meshes paint in submission order.

The engine does not include physics, does not ship Ammo, and has no opinion about gravity or simulation step. It can register PlayCanvas's Ammo-backed RigidBodyComponentSystem + CollisionComponentSystem if you ask for them.


Licence

MIT. See LICENSE.