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 🙏

© 2025 – Pkg Stats / Ryan Hefner

skin3d

v0.0.12

Published

A fast, customizable Minecraft skin viewer powered by Three.js. Easily render and preview Minecraft skins in 3D for your projects.

Readme

Skin3d

CI Status NPM Package MIT License Gitter Chat


Skin3d is a JavaScript library for displaying and animating Minecraft player models in the browser. It supports rendering skins, capes, elytras, and ears, and provides a simple API for customizing animations, camera controls, and backgrounds.


What is skin3d?

Skin3d is a JavaScript library for embedding interactive Minecraft player models in web applications. It supports HD skins, capes, elytras, ears, and name tags, along with built-in animations. You can customize camera controls, lighting, backgrounds, and extend functionality with your own features.


Why use skin3d?

  • Interactive 3D Minecraft player models in the browser
  • Supports all modern skin and cape formats
  • Easy to use, easy to extend
  • Customizable animations and controls
  • Works with any web framework or vanilla JS

Getting Started

Install via npm:

npm i skin3d

Basic Example

<div id="skin_view_container"></div>
import * as skin3d from 'skin3d';

const viewer = new skin3d.View({
  canvas: document.getElementById("skin_view_container"),
  width: 400,
  height: 600,
  skin: "img/skin.png"
});

viewer.autoRotate = true;
viewer.animation = new skin3d.WalkingAnimation();

Features at a Glance

  • Skin, Cape, Elytra, and Ears Rendering
  • Name Tag Support (with Minecraft font)
  • Orbit Controls (rotate, zoom, pan)
  • Customizable Lighting
  • Panorama and Image Backgrounds
  • Built-in Animations (walk, run, rotate, etc.)
  • Pause/Resume Rendering

API Highlights

  • View: The main class for rendering and controlling the player model.
  • PlayerObject: Access and control the skin, cape, elytra, and ears meshes.
  • NameTagObject: Display a floating name tag above the player.
  • Animations: Use built-in or custom animations for the player model.
  • Controls: Enable or disable camera rotation, zoom, and pan.
  • Lighting: Adjust ambient and camera-attached lights.
  • Backgrounds: Set solid colors, images, or panoramic backgrounds.

Customization

You can load new skins, capes, or ears at any time:

viewer.loadSkin("img/another_skin.png");
viewer.loadCape("img/cape.png");
viewer.loadEars("img/ears.png", { textureType: "standalone" });
viewer.background = "#222244";
viewer.loadPanorama("img/panorama.png");

Change camera and controls:

viewer.fov = 70;
viewer.zoom = 1.2;
viewer.controls.enableRotate = true;
viewer.controls.enableZoom = false;

Add or remove animations:

viewer.animation = new skin3d.WalkingAnimation();
viewer.animation.speed = 2;
viewer.animation.paused = false;
viewer.animation = null; // Remove animation

Advanced Usage

  • Lighting:
viewer.globalLight.intensity = 1.5;
viewer.cameraLight.intensity = 0.3;
  • Name Tags:
viewer.nameTag = "Steve";
viewer.nameTag = new skin3d.NameTagObject("Alex", { textStyle: "yellow" });
  • Responsive Sizing:
viewer.width = window.innerWidth;
viewer.height = window.innerHeight;

Font Setup

To display name tags in Minecraft style, add this to your CSS:

@font-face {
  font-family: 'Minecraft';
  src: url('/path/to/minecraft.woff2') format('woff2');
}

Project Structure

  • src/view.ts – Main viewer logic and rendering
  • src/model.ts – Player model and mesh management
  • src/animation.ts – Animation classes
  • src/nametag.ts – Name tag rendering

License

skin3d is released under the MIT License.


Links