@carto/kepler.gl

中文文档
0.0.89发布于 2026/10/27MITTypeScriptCommonJS近 30 天下载 7877

kepler.gl is a webgl based application to visualize large scale location data in the browser

原始使用文档
文档目录5 节
  1. Development process
  2. Pull request
  3. Developing with Cloud Native
  4. Dev prerelease
  5. Stable release process

CARTO fork of Kepler.gl

Published as @carto/kepler.gl, used by the Cloud Native app.

Development process

Pull request

  • Each development should be done in its own feature branch

  • The pull request should be diff-ed with the main branch

  • Apart from code changes, the PR should include an entry in the "Not released" section of CHANGELOG.md with a link to itself (if the section is not present, re-create it at the top of the file). This facilitates the release process by keeping the changelog always up-to-date with main.

    Ex:

    ## Not released
    
    - Support for count aggregation [141](https://github.com/CartoDB/carto-kepler/pull/141)
    
  • After review, merge into the main branch by squashing commits, to keep a clean history.

Developing with Cloud Native

When developing locally, you can use symlinks to connect your local Cloud Native to your local CARTO Kepler:

  1. in carto-kepler: yarn link
  2. in cloud-native: yarn link @carto/kepler.gl
  3. in carto-kepler: yarn build:watch
  4. in cloud-native: yarn start

Dev prerelease

To be able to test a dev version of carto-kepler from cloud-native on a remote environment (ex: dedicated environments for QA), you need to publish an alpha version of carto-kepler.

  1. Switch to the branch you want to publish. You can use any unmerged dev branch, but make sure it's based on the latest main to avoid behavior changes outside the branch scope.

  2. Manually change the version in package.json. Use this pattern: <next-version>-alpha.<feature>.

    Ex: 0.0.47-alpha.custom-markers

  3. Build the project with yarn build, and ensure there is no error.

  4. Publish the package to NPM as alpha. You need to have the proper rights on the NPM organization.

    npm publish --tag alpha
    
  5. If the package has been correctly published, then in cloud-native install the new version with yarn add @carto/kepler.gl@<alpha-version-number>, and open a PR.

If you need to change some things later in the code, you will need to republish. Repeat the process by simply adding a suffix to the version number.

Ex: 0.0.47-alpha.custom-markers.2

Stable release process

  1. Create a branch release-<next-version> from the latest changes on main.

  2. Modify the CHANGELOG.md file, by creating a new section <next-version> and moving contents from "Not released" to it. Keep the empty "Not released" section at the top of the file.

  3. Increase version in package.json to <next-version>

  4. Build the project with yarn build, and ensure there is no error.

  5. Commit the changes (git commit -am "release <next-version>"), push, open a PR, ask for review and merge.

  6. Finally change to the main branch and publish to NPM

    npm publish --access public
    

版本与发布记录

@carto/kepler.gl 共发布 233 个版本,首次发布于 2021/09/03;过去 12 个月发布了 2 个版本。

版本发布日期距今
0.0.89latest2026/10/2712 天前
0.0.89-alpha.0alpha2026/10/2713 天前
0.0.882025/05/301.4 年前
0.0.88-alpha.22025/05/301.4 年前
0.0.88-alpha.12025/05/301.4 年前
0.0.872025/05/151.5 年前

其他发布通道:next → 0.1.0-next.2,alpha → 0.0.89-alpha.0。

关于 @carto/kepler.gl 的常见问题

@carto/kepler.gl 是什么?

kepler.gl is a webgl based application to visualize large scale location data in the browser

如何安装 @carto/kepler.gl?

在项目目录运行 npm install @carto/kepler.gl,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(>=16.3)、react-dom(>=16.3)、@deck.gl/core(^9.1.2)、@luma.gl/core(^9.1.2)、@deck.gl/carto(^9.1.2)、@deck.gl/react(^9.1.2)、@luma.gl/webgl(^9.1.2)、@deck.gl/layers(^9.1.2)、@loaders.gl/csv(^4.2.5)、@loaders.gl/core(^4.2.5)、@loaders.gl/gltf(^4.2.5)、@loaders.gl/json(^4.2.5)、styled-components(^4.x || ^5.x)、@luma.gl/constants(^9.1.2)、@deck.gl/extensions(^9.1.2)、@deck.gl/geo-layers(^9.1.2)、@deck.gl/mesh-layers(^9.1.2)、@loaders.gl/loader-utils(^4.2.5)、@deck.gl/aggregation-layers(^9.1.2)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@carto/kepler.gl 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@carto/kepler.gl 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@carto/kepler.gl 可以商用吗?

@carto/kepler.gl 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@carto/kepler.gl 的下载量有多少?

根据 npm 官方下载统计,@carto/kepler.gl 在 2026/10/09 – 2026/11/07 这 30 天内被下载 7,877 次,日均约 263 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@carto/kepler.gl 还在维护吗?

最新版本 0.0.89 发布于 2026/10/27(12 天前);至今共发布 233 个版本,其中过去 12 个月发布了 2 个;首次发布于 2021/09/03。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。