# Turf: 7.6 out of 10

A strong pick. 6th of 8 in [Map libraries](https://elestia.ai/opensource/maps/index.md).

Turf is the standard JavaScript library for geospatial analysis on GeoJSON: distances, areas, buffers, boolean tests, clustering and more. It draws no maps. Use it next to a map renderer such as MapLibre or Leaflet. For the analysis side of map work it is the default pick today, kept up by a small volunteer team.

**Best for:** Any JS/TS project that needs to measure, test or transform GeoJSON shapes in the browser or in Node, next to whatever map renderer it uses.

## Scores

- **Overall: 7.6** (likely 6.5 to 8.6)
  - Claude Opus 5.5 (7.5): Turf is the clear default for geospatial analysis in JS and has no real peer in this bundle, since the other projects render maps. It is well maintained for a volunteer project, but its correctness edge cases, thin funding and below-median growth keep it out of the top tier.
  - GPT-6.2 Sol (7.6): Turf is a strong pick for new projects that need browser or Node.js GeoJSON calculations. Its typed modules pair well with MapLibre GL JS for vector maps or OpenLayers for projects that need more control over map layers and projections. Version 7.4 shows ongoing maintenance, while known geometry edge cases and recent upgrade regressions limit how confidently it can be recommended across workloads.
- **Needed by many: 4.0** (likely 3.0 to 5.1)
  - Claude Opus 5.5 (4.5): Turf serves developers who work with places, shapes and distances. That is a clear but sizeable niche inside web development. It runs with any map renderer, in the browser and in Node, so it is not tied to one framework. Many map apps only show markers and never need analysis, which keeps the score in the middle.
  - GPT-6.2 Sol (3.5): Turf serves a clear niche within mapping: projects that need to calculate something from geographic data. It works in browsers and Node.js across frameworks, while interactive display requires a renderer. The available mapping survey describes what map developers need and gives little basis for estimating that group's share of all JavaScript developers.
- **Helps a lot: 7.8** (likely 6.7 to 8.8)
  - Claude Opus 5.5 (7.5): Turf has the broadest set of GeoJSON analysis functions in JS. It is easy to use, it is typed, and AI agents know it well. The v7 releases fixed many correctness bugs, but its boolean and overlay functions have a history of edge-case errors and reverted fixes. Its approximations, such as buffer, are weak at large scale. JSTS is more rigorous for heavy topology work but much harder to use.
  - GPT-6.2 Sol (8.0): Turf 7.4 covers common GeoJSON calculations with typed functions and worked examples that give coding agents clear signatures to follow. The release fixes several containment cases, and users still report incorrect results near the date line. An independent point-in-polygon benchmark found Turf fast in absolute terms and slower than GEOS-WASM on that test. Its age and narrow workload leave performance across the rest of Turf uncertain.
- **Holds up over time: 6.8** (likely 5.7 to 7.9)
  - Claude Opus 5.5 (6.5): Maintenance is active: 135 commits and 6 releases in the last year, a push four days before the read date, and many first-time contributors. Work rests mostly on two volunteer maintainers. Open Collective shows a budget of about $944 a year. Breaking changes are rare, but some patches had to be reverted. No successor threatens it.
  - GPT-6.2 Sol (7.0): Six releases, 135 commits, and a November push show active maintenance. Core fixes and release work are concentrated among a few contributors, and public donation funding is modest. Recent releases repaired CommonJS and type regressions, while an open line-snapping fix is planned for v8. The backlog and uneven turnaround leave some uncertainty about upgrade costs.
- **Used widely: 5.7** (likely 4.6 to 6.9)
  - Claude Opus 5.5 (7.0): The umbrella package has about 9.3M downloads every 4 weeks, and many projects install single @turf/* modules on top of that. Its downloads grew by a ratio of 2.9, below the 4.1 median, so it is losing ground in relative terms. The dependents count is moderate. Turf is still the analysis library that most map projects pick.
  - GPT-6.2 Sol (4.4): The main package rose from 3.20 million to 9.26 million installs in four weeks, a 2.90× increase that trails the 4.1× catalog baseline. The 2,480 observed dependent repositories put Turf above MapLibre GL JS and deck.gl in this index, and well below Leaflet and OpenLayers. Automated and indirect installs inflate the package count, while individual modules and CDN loads escape it. With no matched posts in the supplied Hacker News or Bluesky data, recent direct adoption is hard to pin down.
- **Vouched for: 6.8** (likely 5.4 to 8.1)
  - Claude Opus 5.5 (6.0): Turf has long been recommended in the docs of map vendors such as Mapbox and 2GIS, and Mapbox funded it in the past. Independent comparisons treat it as the go-to toolkit for GeoJSON analysis. There is little current survey data or independent benchmarking, and it gets almost no attention on HN or Bluesky.
  - GPT-6.2 Sol (7.5): Mapbox, MapLibre, and OpenLayers document Turf integrations, and Geoman ships Turf functions in its geometry editor. That gives it backing across several mapping stacks. The independent benchmark covers a single operation, and current satisfaction and retention data are scarce.
- **Safe: 7.0** (likely 5.9 to 8.1)
  - Claude Opus 5.5 (7.0): There are no known advisories, and the licence is MIT. The Scorecard is 6.4: code review, token permissions and SAST all score 0. The umbrella package has 117 dependencies, mostly the project's own @turf modules. Releases now use an OIDC-based workflow.
  - GPT-6.2 Sol (7.0): Turf uses the permissive MIT licence, and the OSV snapshot lists zero advisories. Version 7.4 uses npm trusted publishing with provenance. The full package has 117 direct dependencies, mostly sibling Turf modules, and the 6.4 Scorecard flags weak code review and workflow token permissions. Individual modules can reduce the dependency footprint, while the public workflow leaves uncertainty about who can authorize releases.

## Good

- It covers more geospatial operations on plain GeoJSON than any other JS library, from distance and bbox to union, isobands and DBSCAN clustering.
- Every function is its own @turf/* package, so apps can install only what they use and keep bundles small.
- It ships TypeScript types, ESM and CJS builds, and a browser bundle, and it works with any map library.
- The v7 line gets steady releases, many correctness fixes, and a gradual move to TypeScript.

## Bad

- Its correctness record has gaps: the boolean, union and intersect functions have had edge-case bugs, and several fixes had to be reverted in v7.3.x patches.
- Buffers and other planar approximations lose accuracy at large distances and high latitudes.
- Funding is very small and releases rest on about two volunteer maintainers.
- The @turf/turf umbrella package pulls in 117 dependencies, and it is slow on very large datasets compared with native GIS tools.

## The numbers

- Downloads, 4 weeks: 9.3M
- In a year: ×2.9
- GitHub stars: 11k
- Commits, 12 months: 135
- Last npm release: Aug 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/Turfjs/turf
- npm: https://www.npmjs.com/package/@turf/turf

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
