# manifold-3d

> Geometry library for topological robustness

Latest version **3.5.5** (published 2026-11-13) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install manifold-3d
pnpm add manifold-3d
yarn add manifold-3d
bun add manifold-3d
```

Provides the command `manifold-cad`.

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 3.5.5 |
| Published | 2026-11-13 |
| First published | 2022-10-23 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 11 |
| Unpacked size | 2.7 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 2390 |
| Maintainers | pca006132, elalish |
| Keywords | 3D, mesh, manifold, geometry, solid, CAD, triangle, SDF |

## Links

- npm: https://www.npmjs.com/package/manifold-3d
- Repository: https://github.com/elalish/manifold
- Homepage: https://github.com/elalish/manifold#readme
- Issues: https://github.com/elalish/manifold/issues
- npm.io page: https://npm.io/package/manifold-3d

## Dependencies (11)

- [fflate](https://npm.io/package/fflate.md) ^0.8.0
- [commander](https://npm.io/package/commander.md) ^13.1.0
- [magic-string](https://npm.io/package/magic-string.md) ^0.30.21
- [fast-xml-parser](https://npm.io/package/fast-xml-parser.md) ^5.4.2
- [convert-source-map](https://npm.io/package/convert-source-map.md) ^2.0.0
- [@jscadui/3mf-export](https://npm.io/package/@jscadui/3mf-export.md) ^0.5.0
- [@gltf-transform/core](https://npm.io/package/@gltf-transform/core.md) ^4.2.0
- [@jridgewell/resolve-uri](https://npm.io/package/@jridgewell/resolve-uri.md) ^3.1.2
- [@gltf-transform/functions](https://npm.io/package/@gltf-transform/functions.md) ^4.2.0
- [@jridgewell/trace-mapping](https://npm.io/package/@jridgewell/trace-mapping.md) ^0.3.31
- [@gltf-transform/extensions](https://npm.io/package/@gltf-transform/extensions.md) ^4.2.0

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 3.5.5 (latest) — 2026-11-13
- 3.5.4 — 2026-09-25
- 3.5.3 — 2026-09-07
- 3.5.1 — 2026-06-04
- 3.5.0 — 2026-05-23
- 3.4.1 — 2026-03-26
- 3.4.0 — 2026-03-14
- 3.3.2 — 2025-11-15
- 3.3.1 — 2025-11-14
- 3.3.0 — 2025-11-14
- 3.2.1 — 2025-08-06
- 3.2.0 — 2025-07-15
- 3.1.1 — 2025-06-01
- 3.1.0 — 2025-05-14
- 3.0.1 — 2024-12-27
- … 14 more at https://npm.io/package/manifold-3d/versions

## README

[![codecov](https://codecov.io/github/elalish/manifold/branch/master/graph/badge.svg?token=IIA8G5HVS7)](https://codecov.io/github/elalish/manifold)
[![npm version](https://badge.fury.io/js/manifold-3d.svg)](https://badge.fury.io/js/manifold-3d)
[![twitter](https://img.shields.io/twitter/follow/manifoldcad?style=social&logo=twitter)](https://twitter.com/intent/follow?screen_name=manifoldcad)

[**ManifoldCAD User Guide**](https://manifoldcad.org/docs/jsuser/) | [**JS/TS/WASM API**](https://manifoldcad.org/docs/jsapi/) | [**C++ Documentation**](https://manifoldcad.org/docs/html/classmanifold_1_1_manifold.html) |  [**Algorithm Documentation**](https://github.com/elalish/manifold/wiki/Manifold-Library) | [**Blog Posts**](https://elalish.blogspot.com/search/label/Manifold)

<!-- #region IncludeInUserGuide -->

A [manifold mesh](https://github.com/elalish/manifold/wiki/Manifold-Library#manifoldness) is a mesh that represents a solid object, and so is very important in manufacturing, CAD, structural analysis, etc.  'Manifold' implies that there are no gaps or tears, and that all faces are oriented outwards.

## Manifold Library

[ [Using Manifold](https://manifoldcad.org/docs/jsapi/documents/Using_Manifold.html) |  [Examples](https://manifoldcad.org/docs/jsapi/documents/Manifold_Examples.html) | [Manifold WASM Developer Guide](https://manifoldcad.org/docs/jsapi/) ]

[Manifold](https://github.com/elalish/manifold) is a geometry library dedicated to creating and operating on manifold triangle meshes.  It is available as a WASM module that runs in any modern browser.

Our primary goal is reliability: guaranteed manifold output without caveats or edge cases. Our secondary goal is performance: efficient algorithms that make extensive use of parallelization, or pipelining when only a single thread is available.

## [ManifoldCAD.org](https://manifoldcad.org)

<img alt="A metallic Menger sponge" src="https://manifoldcad.org/samples/models/mengerSponge192.png" style="float:right">

[ [ManifoldCAD](https://manifoldcad.org) | [ManifoldCAD User Guide](https://manifoldcad.org/docs/jsuser/) ]

If you like OpenSCAD / JSCAD, you might also like ManifoldCAD - our own solid modelling web app where you script in JS/TS and save a GLB or 3MF file. It contains several examples showing how to use our API to make interesting shapes. You may notice that some of these examples bear a certain resemblance to my OpenSCAD designs on [Thingiverse](https://www.thingiverse.com/emmett), which is no accident. Much as I love OpenSCAD, this library is dramatically faster and the code is more flexible.

manifoldCAD = manifold + [TypeScript](https://www.typescriptlang.org/) + [glTF](https://www.khronos.org/gltf/)

<div style="clear:both"></div>

<!-- #endregion IncludeInUserGuide -->
<!-- #region NoStlPlease -->

## 3D Formats

[ [EXT_mesh_manifold](https://manifoldcad.org/docs/jsapi/modules/manifold-gltf.html) ]

Please avoid saving to STL files! They are lossy and inefficient - when saving a manifold mesh to STL there is no guarantee that the re-imported mesh will still be manifold, as the topology is lost. Please consider using [3MF](https://3mf.io/) instead, as this format was designed from the beginning for manifold meshes representing solid objects. 

If you use vertex properties for things like interpolated normals or texture UV coordinates, [glTF](https://www.khronos.org/Gltf) is recommended, specifically using the [`EXT_mesh_manifold`](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Vendor/EXT_mesh_manifold/README.md) extension. This allows for the lossless and efficient transmission of manifoldness even with property boundaries. Try our [make-manifold](https://manifoldcad.org/make-manifold) page to add this extension to your existing glTF/GLB models. 

<!-- #endregion NoStlPlease -->

## About the author

This library was started by [Emmett Lalish](https://elalish.blogspot.com/), currently a senior rendering engineer at Wētā FX. This was my 20% project when I was a Google employee, though my day job was maintaining [\<model-viewer\>](https://modelviewer.dev/). I was the first employee at a 3D video startup, [Omnivor](https://www.omnivor.io/), and before that I worked on 3D printing at Microsoft, including [3D Builder](https://www.microsoft.com/en-us/p/3d-builder/9wzdncrfj3t6?activetab=pivot%3Aoverviewtab). Originally an aerospace engineer, I started at a small DARPA contractor doing seedling projects, one of which became [Sea Hunter](https://en.wikipedia.org/wiki/Sea_Hunter). I earned my doctorate from the University of Washington in control theory and published some [papers](https://www.researchgate.net/scientific-contributions/75011026_Emmett_Lalish).

---
_Source: https://npm.io/package/manifold-3d · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
