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

@hatiolab/things-scene

v10.0.0-beta.140

Published

A high-performance 2D/3D scene graph library for building interactive visual editors, combining HTML5 Canvas and Three.js to enable facility visualization, data-driven animations, and real-time monitoring dashboards

Readme

Things-Scene

A high-performance 2D/3D scene graph library for building interactive visual editors. It combines the HTML5 Canvas and Three.js to enable facility visualization, data-driven animations, and real-time monitoring dashboards from a single component model.

Features

  • High-performance Canvas-based 2D rendering
  • Three.js-based 3D rendering (WebGL)
  • Component-based architecture
  • Gizmo editing system (Move / Rotate / Scale)
  • Material3D preset system (metal, glass, plastic, wood, ceramic, rubber)
  • Seamless 2D ↔ 3D property binding
  • GLTF/GLB model loading with per-node control
  • ESM and UMD builds
  • TypeScript strict mode

Installation

npm install @hatiolab/things-scene

Usage

ESM (recommended)

import { Scene, Component } from '@hatiolab/things-scene'

// create and render a scene

UMD

<script src="node_modules/@hatiolab/things-scene/things-scene-min.js"></script>
<script>
  const { Scene, Component } = window['things-scene']
</script>

3D Features (v10)

Enabling 3D mode

Set threed: true on the model-layer to enable 3D mode. A single component model renders to both 2D and 3D, with live mode switching.

Material3D API

Control 3D materials through a component's material3d property:

component.set('material3d', {
  preset: 'glass',      // default, metal, glass, plastic, wood, ceramic, rubber
  metalness: 0.5,       // 0–1
  roughness: 0.3,       // 0–1
  opacity: 0.3,         // 0–1 (preset default or explicit)
  envMapIntensity: 1.5, // 0–3
  side: 'double',       // double, front, back
  castShadow: true,
  receiveShadow: false,
})

3D component types

Sphere, Cube, Cylinder, Banner, Camera, Wall, GLTFObject, Light, Sprite.

GLTF models

component.set('src', '/models/building.glb')
component.set('nodes', {
  Wall: { color: '#ff0000', opacity: 0.5 },
  Door: { visible: false },
})

Builds

| Format | File | Target | | ------ | --------------------- | -------------------------- | | ESM | things-scene.mjs | Modern browsers | | UMD | things-scene-min.js | Any environment | | Node | things-scene-transfer.mjs | Headless / SSR simulation |

npm run build       # types + rollup (production)
npm test            # 2460+ tests (mocha)
npm run type-check  # tsc --noEmit

Development

See DEVELOPMENT.md for the development setup.

Migrating v9 → v10

Breaking changes

  • strict: true — custom components must satisfy strictPropertyInitialization, etc.
  • Hardened evaluator sandbox — window / document / globalThis access is blocked (scene, setTimeout, Math, and similar remain available).
  • innerHTMLtextContent, with safe HTML rendering via DOMPurify.
  • The state getter is now a Proxy (behavior-compatible: get / has / ownKeys / spread all supported).
  • bounds return values are Object.freezed — copy with a spread before mutating.

See CHANGELOG.md for the full list.

License

This project is distributed under a proprietary license. License terms: http://things-scene.hatiolab.com/EULA/