npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@msrvida/vega-deck.gl

v3.3.6

Published

Deck.gl renderer for Vega

Readme

@msrvida/vega-deck.gl

View component for Vega visualizations, using deck.gl for WebGL rendering.

This project combines two great visualization libraries into one. You have the expressiveness of Vega specifications and the WebGL rendering of deck.gl. As a result, you have the option of visualizing data in 3 dimensions.

API Reference

Limitations

This project does not fully implement every feature provided by Vega. Some interactive features are omitted due to the nature of the 3D rendering model which breaks correspondence to the 2D rendering plane. Other features simply have yet to be developed, for these we will gladly accept a pull request.

Feature additions

Rect elements can be rendered as 3D cuboids. To do this, add "z" / "depth" encodings where you normally use "x" / "width" and "y" / "height".

Installation

You will need to consider how to load the libraries that vega-deck.gl depends on, based on your build & deployment scenario.

Installation via script tags

This is the quickest installation option. You can load scripts from a CDN, or you can serve them from your own website. In your HTML, add these tags:

<script src="https://unpkg.com/vega@^5.11/build/vega.js" charset="utf-8"></script>
<script src="https://unpkg.com/deck.gl@~8.3.7/dist.min.js"></script>
<script src="https://unpkg.com/@msrvida/vega-deck.gl@^3/dist/umd/vega-deck.gl.js"></script>

A global variable named VegaDeckGl will be available to you. In your JavaScript, call the use() function to pass the dependency libraries to VegaDeckGl:

VegaDeckGl.use(vega, deck, deck, luma);

Installation via Node.js

This option is for those who are using a script bundler such as WebPack or Parcel.

Add these to the dependencies section of your package.json, then run npm install:

"@deck.gl/core": "^8.3.7",
"@deck.gl/layers": "^8.3.7",
"@luma.gl/core": "^8.3.1",
"@msrvida/vega-deck.gl": "^3",
"vega": "^5.17.0"

Import these in your JavaScript, then call the use() function to pass the dependency libraries to VegaDeckGl:

import * as deck from '@deck.gl/core';
import * as layers from '@deck.gl/layers';
import * as luma from '@luma.gl/core';
import * as vega from 'vega';
import * as VegaDeckGl from '@msrvida/vega-deck.gl';

VegaDeckGl.use(vega, deck, layers, luma);

Usage

VegaDeckGl.ViewGl uses the same API as Vega's View. In addition to 'canvas' and 'svg', you can now pass 'deck.gl' as the type of the renderer:

var view = new VegaDeckGl.ViewGl(vega.parse(spec))
    .renderer('deck.gl')
    .initialize(document.querySelector('#vis'))
    .run();

Versions

3.3.0 Changes

  • Show z-axis scale

3.2.0 Changes

  • Fix for animation easing
  • Text character set accepts all unicode

3.1.0 Changes

  • Added line marks
  • Added area marks

Breaking changes in v3

  • Stage.TickText now VegaTextLayerDatum type
  • View type deleted
  • util.isColor function deleted