Framework
visgl/deck.gl avatar
visgl/deck.gl

deck.gl: GPU layers over JSON data, shipped as a script tag, an npm package and pydeck

WebGL2 powered visualization framework

14,802 stars2,309 forksTypeScriptMIT

At a glance

What is it?
deck.gl is the vis.gl framework for drawing large data sets with WebGL2 and WebGPU by stacking layers and viewing them through map, first-person or orthographic views. It is fast to start with, but the build now produces two GPU targets, the 9.3 and 9.4 lines are patched side by side, and much of its reach outside JavaScript comes from third-party projects.
Who is it for?
deck.gl suits JavaScript, React and Python developers who need to draw large arrays of records as icons, polygons or text over a map or in a non-geographic view, and who are happy composing layers rather than writing shaders. It suits less well anyone who wants a self-contained mapping stack, since the basemap comes from a provider you integrate, or teams working in R, C++ or Vega who would depend on third-party bindings.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository received new commits within the last day.
What is it written in?
Mainly TypeScript, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • visgl/deck.gl14,802 ★ · +199
Star history
Repository2026-09-212026-11-22
visgl/deck.gl14.6k14.8k

199 Stars in the last 62 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

Data in, layers on top, views to look through

deck.gl reduces a visualization to three parts. The data is usually an array of JSON objects. Each layer maps that data to one kind of visual element, such as icons, polygons or text, and you stack several layers to build a scene. A view decides how the stack is seen: a map view for geographic data, a first-person view, or an orthographic view for flat, non-geographic plots.

That separation is what makes quick results possible. You can get a working visualization by composing layers from the existing catalog without touching GPU code, and the same layers can be switched to a different view. When the catalog does not fit, the layers expose APIs for programmatic control over each aspect of rendering, and the core classes are meant to be extended by users. The framework also takes care of picking, highlighting and filtering, so hover and selection across a large data set are handled by deck.gl rather than by your own hit-testing code.

The script tag points at deck.gl@latest, which moves under you

The fastest way in is a single script tag that loads the minified bundle from unpkg:

html
<script src="https://unpkg.com/deck.gl@latest/dist.min.js"></script>

This gives you the scripting API with no build step, and the get-started examples under examples/get-started/scripting use it. The cost is the @latest tag. Whatever release is newest is what your page loads, and releases are frequent: v9.4.0 shipped on 2026-09-05, v9.4.1 on 2026-10-28 and v9.3.12 on 2026-10-30. A page left on @latest picks up minor version changes without anyone deciding to upgrade. For anything beyond a prototype, replace latest with an explicit version number so that a release cannot change a page you already shipped.

One npm package for both pure JavaScript and React

For an application with a bundler, the entry point is the npm package:

bash
npm install deck.gl

