@dcl/js-runtime

中文文档
7.33.0发布于 2026/11/06Apache-2.0TypeScript零依赖构建来源已验证近 30 天下载 1.6万

JavaScript runtime definitions for Decentraland environments

原始使用文档
文档目录4 节
  1. Overview
  2. Installation
  3. Development
  4. Documentation

@dcl/js-runtime

TypeScript definitions for the Decentraland scene runtime environment.

Overview

This package provides TypeScript type definitions for the Decentraland scene runtime environment. It includes:

  • Type definitions for Web APIs (fetch, WebSocket)
  • Auto-generated SDK/API type definitions
  • Basic runtime types (console, DEBUG flag)

This package does not contain any JavaScript runtime code - it only provides TypeScript types and interfaces used by the SDK and scene developers.

Installation

npm install --save-dev @dcl/js-runtime

Development

The types in this package are auto-generated during the monorepo's build process:

# From the root of the monorepo
make build

The generated types will be available in apis.d.ts.

Documentation

版本与发布记录

@dcl/js-runtime 共发布 1,506 个版本,首次发布于 2021/09/11;过去 12 个月发布了 321 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
7.33.0latest2026/11/066 天前
7.32.1-42077145652.commit-f6053ef2026/11/066 天前
7.32.1-42074770886.commit-f6053ef2026/11/066 天前
7.32.1-41691874543.commit-3063788auth-server2026/11/047 天前
7.31.1-41669733463.commit-b1b1d792026/11/048 天前
7.32.02026/11/048 天前

其他发布通道:ci → 7.19.1-21654129874.commit-4307fca,protocol-squad → 7.25.1-30828532396.commit-0c215c3,experimental → 7.27.1-34382248832.commit-ca3b679,experimental-bevy → 7.31.1-40604676255.commit-cb3ed84,experimental-bevy-auth-server → 7.31.1-40606969412.commit-24c05c3,auth-server → 7.32.1-41691874543.commit-3063788。

关于 @dcl/js-runtime 的常见问题

@dcl/js-runtime 是什么?

JavaScript runtime definitions for Decentraland environments

如何安装 @dcl/js-runtime?

在项目目录运行 npm install @dcl/js-runtime,或使用 pnpm add / yarn add / bun add。

@dcl/js-runtime 支持 TypeScript 吗?

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

@dcl/js-runtime 可以商用吗?

@dcl/js-runtime 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@dcl/js-runtime 的下载量有多少?

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

@dcl/js-runtime 还在维护吗?

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