{"adoption": {"forks": 226, "observed_at": "2026-08-28T04:07:02.385501+00:00", "stars": 2580}, "canonical_url": "https://ross.abutalabs.com/products/earcut", "card": {"archived": false, "artifact_type": "library", "description": "The fastest and smallest JavaScript polygon triangulation library for your WebGL apps", "domain": ["graphics", "web-development"], "enriched": true, "function": ["graphics", "math", "parser"], "health_score": 96, "homepage": "https://mapbox.github.io/earcut/viz/", "language": "JavaScript", "license": "ISC", "license_family": "permissive", "maturity": "stable", "member_repos": ["mapbox/earcut"], "name": "mapbox/earcut", "platform": ["browser", "cross-platform"], "pushed_at": "2026-08-02T08:44:32+00:00", "repo": "mapbox/earcut", "stars": 2580, "tags": ["triangulation", "tessellation", "computational-geometry", "delaunay", "webgl", "polygon", "ear-clipping", "algorithms", "maps", "nodejs"], "topics": ["triangulation", "tessellation", "polygon", "algorithm", "computational-geometry", "javascript", "delaunay"], "urls": [], "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"], "what_it_is": "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.", "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"], "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"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/earcut", "repo": "mapbox/earcut", "role": "main", "score": 95}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:07:02.385501+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T02:22:38.941814+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "58229ccbe3e4a5de0b2c8722d5ad04e5aeb674b773b81f119b64c2b31dc7e60f", "fetched_at": "2026-08-28T04:07:02.385501+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mapbox/earcut"}, {"content_hash": "5e48f87f3452de2a8ad4070dd0af5aea23b4425baa41f1bef0cc0c90f12b6802", "fetched_at": "2026-08-29T10:05:27.168468+00:00", "kind": "homepage", "missing": false, "url": "https://mapbox.github.io/earcut/viz/"}, {"content_hash": "42b3de897d046ff72f18a07f764a63db72a29778d169b754e5d286cc3b3f75da", "fetched_at": "2026-08-29T10:05:27.177383+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/earcut"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:07:02.385501+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T02:22:38.941814+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "58229ccbe3e4a5de0b2c8722d5ad04e5aeb674b773b81f119b64c2b31dc7e60f", "fetched_at": "2026-08-28T04:07:02.385501+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mapbox/earcut"}, {"content_hash": "5e48f87f3452de2a8ad4070dd0af5aea23b4425baa41f1bef0cc0c90f12b6802", "fetched_at": "2026-08-29T10:05:27.168468+00:00", "kind": "homepage", "missing": false, "url": "https://mapbox.github.io/earcut/viz/"}, {"content_hash": "42b3de897d046ff72f18a07f764a63db72a29778d169b754e5d286cc3b3f75da", "fetched_at": "2026-08-29T10:05:27.177383+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/earcut"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T02:22:38.941814+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "58229ccbe3e4a5de0b2c8722d5ad04e5aeb674b773b81f119b64c2b31dc7e60f", "fetched_at": "2026-08-28T04:07:02.385501+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mapbox/earcut"}, {"content_hash": "5e48f87f3452de2a8ad4070dd0af5aea23b4425baa41f1bef0cc0c90f12b6802", "fetched_at": "2026-08-29T10:05:27.168468+00:00", "kind": "homepage", "missing": false, "url": "https://mapbox.github.io/earcut/viz/"}, {"content_hash": "42b3de897d046ff72f18a07f764a63db72a29778d169b754e5d286cc3b3f75da", "fetched_at": "2026-08-29T10:05:27.177383+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/earcut"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:07:02.385501+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:07:02.385501+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:07:02.385501+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T02:22:38.941814+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "58229ccbe3e4a5de0b2c8722d5ad04e5aeb674b773b81f119b64c2b31dc7e60f", "fetched_at": "2026-08-28T04:07:02.385501+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mapbox/earcut"}, {"content_hash": "5e48f87f3452de2a8ad4070dd0af5aea23b4425baa41f1bef0cc0c90f12b6802", "fetched_at": "2026-08-29T10:05:27.168468+00:00", "kind": "homepage", "missing": false, "url": "https://mapbox.github.io/earcut/viz/"}, {"content_hash": "42b3de897d046ff72f18a07f764a63db72a29778d169b754e5d286cc3b3f75da", "fetched_at": "2026-08-29T10:05:27.177383+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/earcut"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:07:02.385501+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:07:02.385501+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T02:22:38.941814+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "58229ccbe3e4a5de0b2c8722d5ad04e5aeb674b773b81f119b64c2b31dc7e60f", "fetched_at": "2026-08-28T04:07:02.385501+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mapbox/earcut"}, {"content_hash": "5e48f87f3452de2a8ad4070dd0af5aea23b4425baa41f1bef0cc0c90f12b6802", "fetched_at": "2026-08-29T10:05:27.168468+00:00", "kind": "homepage", "missing": false, "url": "https://mapbox.github.io/earcut/viz/"}, {"content_hash": "42b3de897d046ff72f18a07f764a63db72a29778d169b754e5d286cc3b3f75da", "fetched_at": "2026-08-29T10:05:27.177383+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/earcut"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:07:02.385501+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:07:02.385501+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:07:02.385501+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T02:22:38.941814+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "58229ccbe3e4a5de0b2c8722d5ad04e5aeb674b773b81f119b64c2b31dc7e60f", "fetched_at": "2026-08-28T04:07:02.385501+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mapbox/earcut"}, {"content_hash": "5e48f87f3452de2a8ad4070dd0af5aea23b4425baa41f1bef0cc0c90f12b6802", "fetched_at": "2026-08-29T10:05:27.168468+00:00", "kind": "homepage", "missing": false, "url": "https://mapbox.github.io/earcut/viz/"}, {"content_hash": "42b3de897d046ff72f18a07f764a63db72a29778d169b754e5d286cc3b3f75da", "fetched_at": "2026-08-29T10:05:27.177383+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/earcut"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:07:02.385501+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:07:02.385501+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T02:22:38.941814+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "58229ccbe3e4a5de0b2c8722d5ad04e5aeb674b773b81f119b64c2b31dc7e60f", "fetched_at": "2026-08-28T04:07:02.385501+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mapbox/earcut"}, {"content_hash": "5e48f87f3452de2a8ad4070dd0af5aea23b4425baa41f1bef0cc0c90f12b6802", "fetched_at": "2026-08-29T10:05:27.168468+00:00", "kind": "homepage", "missing": false, "url": "https://mapbox.github.io/earcut/viz/"}, {"content_hash": "42b3de897d046ff72f18a07f764a63db72a29778d169b754e5d286cc3b3f75da", "fetched_at": "2026-08-29T10:05:27.177383+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/earcut"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T02:22:38.941814+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "58229ccbe3e4a5de0b2c8722d5ad04e5aeb674b773b81f119b64c2b31dc7e60f", "fetched_at": "2026-08-28T04:07:02.385501+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mapbox/earcut"}, {"content_hash": "5e48f87f3452de2a8ad4070dd0af5aea23b4425baa41f1bef0cc0c90f12b6802", "fetched_at": "2026-08-29T10:05:27.168468+00:00", "kind": "homepage", "missing": false, "url": "https://mapbox.github.io/earcut/viz/"}, {"content_hash": "42b3de897d046ff72f18a07f764a63db72a29778d169b754e5d286cc3b3f75da", "fetched_at": "2026-08-29T10:05:27.177383+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/earcut"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T02:22:38.941814+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "58229ccbe3e4a5de0b2c8722d5ad04e5aeb674b773b81f119b64c2b31dc7e60f", "fetched_at": "2026-08-28T04:07:02.385501+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mapbox/earcut"}, {"content_hash": "5e48f87f3452de2a8ad4070dd0af5aea23b4425baa41f1bef0cc0c90f12b6802", "fetched_at": "2026-08-29T10:05:27.168468+00:00", "kind": "homepage", "missing": false, "url": "https://mapbox.github.io/earcut/viz/"}, {"content_hash": "42b3de897d046ff72f18a07f764a63db72a29778d169b754e5d286cc3b3f75da", "fetched_at": "2026-08-29T10:05:27.177383+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/earcut"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T02:22:38.941814+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "58229ccbe3e4a5de0b2c8722d5ad04e5aeb674b773b81f119b64c2b31dc7e60f", "fetched_at": "2026-08-28T04:07:02.385501+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mapbox/earcut"}, {"content_hash": "5e48f87f3452de2a8ad4070dd0af5aea23b4425baa41f1bef0cc0c90f12b6802", "fetched_at": "2026-08-29T10:05:27.168468+00:00", "kind": "homepage", "missing": false, "url": "https://mapbox.github.io/earcut/viz/"}, {"content_hash": "42b3de897d046ff72f18a07f764a63db72a29778d169b754e5d286cc3b3f75da", "fetched_at": "2026-08-29T10:05:27.177383+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/earcut"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 95, "longevity": 100, "rhythm": 91}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 4247, "days_push": 31, "days_rel": 62, "gap_med": 0, "n_releases_24m": 8}, "score": 95, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}