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

@gnuton/super-billboard-backer

v0.0.23

Published

A 3D object to 2D sprite baker for game artists.

Readme

SuperBillboardBacker

A sophisticated TypeScript library and interactive tool designed for game artists to "bake" 3D objects into high-quality 2D sprite frames. It features a configurable orbital camera system that captures models from multiple angles, perfect for creating assets for 2D isometric, top-down, or side-scrolling games.

Features

  • Orbital Capture: Define distance, elevation, and number of frames.
  • Three.js Integration: Seamlessly loads GLTF, GLB, and OBJ formats.
  • High-Resolution Baking: Captures frames to a stitched sprite sheet.
  • Interactive Preview: Real-time visualization of capture orbits and camera positions.
  • Embeddable UI: A full-featured, framework-agnostic UI class ready to be dropped into any div.
  • Developer Friendly: Written in modern TypeScript with full ESM support.

Demo

Check out the interactive tool: this is the demo

Quick Start

npm install @gnuton/super-billboard-backer
import { SpriteBaker } from '@gnuton/super-billboard-backer';

const baker = new SpriteBaker();
const result = await baker.bake({
  model: 'path/to/model.glb',
  frameCount: 16,
  isAutoDistance: true,
  elevation: 30, // Degrees
});

// Download or use the generated sprite sheet

Embedding in your App

The library provides a standalone, embeddable UI class called BillboardBackerUI. This allows you to integrate the full baking tool into your own web application with just a few lines of code.

Usage

import { BillboardBackerUI } from '@gnuton/super-billboard-backer';
import '@gnuton/super-billboard-backer/dist/ui/BillboardBackerUI.css';

const container = document.getElementById('my-container');
const ui = new BillboardBackerUI({
  container: container,
  theme: 'dark', // 'dark' | 'light' | customRecord
  onBakeComplete: (dataUrl) => {
    console.log('Bake finished!', dataUrl);
  }
});

// Programmatic control
ui.loadModel('url/to/model.glb');
ui.setParams({ frameCount: 32 });

Skinning & Theming

BillboardBackerUI is highly skinnable via CSS variables. You can override the default look by setting variables on your container or globally:

#my-container {
  --sbb-primary-color: #ff5722;
  --sbb-bg-color: #1a1a1a;
  --sbb-radius: 4px;
}

Available variables:

  • --sbb-primary-color: Accent/Active color.
  • --sbb-bg-color: Main background.
  • --sbb-text-color: Main text color.
  • --sbb-glass-bg: Panel backgrounds.
  • --sbb-viewport-bg: 3D viewport background.
  • --sbb-radius: Main border radius.

Development & Demo Setup

To test the library and the demo application locally:

  1. Clone and Install:

    npm install
  2. Build the Library: The demo relies on the core library logic.

    npm run build
  3. Run the Demo: Navigate to the demo directory and start the dev server.

    cd demo
    npm install
    npm run dev
  4. Testing the Tool:

    • Once the server is running (usually at http://localhost:3000), open your browser.
    • Upload a .glb or .gltf file.
    • Adjust the Frames, Distance, and Elevation sliders.
    • Observe the blue "Orbit Preview" ring in the 3D viewport.
    • Click BAKE SPRITES and verify the generated sprite sheet on the right panel.

Documentation

Detailed specifications can be found in the docs directory.

License

GPL-3.0