# vega

> The Vega visualization grammar.

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

## Install

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

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 6.4.0 |
| Published | 2026-08-14 |
| First published | 2013-04-02 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 27 |
| Unpacked size | 3.6 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12005 |
| Author | Vega |
| Maintainers | domoritz, hydrosquall, jheer, arvindsatya1, lhermann |
| Keywords | vega, visualization, interaction, dataflow, library, data, d3 |

## Links

- npm: https://www.npmjs.com/package/vega
- Repository: https://github.com/vega/vega
- Homepage: https://github.com/vega/vega/tree/main/packages/vega#readme
- Issues: https://github.com/vega/vega/issues
- Funding: https://app.hubspot.com/payments/GyPC972GD9Rt
- npm.io page: https://npm.io/package/vega

## Dependencies (27)

- [vega-geo](https://npm.io/package/vega-geo.md) ~5.1.3
- [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-view](https://npm.io/package/vega-view.md) ~6.2.0
- [vega-force](https://npm.io/package/vega-force.md) ~5.1.3
- [vega-label](https://npm.io/package/vega-label.md) ~2.1.3
- [vega-scale](https://npm.io/package/vega-scale.md) ~8.1.3
- [vega-encode](https://npm.io/package/vega-encode.md) ~5.2.2
- [vega-format](https://npm.io/package/vega-format.md) ~2.1.3
- [vega-loader](https://npm.io/package/vega-loader.md) ~5.1.3
- [vega-parser](https://npm.io/package/vega-parser.md) ~7.1.3
- [vega-runtime](https://npm.io/package/vega-runtime.md) ~7.1.3
- [vega-typings](https://npm.io/package/vega-typings.md) ~2.3.0
- [vega-voronoi](https://npm.io/package/vega-voronoi.md) ~5.1.3
- [vega-dataflow](https://npm.io/package/vega-dataflow.md) ~6.1.3
- [vega-functions](https://npm.io/package/vega-functions.md) ~6.2.0
- [vega-hierarchy](https://npm.io/package/vega-hierarchy.md) ~5.1.3
- [vega-wordcloud](https://npm.io/package/vega-wordcloud.md) ~5.1.3
- [vega-expression](https://npm.io/package/vega-expression.md) ~6.2.2
- [vega-projection](https://npm.io/package/vega-projection.md) ~2.1.3
- [vega-regression](https://npm.io/package/vega-regression.md) ~2.1.3
- [vega-scenegraph](https://npm.io/package/vega-scenegraph.md) ~5.3.0
- [vega-statistics](https://npm.io/package/vega-statistics.md) ~2.0.0
- [vega-transforms](https://npm.io/package/vega-transforms.md) ~5.2.2
- [vega-crossfilter](https://npm.io/package/vega-crossfilter.md) ~5.1.3
- [vega-event-selector](https://npm.io/package/vega-event-selector.md) ~4.0.0
- [vega-view-transforms](https://npm.io/package/vega-view-transforms.md) ~5.2.2

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 6.4.0 (latest) — 2026-08-14
- 5.33.1 (v5-maintenance) — 2026-01-05
- 3.0.0-beta.4 (next) — 2016-11-08
- 6.3.1 — 2026-07-22
- 6.3.0 — 2026-07-21
- 6.2.0 — 2025-09-16
- 6.1.2 — 2025-03-29
- 6.1.1 — 2025-03-28
- 6.1.0 — 2025-03-28
- 6.0.0 — 2025-03-27
- 5.33.0 — 2025-03-16
- 5.32.0 — 2025-02-25
- 5.31.0 — 2025-01-24
- 5.30.0 — 2024-06-14
- 5.29.0 — 2024-05-10
- … 178 more at https://npm.io/package/vega/versions

## README

# Vega: A Visualization Grammar <a href="https://vega.github.io/vega/"><img align="right" src="https://github.com/vega/logos/blob/master/assets/VG_Color@512.png?raw=true" height="38"></img></a>

<a href="https://vega.github.io/vega/examples">
<img src="https://vega.github.io/vega/assets/banner.png" alt="Vega Examples" width="900"></img>
</a>

**Vega** is a *visualization grammar*, a declarative format for creating, saving, and sharing interactive visualization designs. With Vega you can describe data visualizations in a JSON format, and generate interactive views using either HTML5 Canvas or SVG.

For documentation, tutorials, and examples, see the [Vega website](https://vega.github.io/vega). For a description of changes between Vega 2 and later versions, please refer to the [Vega Porting Guide](https://vega.github.io/vega/docs/porting-guide/).

## Install

Use npm to install Vega for use in third-party libraries or applications.

Using npm:

```sh
npm install vega
```

If you would like to install the Vega command line utilities (`vg2pdf`, `vg2png`, `vg2svg`), see the [`vega-cli` package](https://github.com/vega/vega/tree/master/packages/vega-cli).

## Contributions, Development, and Support

Interested in contributing to Vega? Please see our [contribution and development guidelines](../../CONTRIBUTING.md), subject to our [code of conduct](https://github.com/vega/.github/blob/master/CODE_OF_CONDUCT.md).

Looking for support, or interested in sharing examples and tips? Post to the [Vega discussion forum](https://groups.google.com/forum/#!forum/vega-js) or join the [Vega slack organization](https://bit.ly/join-vega-slack-2020)!

Read about future plans in [our roadmap](https://docs.google.com/document/d/1fscSxSJtfkd1m027r1ONCc7O8RdZp1oGABwca2pgV_E/edit#).

## Package Development

This package builds the bundled Vega library files and the JSON schema. It also includes a high-level test suite. If performing local development:

- Run `npm run build` to build both browser and node.js bundles.
- Run `npm test` to run the test suite.

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