# vega-transforms

> Data processing transforms for Vega dataflows.

Latest version **5.2.2** (published 2026-08-14) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install vega-transforms
pnpm add vega-transforms
yarn add vega-transforms
bun add vega-transforms
```

## Health

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

Positive: esm support; no vulnerabilities; recently updated; high maintenance score; popular repo.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 5.2.2 |
| Published | 2026-08-14 |
| First published | 2017-08-05 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 5 |
| Unpacked size | 457.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12006 |
| Author | Vega |
| Maintainers | domoritz, hydrosquall, jheer, arvindsatya1, lhermann |
| Keywords | vega, dataflow, transforms, filter, aggregate, project, window, sort, bin, data |

## Links

- npm: https://www.npmjs.com/package/vega-transforms
- Repository: https://github.com/vega/vega
- Homepage: https://github.com/vega/vega/tree/main/packages/vega-transforms#readme
- Issues: https://github.com/vega/vega/issues
- npm.io page: https://npm.io/package/vega-transforms

## Dependencies (5)

- [d3-array](https://npm.io/package/d3-array.md) ^3.2.4
- [vega-time](https://npm.io/package/vega-time.md) ^3.3.0
- [vega-util](https://npm.io/package/vega-util.md) ^2.1.3
- [vega-dataflow](https://npm.io/package/vega-dataflow.md) ^6.1.3
- [vega-statistics](https://npm.io/package/vega-statistics.md) ^2.0.0

## Alternatives

- [@libsql/sqlite3](https://npm.io/package/@libsql/sqlite3.md) — 39.8K weekly downloads
- [@fortemi/core](https://npm.io/package/@fortemi/core.md) — 461 weekly downloads
- [cdb-converter](https://npm.io/package/cdb-converter.md) — 341 weekly downloads
- [@uplo/adapter-prisma](https://npm.io/package/@uplo/adapter-prisma.md) — 75 weekly downloads
- [typeorm-aios](https://npm.io/package/typeorm-aios.md) — 30 weekly downloads

## Recent versions

- 5.2.2 (latest) — 2026-08-14
- 4.12.2 (v5-maintenance) — 2026-01-06
- 5.2.1 — 2026-07-22
- 5.2.0 — 2026-07-21
- 5.1.0 — 2025-09-16
- 5.0.0 — 2025-03-27
- 4.12.1 — 2025-01-24
- 4.12.0 — 2024-06-14
- 4.11.1 — 2024-01-03
- 4.11.0 — 2023-11-07
- 4.10.2 — 2023-04-26
- 4.10.1 — 2023-03-01
- 4.10.0 — 2022-03-11
- 4.9.4 — 2021-03-29
- 4.9.3 — 2020-09-23
- … 40 more at https://npm.io/package/vega-transforms/versions

## README

# vega-transforms

Data processing transforms for Vega dataflows.

This package provides the following Vega data transforms:

- [**Aggregate**](https://vega.github.io/vega/docs/transforms/aggregate/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/Aggregate.js "Source")
- [**Bin**](https://vega.github.io/vega/docs/transforms/bin/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/Bin.js "Source")
- [**Collect**](https://vega.github.io/vega/docs/transforms/collect/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/Collect.js "Source")
- [**CountPattern**](https://vega.github.io/vega/docs/transforms/countpattern/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/CountPattern.js "Source")
- [**Cross**](https://vega.github.io/vega/docs/transforms/cross/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/Cross.js "Source")
- [**Density**](https://vega.github.io/vega/docs/transforms/density/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/Density.js "Source")
- [**DotBin**](https://vega.github.io/vega/docs/transforms/dotbin/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/DotBin.js "Source")
- [**Extent**](https://vega.github.io/vega/docs/transforms/extent/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/Extent.js "Source")
- [**Filter**](https://vega.github.io/vega/docs/transforms/filter/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/Filter.js "Source")
- [**Flatten**](https://vega.github.io/vega/docs/transforms/flatten/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/Flatten.js "Source")
- [**Fold**](https://vega.github.io/vega/docs/transforms/fold/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/Fold.js "Source")
- [**Formula**](https://vega.github.io/vega/docs/transforms/formula/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/Formula.js "Source")
- [**Impute**](https://vega.github.io/vega/docs/transforms/Impute/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/Impute.js "Source")
- [**JoinAggregate**](https://vega.github.io/vega/docs/transforms/joinaggregate/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/JoinAggregate.js "Source")
- [**KDE**](https://vega.github.io/vega/docs/transforms/kde/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/KDE.js "Source")
- [**Lookup**](https://vega.github.io/vega/docs/transforms/lookup/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/Lookup.js "Source")
- [**Pivot**](https://vega.github.io/vega/docs/transforms/pivot/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/Pivot.js "Source")
- [**Project**](https://vega.github.io/vega/docs/transforms/project/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/Project.js "Source")
- [**Quantile**](https://vega.github.io/vega/docs/transforms/quantile/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/Quantile.js "Source")
- [**Sample**](https://vega.github.io/vega/docs/transforms/sample/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/Sample.js "Source")
- [**Sequence**](https://vega.github.io/vega/docs/transforms/sequence/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/Sequence.js "Source")
- [**TimeUnit**](https://vega.github.io/vega/docs/transforms/timeunit/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/TimeUnit.js "Source")
- [**Window**](https://vega.github.io/vega/docs/transforms/window/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/Window.js "Source")

And provides the following internal transforms:

- **Compare** [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/Compare.js "Source")
- **Expression** [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/Expression.js "Source")
- **Facet** [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/Facet.js "Source")
- **Field** [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/Field.js "Source")
- **Generate** [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/Generate.js "Source")
- **Key** [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/Key.js "Source")
- **MultiExtent** [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/MultiExtent.js "Source")
- **MultiValues** [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/MultiValues.js "Source")
- **Params** [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/Params.js "Source")
- **PreFacet** [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/PreFacet.js "Source")
- **Proxy** [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/Proxy.js "Source")
- **Relay** [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/Relay.js "Source")
- **Sieve** [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/Sieve.js "Source")
- **Subflow** [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/Subflow.js "Source")
- **TupleIndex** [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/TupleIndex.js "Source")
- **Values** [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-transforms/src/Values.js "Source")

For more information about data stream transforms, see the [Vega transform documentation](https://vega.github.io/vega/docs/transforms/).

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