Ross ROSS = Recommend OSS · open-source software intelligence for agents

mapbox/earcut

The fastest and smallest JavaScript polygon triangulation library for your WebGL apps observed · 2026-08-28

github.com/mapbox/earcut · homepage · JavaScript · ISC (permissive) observed · 2026-08-28

Health v2 · maintenance only

95/100

  • Activity 95
  • Release rhythm 91
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: 0
  • age_days: 4247
  • days_rel: 62
  • days_push: 31
  • n_releases_24m: 8

Full methodology

Adoption not part of the score

2580 stars · 226 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

Earcut is a fast, tiny (4KB gzipped) JavaScript polygon triangulation library implementing a modified ear-slicing algorithm optimized with z-order curves and spatial hashing. It is designed for real-time triangulation in WebGL apps like Mapbox GL JS and Three.js, with optional Delaunay refinement.

Use cases

  • triangulate polygons for WebGL rendering
  • convert polygon vertices into triangle indices for Three.js meshes
  • triangulate map vector tile polygons in real time
  • handle polygons with holes and self-intersections
  • produce Delaunay-quality triangulations at a small performance cost

When to choose

  • you need fast real-time triangulation in the browser or Node.js
  • bundle size matters and you want a minimal dependency
  • you're rendering geographic or map polygons in WebGL
  • your input polygons are reasonably clean and speed matters more than guaranteed correctness

When to avoid

  • you need a guaranteed-correct triangulation on arbitrary or dirty input
  • you need high-quality triangulations with strict angle guarantees
  • you're working outside JavaScript/TypeScript ecosystems

Facets

library · maturity stable

graphics math parser graphics web-development browser cross-platform triangulation tessellation computational-geometry delaunay webgl polygon ear-clipping algorithms maps nodejs

3 sources

Member repositories

RepositoryRoleHealth v2
mapbox/earcutmain95

For agents

markdown · JSON · MCP: product_card(name="mapbox/earcut")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem