MCPcopy Index your code
hub / github.com/Turfjs/turf

github.com/Turfjs/turf @v7.3.5

repository ↗ · DeepWiki ↗ · release v7.3.5 ↗ · + Follow
551 symbols 4,324 edges 429 files 315 documented · 57% 2 cross-repo links updated 3d agov7.3.5 · 2026-04-20★ 10,396240 open issues
README

turf

GitHub Actions Status Version Badge Gitter chat Backers on Open Collective Sponsors on Open Collective Coverage Status

A modular geospatial engine written in JavaScript

Turf is a JavaScript library for spatial analysis. It includes traditional spatial operations, helper functions for creating GeoJSON data, and data classification and statistics tools. Turf can be added to your website as a client-side module, or you can run Turf server-side with Node.js (see below).

Getting Started

Read our getting started guide to begin working with Turf.

Or explore the Turf API and examples at turfjs.org.

Runtime support

Turf is currently published to work with any reasonably modern Javascript runtime.

Node is a first class citizen, and we recommend using an Active or Maintenance LTS release.

Other runtimes, such as Deno or Bun, are not officially supported. We would be very interested to hear your experiences though.

Browser support

Turf uses Babel to transpile to a JavaScript version usable by most modern browsers. Any browser that matches the following criteria as defined by Browserslist:

> 0.25%, last 2 versions, fully supports es5, not dead

Contributors

This project exists thanks to all the people who contribute. If you are interested in helping, check out the Contributing Guide.

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

Extension points exported contracts — how you extend this code

NearestNeighborStatistics (Interface)
* Nearest neighbour statistics. * * @typedef {object} NearestNeighborStatistics * @property {(Units & AreaUnits)} uni
packages/turf-nearest-neighbor-analysis/index.ts
Options (Interface)
(no doc)
packages/turf-buffer/index.d.ts
NearestPoint (Interface)
(no doc)
packages/turf-nearest-point/index.ts
Point (Interface)
(no doc)
packages/turf-bezier-spline/lib/spline.ts
SDEProps (Interface)
(no doc)
packages/turf-standard-deviational-ellipse/index.ts
Entry (Interface)
(no doc)
packages/turf-collect/index.ts
MedianProperties (Interface)
(no doc)
packages/turf-center-median/index.ts
QuadratAnalysisResult (Interface)
(no doc)
packages/turf-quadrat-analysis/index.ts

Core symbols most depended-on inside this repo

point
called by 445
packages/turf-helpers/index.ts
push
called by 433
packages/turf-polygonize/lib/EdgeRing.ts
featureCollection
called by 239
packages/turf-helpers/index.ts
lineString
called by 231
packages/turf-helpers/index.ts
polygon
called by 199
packages/turf-helpers/index.ts
map
called by 169
packages/turf-polygonize/lib/EdgeRing.ts
forEach
called by 163
packages/turf-polygonize/lib/EdgeRing.ts
truncate
called by 80
packages/turf-truncate/index.ts

Shape

Function 434
Method 80
Class 24
Interface 13

Languages

TypeScript100%

Modules by API surface

packages/turf-helpers/index.ts27 symbols
packages/turf-shortest-path/lib/javascript-astar.ts26 symbols
packages/turf-polygonize/lib/Graph.ts18 symbols
packages/turf-meta/index.ts17 symbols
packages/turf-polygonize/lib/EdgeRing.ts16 symbols
packages/turf-unkink-polygon/lib/simplepolygon.ts15 symbols
packages/turf-geojson-rbush/index.ts14 symbols
packages/turf-boolean-contains/index.ts14 symbols
packages/turf-boolean-within/index.ts12 symbols
packages/turf-random/index.ts11 symbols
packages/turf-polygonize/lib/Node.ts11 symbols
packages/turf-isobands/index.ts11 symbols

Used by 2 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

@babel/core7.26.10 · 1×
@babel/preset-env7.26.9 · 1×
@eslint/eslintrc3.3.1 · 1×
@eslint/js9.31.0 · 1×
@monorepolint/cli0.6.0-alpha.5 · 1×
@monorepolint/config0.6.0-alpha.6 · 1×
@monorepolint/core0.6.0-alpha.6 · 1×
@monorepolint/rules0.6.0-alpha.6 · 1×
@placemarkio/check-geojson0.1.12 · 1×
@rollup/plugin-babel6.0.4 · 1×
@rollup/plugin-commonjs28.0.3 · 1×
@rollup/plugin-node-resolve16.0.1 · 1×

For agents

$ claude mcp add turf \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact