Knowledge Base updated: 2026-11-19
deck.gl knowledge base
Orientation
deck.gl is a TypeScript monorepo for GPU-accelerated data visualization. Its public package combines a core Deck runtime with reusable layer packages, optional extensions, and integrations for application and map hosts.
Critical runtime state lives in the core Deck, renderer, layer, and layer-state implementations. Layers translate application data and properties into GPU attributes and draw calls; views, controllers, and viewports establish coordinate systems and interaction behavior.
The monorepo also ships layer families for common, geospatial, aggregation, mesh, and experimental GPU-driven rendering; adapters for React, map engines, widgets, Jupyter, and Python; and packages for CARTO, JSON configuration, testing, and distribution.
flowchart TD
App[Application configuration] --> Deck[Core Deck runtime]
Deck --> Renderer[DeckRenderer]
Deck --> Layers[Layer lifecycle and state]
Deck --> Views[Views and viewports]
Deck --> Controllers[Controllers and picking]
Renderer --> GPU[GPU device and draw calls]
Layers --> Standard[Standard layers]
Layers --> Geo[Geospatial layers]
Layers --> Aggregate[Aggregation and mesh layers]
Layers --> Advanced[Experimental GPU layers]
React[React integration] --> Deck
Maps[Map renderer integrations] --> Deck
Widgets[Widgets and Jupyter] --> Deck
Python[Python bindings] --> Deck
Carto[CARTO integration] --> Layers
Extensions[Layer extensions] --> Layers
flowchart LR
Props[Deck props and layer props] --> Update[Change detection]
Update --> State[Layer state and attributes]
State --> Render[DeckRenderer draw cycle]
Render --> Pick[Picking pass]
Pick --> Callbacks[Application callbacks]
Glossary
- Deck: The central runtime object that owns rendering resources, view state, layers, and the redraw cycle.
- Layer: A declarative visualization unit that manages props, state, attributes, and GPU draw calls.
- Viewport: A view-specific coordinate and projection transform used for rendering and interaction.
- Picking: The rendering-assisted identification of objects under an input position.
- Layer extension: A composable capability that augments a layer without requiring a separate layer implementation.
Invariants
- The
Deckruntime coordinates layer updates and rendering rather than layers owning the global render cycle; evidence: modules/…/deck.ts and modules/…/deck-renderer.ts. - Layer lifecycle state is separated from declarative layer props; evidence: modules/…/layer.ts and modules/…/layer-state.ts.
- Host integrations synchronize an external host with deck.gl instead of replacing the core layer runtime; evidence: modules/…/index.ts and modules/…/deck-utils.ts.
- Optional behavior is composed through extensions rather than copied into every layer; evidence:
modules/extensions/src/**. - Public package entry points aggregate APIs from the monorepo’s packages; evidence: modules/…/index.ts and modules/…/package.json.
Routing table
- modules/…/deck.ts, modules/…/deck-renderer.ts -> docs/core-rendering-engine.md
- modules/…/package.json, modules/…/package.json, modules/…/package.json, modules/…/package.json,
modules/proposals/src/layers/**-> docs/layer-library.md modules/react/**,modules/mapbox/**,modules/maplibre/**,modules/google-maps/**,modules/arcgis/**,modules/widgets/**,modules/jupyter-widget/**,bindings/**-> docs/application-integrations.mdmodules/json/**,modules/carto/**,modules/extensions/**-> docs/data-and-visualization-extensions.md- package.json,
modules/main/**,test/**,website/**-> docs/distribution-and-quality.md - modules/…/deck.ts, modules/…/deck-renderer.ts,
modules/core/src/views/**-> docs/deck-instance-and-render-loop.md - modules/…/layer.ts, modules/…/layer-state.ts, modules/…/composite-layer.ts, modules/…/layer-manager.ts -> docs/layer-lifecycle-and-state.md
modules/core/src/controllers/**,modules/core/src/lib/picking/**, modules/…/deck-picker.ts -> docs/interaction-and-picking.md- modules/…/custom-projection-viewport.ts, modules/…/globe-viewport.ts, modules/…/web-mercator-viewport.ts,
test/apps/custom-projection/**-> docs/custom-projections.md modules/layers/src/**-> docs/standard-layer-types.mdmodules/geo-layers/src/**-> docs/geospatial-layer-types.mdmodules/aggregation-layers/src/**,modules/mesh-layers/src/**-> docs/aggregation-and-mesh-layers.md- modules/…/geoarrow-*.ts,
modules/proposals/test/layers/**-> docs/arrow-layer-packages.md modules/proposals/src/**,modules/proposals/test/**-> docs/advanced-gpu-layer-packages.mdmodules/react/src/**-> docs/react-integration.mdmodules/mapbox/**,modules/maplibre/**,modules/google-maps/**,modules/arcgis/**-> docs/map-renderer-integrations.mdmodules/widgets/**,modules/jupyter-widget/**-> docs/widgets-and-jupyter.mdbindings/pydeck/**,bindings/pydeck-carto/**-> docs/python-bindings.mdmodules/json/**-> docs/json-specification.mdmodules/carto/**,bindings/pydeck-carto/**-> docs/carto-integration.mdmodules/extensions/**-> docs/layer-extensions.mdtest/**,modules/*/test/**,test/apps/**-> docs/testing-and-validation.md