{"adoption": {"forks": 163, "observed_at": "2026-08-28T04:05:02.143946+00:00", "stars": 1550}, "canonical_url": "https://ross.abutalabs.com/products/polylabel", "card": {"archived": false, "artifact_type": "library", "description": "A fast algorithm for finding the pole of inaccessibility of a polygon (in JavaScript and C++)", "domain": ["graphics"], "enriched": true, "function": ["geospatial", "math"], "health_score": 93, "homepage": null, "language": "JavaScript", "license": "NOASSERTION", "license_family": "other", "maturity": "stable", "member_repos": ["mapbox/polylabel"], "name": "mapbox/polylabel", "platform": ["browser", "cross-platform", "cpp"], "pushed_at": "2026-06-25T10:36:23+00:00", "repo": "mapbox/polylabel", "stars": 1550, "tags": ["polygon", "geometry", "label-placement", "pole-of-inaccessibility", "computational-geometry", "algorithm", "maps", "geospatial", "algorithms", "nodejs"], "topics": [], "urls": [], "use_cases": ["find optimal label position inside a polygon", "compute the pole of inaccessibility of a polygon", "place map labels at the most spacious point of a region", "find the most distant internal point from a polygon outline", "calculate visual center of a polygon for annotation", "avoid label overlap by centering text in polygon interiors"], "what_it_is": "A fast JavaScript (and C++) library implementing an iterative grid algorithm to find the pole of inaccessibility of a polygon — the internal point farthest from the polygon outline. It is primarily used for optimal text label placement on polygons in maps and visualizations.", "when_to_avoid": ["you need a polygon centroid rather than the visual center", "you need label placement for points or lines rather than polygons", "you need a full geometry library rather than a single focused algorithm"], "when_to_choose": ["you need guaranteed global-optimum label placement within a given precision", "you work with GeoJSON-like polygon data in JavaScript or C++", "performance matters and centroid-based placement is insufficient for concave polygons"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/polylabel", "repo": "mapbox/polylabel", "role": "main", "score": 80}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:05:02.143946+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T04:30:19.601065+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "97aa4be0c0058d1a1fa9b6ba08379f548ae7e0dd11b1f4f523a1a300dadd417e", "fetched_at": "2026-08-28T04:05:02.143946+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mapbox/polylabel"}, {"content_hash": "0ca6a2a327ec853f56d1be607f8aa67303cd52e9b34e6b9fa580cacc6ce54d02", "fetched_at": "2026-08-29T11:31:13.005603+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/polylabel"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:05:02.143946+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T04:30:19.601065+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "97aa4be0c0058d1a1fa9b6ba08379f548ae7e0dd11b1f4f523a1a300dadd417e", "fetched_at": "2026-08-28T04:05:02.143946+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mapbox/polylabel"}, {"content_hash": "0ca6a2a327ec853f56d1be607f8aa67303cd52e9b34e6b9fa580cacc6ce54d02", "fetched_at": "2026-08-29T11:31:13.005603+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/polylabel"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T04:30:19.601065+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "97aa4be0c0058d1a1fa9b6ba08379f548ae7e0dd11b1f4f523a1a300dadd417e", "fetched_at": "2026-08-28T04:05:02.143946+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mapbox/polylabel"}, {"content_hash": "0ca6a2a327ec853f56d1be607f8aa67303cd52e9b34e6b9fa580cacc6ce54d02", "fetched_at": "2026-08-29T11:31:13.005603+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/polylabel"}], "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:05:02.143946+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:05:02.143946+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:05:02.143946+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T04:30:19.601065+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "97aa4be0c0058d1a1fa9b6ba08379f548ae7e0dd11b1f4f523a1a300dadd417e", "fetched_at": "2026-08-28T04:05:02.143946+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mapbox/polylabel"}, {"content_hash": "0ca6a2a327ec853f56d1be607f8aa67303cd52e9b34e6b9fa580cacc6ce54d02", "fetched_at": "2026-08-29T11:31:13.005603+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/polylabel"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:05:02.143946+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:05:02.143946+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T04:30:19.601065+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "97aa4be0c0058d1a1fa9b6ba08379f548ae7e0dd11b1f4f523a1a300dadd417e", "fetched_at": "2026-08-28T04:05:02.143946+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mapbox/polylabel"}, {"content_hash": "0ca6a2a327ec853f56d1be607f8aa67303cd52e9b34e6b9fa580cacc6ce54d02", "fetched_at": "2026-08-29T11:31:13.005603+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/polylabel"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:05:02.143946+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:05:02.143946+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:05:02.143946+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T04:30:19.601065+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "97aa4be0c0058d1a1fa9b6ba08379f548ae7e0dd11b1f4f523a1a300dadd417e", "fetched_at": "2026-08-28T04:05:02.143946+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mapbox/polylabel"}, {"content_hash": "0ca6a2a327ec853f56d1be607f8aa67303cd52e9b34e6b9fa580cacc6ce54d02", "fetched_at": "2026-08-29T11:31:13.005603+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/polylabel"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:05:02.143946+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:05:02.143946+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T04:30:19.601065+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "97aa4be0c0058d1a1fa9b6ba08379f548ae7e0dd11b1f4f523a1a300dadd417e", "fetched_at": "2026-08-28T04:05:02.143946+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mapbox/polylabel"}, {"content_hash": "0ca6a2a327ec853f56d1be607f8aa67303cd52e9b34e6b9fa580cacc6ce54d02", "fetched_at": "2026-08-29T11:31:13.005603+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/polylabel"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T04:30:19.601065+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "97aa4be0c0058d1a1fa9b6ba08379f548ae7e0dd11b1f4f523a1a300dadd417e", "fetched_at": "2026-08-28T04:05:02.143946+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mapbox/polylabel"}, {"content_hash": "0ca6a2a327ec853f56d1be607f8aa67303cd52e9b34e6b9fa580cacc6ce54d02", "fetched_at": "2026-08-29T11:31:13.005603+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/polylabel"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T04:30:19.601065+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "97aa4be0c0058d1a1fa9b6ba08379f548ae7e0dd11b1f4f523a1a300dadd417e", "fetched_at": "2026-08-28T04:05:02.143946+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mapbox/polylabel"}, {"content_hash": "0ca6a2a327ec853f56d1be607f8aa67303cd52e9b34e6b9fa580cacc6ce54d02", "fetched_at": "2026-08-29T11:31:13.005603+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/polylabel"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T04:30:19.601065+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "97aa4be0c0058d1a1fa9b6ba08379f548ae7e0dd11b1f4f523a1a300dadd417e", "fetched_at": "2026-08-28T04:05:02.143946+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mapbox/polylabel"}, {"content_hash": "0ca6a2a327ec853f56d1be607f8aa67303cd52e9b34e6b9fa580cacc6ce54d02", "fetched_at": "2026-08-29T11:31:13.005603+00:00", "kind": "registry_npm", "missing": false, "url": "https://registry.npmjs.org/polylabel"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 89, "longevity": 100, "rhythm": 58}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": ["no_license"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 3708, "days_push": 69, "days_rel": 69, "gap_med": null, "n_releases_24m": 1}, "score": 80, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}