# Turfjs/turf

A modular geospatial engine written in JavaScript and TypeScript

Repository: https://github.com/Turfjs/turf
Canonical: https://ross.abutalabs.com/products/turf
Homepage: https://turfjs.org
Language: TypeScript
License: MIT
License Family: permissive
Topics: javascript, algorithm, computational-geometry, geojson, turf, gis, typescript, geospatial, mapping
Last push: 2026-08-18T17:02:51+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 84, longevity 100
- inputs: {"age_days": 4717, "days_push": 15, "days_rel": 30, "gap_med": 47, "n_releases_24m": 8}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 10461, forks 1015 (observed 2026-08-28T04:10:42.044381+00:00)

## What it is
Turf is a modular geospatial engine written in JavaScript and TypeScript for spatial analysis. It provides traditional spatial operations, GeoJSON helper functions, and data classification/statistics tools that run in browsers or Node.js.

## Use cases
- calculate the area of a polygon in geo
- find a point at a given distance along a line
- buffer points and lines on a map
- compute voronoi diagrams in the browser
- classify geo data with jenks natural breaks
- intersect and union polygons server-side with node
- measure distance between two coordinates
- create a tin or contour from scattered points

## When to choose
- you need client-side or server-side spatial analysis without sending data to a server
- your data is GeoJSON and you work in JavaScript/TypeScript
- you want small modular functions you can import individually
- you're building mapping apps with Leaflet, Mapbox GL, or MapLibre

## When to avoid
- you need heavy-duty GIS operations like raster analysis or coordinate reprojection at scale
- you work in Python or another non-JS ecosystem
- you need a full desktop GIS engine with topology and network analysis

## Facets
- artifact type: library
- maturity: stable
- function: geospatial, math, data-science
- domain: web-development
- platform: browser, cross-platform
- tags: geo, gis, spatial-analysis, computational-geometry, typescript, modular, maps, geospatial, algorithms, nodejs, javascript

## Member repositories
- Turfjs/turf (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:42.044381+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:18:59.814614+00:00, confidence not recorded.
  - readme: https://github.com/Turfjs/turf (fetched 2026-08-28T04:10:42.044381+00:00, sha f415b04aa836)
  - homepage: https://turfjs.org (fetched 2026-08-29T08:18:29.418775+00:00, sha 93c295cc8dfe)
  - site_page: https://turfjs.org/docs/intro (fetched 2026-08-29T08:18:29.421261+00:00, sha 8cd2d3a8439d)
  - site_page: https://turfjs.org/docs/api/along (fetched 2026-08-29T08:18:29.422962+00:00, sha d09cd72dc7a0)
  - site_page: https://turfjs.org/docs/next/intro (fetched 2026-08-29T08:18:29.424567+00:00, sha aef250741135)
  - site_page: https://turfjs.org/docs/7.3.0/intro (fetched 2026-08-29T08:18:29.426095+00:00, sha 7bd25a877318)
  - site_page: https://turfjs.org/docs/7.2.0/intro (fetched 2026-08-29T08:18:29.428061+00:00, sha 3859861effd5)
  - site_page: https://turfjs.org/docs/7.1.0/intro (fetched 2026-08-29T08:18:29.429998+00:00, sha 8610273171fb)
  - site_page: https://turfjs.org/docs/7.0.0/intro (fetched 2026-08-29T08:18:29.431630+00:00, sha 403bd96e8afb)
  - site_page: https://turfjs.org/docs/6.5.0/intro (fetched 2026-08-29T08:18:29.433161+00:00, sha 41c739324f2b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
