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

3d-tiles-optimize

v0.0.9

Published

Optimize 3d-tiles by 3d-tiles-tools with glTF-Transform

Readme

3d-tiles-optimize

Overview

The 3D Tiles Optimize are a tool for optimizing 3D Tiles data, replace optimizeGlb contentStage lib from gltf-pipeline to glTF-Transform.

Getting Started

Install Node.js if you don't already have it, and then:

npm install -g 3d-tiles-optimize

Using 3d-tiles-optimize as a command-line tool:

3d-tiles-optimize optimize ./input ./output

Optimize Options

@see glTF-Transform Configuration

| Option | Description | Types | Default | |----------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------|---------| | 🐦 COMMON | | --logLevel | The log level. | trace / debug / info / warn / error / fatal / silent | warn | | 🌓 PIPELINE | | --combine | Combines all external tilesets into a single tileset. | boolean | false | | 📦 PACKAGE | | --dedup | Deduplicate accessors and textures. | boolean | true | | --prune | Removes properties from the file if they are not referenced by a Scene. | boolean | true | | --prune.attributes | Whether to prune unused vertex attributes. | boolean | true | | --prune.solidTextures | Whether to prune solid (single-color) textures, converting them to material factors. | boolean | true | | 🌍 SCENE | | --instance | Create GPU instances from shared mesh references. | boolean | true | | --instance.min | Number of instances required for instancing. | number | 5 | | --flatten | Flatten scene graph. | number | true | | 🫖 GEOMETRY | | --draco | Compress geometry with Draco. | boolean | false | | --meshopt | Compress geometry and animation with Meshopt. | boolean | true | | --meshopt.level | Meshopt compress level. | medium / high | high | | --quantize | Quantize geometry, reducing precision and memory. | boolean | false | | --weld | Merge equivalent vertices. Required when simplifying geometry. | boolean | true | | --simplify | Simplify mesh geometry with meshoptimizer. | boolean | true | | --simplify.error | Simplification error tolerance, as a fraction of mesh extent. | number | 0.0001 | | --simplify.ratio | Target ratio (0–1) of vertices to keep. | number | 0.0 | | --simplify.lockBorder | Whether to lock topological borders of the mesh. | boolean | false | | 🎨 MATERIAL | | --palette | Creates palette textures and merges materials. | boolean | true | | --palette.min | Minimum number of blocks in the palette texture. If fewer unique material values are found, no palettes will be generated. | number | 5 | | --join | Join meshes and reduce draw calls. Requires --flatten. | boolean | true | | --join.meshes | Join distinct meshes and nodes. Requires --join. | boolean | true | | --join.named | Join named meshes and nodes. Requires --join. | boolean | true | | 🖼 TEXTURE | | --textureCompress | Texture compression format. KTX2 optimizes VRAM usage and performance; AVIF and WebP optimize transmission size. Auto recompresses in original format. | ktx2 / webp / avif / auto / false | webp | | --textureCompress.resize | Resizes textures to given maximum [width,height] | false, preserving aspect ratio. Presets "nearest-pot", "ceil-pot", and "floor-pot" resize textures to power-of-two dimensions. | [number,number] / nearest-pot / ceil-pot / floor-pot / false | false | | ⏯️ ANIMATION | | --resample | Resample animations, losslessly deduplicating keyframes | boolean | true | | --sparse | Reduces storage for zero-filled arrays. If disabled, existing accessors (sparse or not) are left unchanged. | boolean | true |