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.43

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

Things-Scene은 웹 애플리케이션을 위한 2D/3D 씬 렌더링 및 편집 라이브러리입니다.

주요 특징

  • 캔버스 기반 고성능 2D 렌더링
  • Three.js 기반 3D 렌더링 (WebGL)
  • 컴포넌트 기반 아키텍처
  • 기즈모 편집 시스템 (Move/Rotate/Scale)
  • Material3D 프리셋 시스템 (metal, glass, plastic, wood, ceramic, rubber)
  • 2D↔3D 속성 자연스러운 연동
  • GLTF/GLB 모델 로딩 및 노드별 제어
  • ESM 및 UMD 형식 지원
  • TypeScript strict mode

설치

npm install @hatiolab/things-scene

사용 방법

ESM 방식 (권장)

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

// 씬 생성 및 렌더링

UMD 방식

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

3D 기능 (v10)

3D 모드 활성화

model-layer의 threed: true 속성으로 3D 모드를 활성화합니다.

Material3D API

컴포넌트의 material3d 속성으로 3D 재질을 제어합니다:

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 (프리셋 기본값 또는 명시적)
  envMapIntensity: 1.5, // 0~3
  side: 'double',      // double, front, back
  castShadow: true,
  receiveShadow: false,
})

3D 컴포넌트 타입

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

GLTF 모델

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

빌드

| 포맷 | 파일명 | 용도 | | ---- | ------------------- | ------------- | | ESM | things-scene.mjs | 최신 브라우저 | | UMD | things-scene-min.js | 모든 환경 |

npm run build
npm test        # 1170+ tests
npm run type-check

개발 환경

자세한 내용은 DEVELOPMENT.md를 참조하세요.

v9 → v10 마이그레이션

Breaking Changes

  • strict: true — strictPropertyInitialization 등 준수 필요
  • Evaluator 샌드박스 강화 — window/document 접근 차단
  • innerHTMLtextContent + DOMPurify
  • state getter가 Proxy로 변경 (동작 호환)
  • bounds 반환값 Object.freeze (수정 시 spread 복사 필요)

상세: CHANGELOG.md

라이선스

이 프로젝트는 독점 라이선스로 배포됩니다. 라이선스 정보: http://things-scene.hatiolab.com/EULA/