# @maplibre/mlt

> This package contains a JavaScript encoder and decoder for the experimental MapLibre Tile (MLT) vector tile format.

Latest version **1.3.0** (published 2026-09-12) · (MIT OR Apache-2.0) license · 0 weekly downloads

## Install

```sh
npm install @maplibre/mlt
pnpm add @maplibre/mlt
yarn add @maplibre/mlt
bun add @maplibre/mlt
```

## Health

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

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

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.3.0 |
| Published | 2026-09-12 |
| First published | 2025-10-15 |
| Weekly downloads | 0 |
| License | (MIT OR Apache-2.0) |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 1.2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 556 |
| Maintainers | maplibreorg, wayofthefuture, harelmazor, birkskyum, mwilsnd |
| Keywords | maplibre, gis, vector |

## Links

- npm: https://www.npmjs.com/package/@maplibre/mlt
- Repository: https://github.com/maplibre/maplibre-tile-spec
- Homepage: https://github.com/maplibre/maplibre-tile-spec/#readme
- Issues: https://github.com/maplibre/maplibre-tile-spec/issues
- npm.io page: https://npm.io/package/@maplibre/mlt

## Dependencies (1)

- [@mapbox/point-geometry](https://npm.io/package/@mapbox/point-geometry.md) ^1.1.0

## Recent versions

- 1.3.0 (latest) — 2026-09-12
- 0.0.1-alpha.12 (next) — 2025-10-24
- 1.2.1 — 2026-09-06
- 1.2.0 — 2026-08-19
- 1.1.12 — 2026-06-19
- 1.1.11 — 2026-05-27
- 1.1.10 — 2026-05-22
- 1.1.9 — 2026-04-23
- 1.1.8 — 2026-03-18
- 1.1.7 — 2026-03-08
- 1.1.6 — 2026-02-04
- 1.1.5 — 2026-02-03
- 1.1.4 — 2026-02-01
- 1.1.2 — 2025-12-02
- 1.1.1 — 2025-12-01
- … 8 more at https://npm.io/package/@maplibre/mlt/versions

## README

# maplibre-tile-spec

This package contains a JavaScript encoder and decoder for the experimental MapLibre Tile (MLT) vector tile format.

## Install

`npm install @maplibre/mlt`

## Quickstart

### Decode a tile

```js
import { decodeTile } from '@maplibre/mlt';

const data = fs.readFileSync(tilePath);
const tile = decodeTile(data);
```

### Encode a tile

```ts
import { encodeTile, type Layer } from '@maplibre/mlt';

const layers: Layer[] = [
    {
        name: 'places',
        features: [
            {
                id: 1,
                geometry: { type: 'Point', coordinates: [10, 20] },
                properties: { name: 'Example' },
            },
        ],
    },
];

const data = encodeTile(layers);
```

## Contents

### Code

Code is in `src/`.

### Tests

Tests are in `test/unit/`. Run tests by running `npm run test`.
currently not integrated

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