Turfjs/turf ? reverse-engineered prompt

Reverse engineered prompt

Build me a modular geospatial toolkit in TypeScript that helps people work with maps and location data in JavaScript.

I want it to handle common spatial tasks like measuring distances, checking whether points are inside shapes, finding intersections, and working with GeoJSON in a simple way. It should also include helpers for creating and transforming GeoJSON objects, plus a few useful tools for classification and basic statistics so people can analyze geographic data without writing everything from scratch.

Make it usable both in the browser and in Node, and keep the pieces small so people can import only what they need. If there are examples or docs, make them easy to follow so someone can copy and use the functions right away. Please make sure the library is well tested and works cleanly with modern JavaScript runtimes, and look up current docs online if you need to.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab