Skip to content

Unify GPU data and graph execution under @luma.gl/graph/api - #4199

Merged
ibgreen merged 5 commits into
masterfrom
codex/graph-api-subpath
Dec 4, 2026
Merged

ibgreen merged 5 commits into
masterfrom
codex/graph-api-subpath

Conversation

@ibgreen

@ibgreen ibgreen commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Goals

Give graph authors one import for GPU data, graph composition, compilation, and execution.

Changes

  • Combine the data and graph entry points under @luma.gl/graph/api. Keep optional inspection tools at @luma.gl/graph/api/diagnostics.
  • Move source and tests to match the package layout. Graph analytics tests now live with the graph-algorithms subpath. Keep data-only imports within the implementation so data helpers do not depend on the graph compiler.
  • Update examples, package consumers, build checks, and documentation. The sidebar has one /api section for data, operations, command graphs, and kernels.
  • Remove both old package exports. Patch the pinned deck.gl core, layers, and mesh-layers packages in this repository to use /api in their source, published declarations, and runtime builds. Preserve the existing picking fix in the core patch.

Verification

  • Repo formatting and package build, including the ESM and CommonJS export checks.
  • Checked that ESM and CommonJS reject both removed subpaths and load all three patched deck.gl packages. Verified the lockfile with an immutable install.
  • Ran the TypeScript type tests, geospatial and raster ESM/CommonJS consumer checks, and the production documentation build.

Note

Low Risk
Low risk as changes are confined to documentation revisions, CI path triggers, and dependency patches updating import specifiers to @luma.gl/graph/api.

Overview
Updates documentation, workflow paths, and dependency patches across the repository to adopt the unified @luma.gl/graph/api entry point, replacing legacy imports from @luma.gl/graph/gpu-data and @luma.gl/graph/gpu-graph.

Adds and updates Yarn patches for @deck.gl/core, @deck.gl/layers, and @deck.gl/mesh-layers to import GPUVector, GPUConstant, and vector format utilities from @luma.gl/graph/api. In addition, updates the physics reference GitHub Actions workflow path trigger to monitor modules/graph/src/api/**.

Restructures documentation and guides to consolidate GPU data primitives, tables, command graphs, and execution helpers under /api and /api/diagnostics. This includes removing obsolete /gpu-data and /gpu-graph documentation pages while adding the new /api execution references.

Reviewed by Cursor Bugbot for commit db2d602. Bugbot is set up for automated code reviews on this repo. Configure here.

@greptile-apps

greptile-apps Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5RetriggerView in Greptile

[Medium impact] The PR appears safe to merge; both previous findings are addressed.

Summary

Combines GPU data, graph authoring, compilation, and execution under @luma.gl/graph/api.

  • GPU data and graph tools now share one public import path.
  • Pinned deck.gl packages now import GPU data from /api.
  • Repository examples, checks, and docs now point to the unified API.

No new actionable issues were found in the changes since the previous review.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  Data["GPU data, vectors, tables"] --> API["@luma.gl/graph/api"]
  Graph["Graph authoring and compilation"] --> API
  Execution["Command graphs and kernels"] --> API
  Inspection["Optional inspection tools"] --> Diagnostics["@luma.gl/graph/api/diagnostics"]
Loading

Reviews (3) · Last reviewed commit: "Keep published graph documentation route..." · Reviewed by Greptile

Comment thread docs/api-reference/README.md Resolved
Comment thread docs/api-reference/graph/api/README.md Resolved
@ibgreen
ibgreen merged commit 1d5ff8e into master Dec 4, 2026
31 of 33 checks passed
@ibgreen
ibgreen deleted the codex/graph-api-subpath branch December 4, 2026 18:04

@ibgreen ibgreen left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Release follow-up: published, unpatched @deck.gl/core@10.0.0-alpha.3 accepts @luma.gl/graph: ^10.0.0, and its npm ESM/CJS builds (including visgl:webgl-only) still import @luma.gl/graph/gpu-data at runtime. The published layers package imports it too. The Yarn patches here only cover this workspace.

I installed the released core/layers/mesh-layers alpha.3 with graph 10.0.0 in a clean Node consumer: all 12 imports/requires passed (three packages × ESM/CJS × default/WebGL-only). Applying just the two export removals to the installed graph produced ERR_PACKAGE_PATH_NOT_EXPORTED for /gpu-data in all 12; the exact merged manifest independently rejects resolution of /gpu-data in both module formats. This isolates the export break, not a test of a fully built candidate or a current npm regression.

Before a compatible 10.x publish, please preserve the old public exports as compatibility entry points (at minimum /gpu-data for this Deck alpha), or put the removal behind a semver boundary that alpha.3 cannot resolve. A packed smoke test with unpatched Deck alpha.3 would catch this; the local patched-package test cannot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant