@glbforge/core
v0.8.0
Published
Analyze, optimize, extrude, and export AI-generated 3D assets for the web — budgets, lint rules, KTX2, LODs, STL.
Maintainers
Readme
@glbforge/core
The engine behind glbforge: pure TypeScript analysis, optimization, extrusion, and export for glTF/GLB assets.
analyze(doc, {profile})— geometry/texture/material stats, welded-space topology (boundary, non-manifold, truly-redundant vertices), named lint rules with fixes, budget scoringoptimize(doc, {profile, textureFormat})— dedup → palette/join → weld → meshopt-simplify (error ladder) → smooth normals → WebP or KTX2 → meshoptextrudeImage(bytes, opts)— raster/SVG silhouette → beveled watertight mesh with the source image projected as texturetoStl(doc, {targetSizeMm})— binary STL, world transforms baked, z-up- Profiles:
mobile-hero,desktop-hero,product-configurator
Docs: https://github.com/glbforge/glbforge
