# terra-draw

> Frictionless map drawing across mapping provider

Latest version **1.39.0** (published 2026-10-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install terra-draw
pnpm add terra-draw
yarn add terra-draw
bun add terra-draw
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.39.0 |
| Published | 2026-10-28 |
| First published | 2022-11-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 1133 |
| Author | James Milner |
| Maintainers | jamesmilneruk |
| Keywords | map, drawing, draw, map drawing, geometry, arcgis, leaflet, maplibre, openlayers, mapbox |

## Links

- npm: https://www.npmjs.com/package/terra-draw
- Repository: https://github.com/JamesLMilner/terra-draw
- Homepage: https://github.com/JamesLMilner/terra-draw#readme
- Issues: https://github.com/JamesLMilner/terra-draw/issues
- npm.io page: https://npm.io/package/terra-draw

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.39.0 (latest) — 2026-10-28
- 1.38.0 — 2026-10-18
- 1.37.0 — 2026-10-06
- 1.36.0 — 2026-10-03
- 1.35.0 — 2026-09-20
- 1.34.0 — 2026-09-17
- 1.33.0 — 2026-09-01
- 1.32.3 — 2026-08-08
- 1.32.2 — 2026-07-22
- 1.32.1 — 2026-07-21
- 1.32.0 — 2026-07-12
- 1.31.2 — 2026-06-17
- 1.31.1 — 2026-06-07
- 1.31.0 — 2026-05-29
- 1.30.1 — 2026-05-24
- … 138 more at https://npm.io/package/terra-draw/versions

## README

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="./assets/logo-dark-mode.png">
  <source media="(prefers-color-scheme: light)" srcset="./assets/logo.png">
  <img alt="Terra Draw logo" src="./assets/logo.png" width="400px">
</picture>

<p></p>

![Terra Draw CI Badge](https://github.com/JamesLMilner/terra-draw/actions/workflows/ci.yml/badge.svg)
[![npm version](https://badge.fury.io/js/terra-draw.svg)](https://badge.fury.io/js/terra-draw)

Frictionless map drawing across mapping libraries.

Terra Draw centralizes map drawing logic and provides a host of out-of-the-box drawing modes that work across different JavaScript mapping libraries. It also allows you to bring your own modes!

### Supported Mapping Libraries

Terra Draw works with your mapping library of choice via adapters. Please pick the adapter for the mapping library you are working with:

* [terra-draw-maplibre-gl-adapter](https://www.npmjs.com/package/terra-draw-maplibre-gl-adapter)
* [terra-draw-leaflet-adapter](https://www.npmjs.com/package/terra-draw-leaflet-adapter)
* [terra-draw-google-maps-adapter](https://www.npmjs.com/package/terra-draw-google-maps-adapter)
* [terra-draw-mapbox-gl-adapter](https://www.npmjs.com/package/terra-draw-mapbox-gl-adapter)
* [terra-draw-openlayers-adapter](https://www.npmjs.com/package/terra-draw-openlayers-adapter)
* [terra-draw-arcgis-adapter](https://www.npmjs.com/package/terra-draw-arcgis-adapter)

### Getting Started

* [Getting started guide](https://github.com/JamesLMilner/terra-draw/blob/main/guides/1.GETTING_STARTED.md)
* [API Docs](https://terradraw.io/#/api)
* [Repository](https://www.github.com/JamesLMilner/terra-draw)
* [Website](https://www.terradraw.io)

### License

MIT

---
_Source: https://npm.io/package/terra-draw · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
