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

@threeforged/asset-analyzer

v0.1.2

Published

Analyze 3D assets for performance issues — high poly counts, duplicate materials, large textures, and more

Readme

@threeforged/asset-analyzer

Analyze 3D assets for performance issues. Scans GLB, GLTF, and OBJ files and reports potential problems like high polygon counts, duplicate materials, oversized textures, and more.

Installation

# 1. Install the ThreeForged CLI (one-time setup)
npm install -g @threeforged/cli

# 2. Install the asset analyzer plugin in your project
npm install --save-dev @threeforged/asset-analyzer

# 3. Analyze your assets
threeforged analyze ./models/

CLI Usage

# Analyze a single file
threeforged analyze model.glb

# Analyze a directory of assets
threeforged analyze ./models/

# Save report to file
threeforged analyze ./models/ -o report.txt

# JSON output
threeforged analyze ./models/ --json

Output

The analyzer produces a report with:

  • Summary — total meshes, triangles, vertices, materials, textures, draw calls, animations, GPU memory
  • Files table — per-file breakdown with format, size, mesh count, vertices, triangles, materials, draw calls, and animations
  • Warnings — actionable issues found in your assets

Analysis Rules

| Rule | Severity | What it checks | |---|---|---| | high-poly | warn/error | Meshes exceeding polygon thresholds (50k warn, 100k error) | | duplicate-materials | warn | Materials with identical properties that could be merged | | large-textures | warn | Textures exceeding max dimensions (default: 4096x4096) | | texture-memory | error | Total GPU texture memory exceeding budget (default: 64 MB) | | unindexed-geometry | warn | Meshes without index buffers (higher memory usage) | | duplicate-meshes | info | Meshes sharing identical geometry across files (instancing candidates) |

Programmatic API

import { analyzeAssets } from '@threeforged/asset-analyzer';

const report = await analyzeAssets('./models/');

console.log(report.metrics.totalTriangles);
console.log(report.warnings);

Configuration

Thresholds can be customized via threeforged.config.js:

export default {
  polyCountThresholds: { medium: 30000, large: 80000 },
  maxTextureSize: 2048,
  maxTextureMB: 32,
};

License

MIT