The same package serves two styles of use. Pure JavaScript projects follow docs/get-started/using-standalone.md and the examples in examples/get-started/pure-js. React projects follow docs/get-started/using-with-react.md and examples/get-started/react. Inside the repository, the package is assembled from a yarn workspace of modules under modules/*, managed with lerna, and the build compiles core, extensions, layers, mesh-layers, aggregation-layers and geo-layers as separate units. Those names tell you where things live when you read the source: aggregation-style layers and geographic layers sit in their own modules rather than in core. The examples folder also carries a layer-browser, a basemap-browser, a gallery and a playground, which are the places to look for working code before reading API pages.

Python goes through pydeck, with its own documentation site

Python users install a different package:

bash
pip install pydeck

pydeck is the route for notebooks and Python scripts, and its getting-started guide and layer examples live on deckgl.readthedocs.io, not on the main deck.gl docs site. The repository keeps its bindings under bindings/ and pydeck examples under examples/pydeck. The practical consequence is that a Python user reads two sets of documentation: the readthedocs pages for how pydeck is installed and called, and the deck.gl API documentation for what each layer does. Version numbers on the JavaScript side, such as the 9.4 releases, are not something you should assume carries over to pydeck; check the pydeck installation page for the version it pins before matching examples from deck.gl/docs.

The build produces both a WebGL and a WebGPU output

The repository description still says WebGL2 powered, while the README talks about WebGL2/WebGPU based visualization. The build script shows how both are handled. It runs node scripts/set-webgpu-build.mjs false, builds the core modules, moves that output aside with scripts/move-webgl-output.mjs, then flips set-webgpu-build.mjs to true and builds again. There is a separate test-webgpu script that sets RENDER_TEST_DEVICE=webgpu, while test-ci sets RENDER_TEST_DEVICE=webgl and adds coverage. In other words, the continuous integration path named test-ci renders against WebGL, and WebGPU rendering has its own test target. The examples folder also contains a v10-experimental directory. If WebGPU is the reason you are looking at deck.gl, verify in the deck.gl docs which layers and which release support it rather than reading the description line as a guarantee.

Contributing pulls a Chromium download on install

The monorepo package.json is private and is not what you install as a user, but it matters if you plan to patch deck.gl. Its postinstall hook runs npx playwright install chromium, so running yarn in a fresh clone downloads a browser before anything else works. That is a real cost on slow connections, locked-down networks or CI images that cache dependencies but not browsers. The full test command, ocular-test node headless render, runs node tests, headless browser tests and render tests together, and test-fast drops to lint plus node tests. The toolchain is the vis.gl ocular set: ocular-bootstrap, ocular-build, ocular-lint and ocular-publish. There is also a link-luma script that symlinks a sibling luma.gl checkout into node_modules, which tells you that deck.gl depends on luma.gl and that changes crossing both libraries need both repositories side by side.

Two release lines are patched at the same time

The recent release history does not run in a straight line. v9.4.0 arrived on 2026-09-05 and v9.4.1 on 2026-10-28, yet v9.3.12 followed on 2026-10-30, two days after the 9.4 patch. The 9.3 line is still receiving fixes after 9.4 shipped, so an application on 9.3 is not stranded the day a new minor appears. The flip side is that a fix you read about may land on one line first, and that you have to watch both version numbers when reading CHANGELOG.md. The last push to master was on 2026-11-02. deck.gl is part of vis.gl, an OpenJS Foundation project, and the companies named as supporters are Unfolded, Foursquare, CARTO, Mapbox, Uber and BrowserStack.

R, C++, Vega and raster support come from third parties

Several of the integrations people associate with deck.gl are not maintained in this repository. The README sends readers to third-party projects: deckgl-typings for TypeScript type definitions, mapdeck for R, vega-deck.gl from Microsoft SandDance for Vega, earthengine-layers for Google Earth Engine, deck.gl-native for C++, and deck.gl-raster for computation on rasters. Their release cadence and compatibility with the 9.x line are decided by their own authors, so a team building on mapdeck or deck.gl-native is tied to how quickly that project follows deck.gl, not to the vis.gl schedule. The same applies to maps themselves: deck.gl offers cartographic projections and integration with major basemap providers, so the base map under your layers comes from a provider you choose and configure. The README does not name those providers, so check the deck.gl docs for your provider before you plan around it.

Editorial conclusion

deck.gl suits JavaScript, React and Python developers who need to draw large arrays of records as icons, polygons or text over a map or in a non-geographic view, and who are happy composing layers rather than writing shaders. It suits less well anyone who wants a self-contained mapping stack, since the basemap comes from a provider you integrate, or teams working in R, C++ or Vega who would depend on third-party bindings. Before committing, pin a version instead of using deck.gl@latest, decide between the 9.3 and 9.4 lines, and confirm that your chosen basemap provider is covered in the deck.gl docs.

Frequently asked questions

What is deck.gl used for?

deck.gl is used for high-performance, WebGL2/WebGPU based visualization of large data sets. It maps data, usually an array of JSON objects, into stacked layers such as icons, polygons and text, viewed through map, first-person or orthographic views.

Is deck.gl open source?

Yes. deck.gl is released under the MIT license and is part of vis.gl, an OpenJS Foundation project, with its source on GitHub at visgl/deck.gl.

Is deck.gl free?

deck.gl is MIT licensed, so the library itself costs nothing to use, modify or ship in your own projects under that license.

How do you install deck.gl?

For JavaScript or React, run npm install deck.gl. For Python, run pip install pydeck. Without a build step, load https://unpkg.com/deck.gl@latest/dist.min.js in a script tag.

Official sources

  1. License: MIT
  2. Project website
  3. README
  4. Releases
  5. visgl/deck.gl on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/visgl-deck-gl.svg)](https://hysenlabs.com/projects/visgl-deck-gl)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/visgl-deck-gl.svg)](https://hysenlabs.com/projects/visgl-deck-gl)

Was this useful?