Skip to main content

Overview

MIT licensecoverageBuilt with TypeScript 6.0.3npm versionMonthly npm downloads for @math.gl/core

GitHub starsGitHub contributorsMerged pull requests

Library overview

Math for the shape of the world.

From matrices to coordinate systems and planetary geometry. Composable tools for the world you are building.

npm packages​

These packages export subpaths for different features. See each package’s documentation for the full list.

PackageDescription
@math.gl/coreVectors, matrices, and quaternions for 3D math, along with color, UTF-8, and Apache Arrow utilities.
@math.gl/geometryGeometry primitives and mesh operations for tessellation, spatial queries, and visibility testing.
@math.gl/geospatialCoordinate systems and map projections, terrain sampling, and tools for processing geospatial data.
@math.gl/earthTools for calculating sunlight and star positions, looking up time zones, and modeling the geoid and oceans.
@math.gl/dggsDecodes and indexes cells in discrete global grids.
@math.gl/sqlAn optimized SQL parser and engine that works directly on Apache Arrow tables.
@math.gl/tasksRuns heavy computations on worker threads.

Supported Browsers and Node Versions​

math.gl is fully supported on:

  • Evergreen browsers: Recent versions of Chrome, Safari, Firefox, Edge etc.
  • Node.js: Active and Maintenance LTS releases

History​

YearVersionDescription
2026v5.0A new projection engine, global grid adapters, WKB and GeoArrow geometry processing, and Earth utilities, organized into focused package entry points. See what’s new.
2023v4.0gl-matrix dropped 64-bit support and was replaced with adapted numerical kernels.
2022v3.6Code base fully rewritten in TypeScript.
2020+v3.xAdditional geospatial modules were added based on needs from the luma.gl and deck.gl community.
2019v3.0A collaboration with the Cesium team around 3D Tiles support introduced the math.gl/geospatial and @math.gl/geometry/culling modules.
2018v2.0API stabilization.
2017v1.0math.gl got its own repository to provide an independently usable set of 3D and Geospatial math modules.
2015N/AThe math.gl matrix library (@math.gl/core/matrix) started as a set of class wrappers for gl-matrix inside luma.gl.

Attributions​

See Attributions for contributor acknowledgments, upstream libraries, scientific references, dataset credits, and third-party notices.

License​

math.gl is released under the MIT License. Some modules include upstream code under other permissive licenses such as Apache-2.0 or ISC and retain the original license notices.

Optional datasets may have their own licenses. See Attribution and the notices included with each dataset.