@8thwall/engine-binary

中文文档
1.0.0发布于 2026/04/04See LICENSECommonJS零依赖近 30 天下载 1.2万

Framework for cross platform, browser based AR

原始使用文档
文档目录5 节
  1. Usage
  2. Option 1: Script tag
  3. Option 2: npm
  4. Overview
  5. Acceptable Use and License

8th Wall Engine

[!IMPORTANT] This is not the MIT-licensed open source 8th Wall engine. That is in a separate repository which can be found here.

Usage

See https://8thwall.org/docs/engine/overview for a more detailed guide.

Option 1: Script tag

<script src="https://cdn.jsdelivr.net/npm/@8thwall/engine-binary@1/dist/xr.js" async crossorigin="anonymous" data-preload-chunks="slam"></script>

Option 2: npm

npm install @8thwall/engine-binary

You will need to copy the included artifacts into your dist folder, for example in webpack:

new CopyWebpackPlugin({
  patterns: [
    {
      from: 'node_modules/@8thwall/engine-binary/dist',
      to: 'external/xr',
    }
  ]
})

You can then load the SDK by adding the following to index.html:

<script src="./external/xr/xr.js" async data-preload-chunks="slam"></script>

When importing the package, you will get a simple helper for accessing XR8 once it is loaded. This promise will only resolve if the script tag is included in the HTML.

import {XR8Promise} from '@8thwall/engine-binary'

XR8Promise.then((XR8) => XR8.XrController.configure({}))

Overview

The 8th Wall engine binary includes the core AR capabilities that power 8th Wall experiences, including:

  • World Effects
  • Face Effects
  • Image Targets
  • Sky Effects
  • Absolute Scale

The 8th Wall engine binary does not include:

  • Source code access
  • The ability to modify or recompile the engine
  • Niantic Spatial products such as VPS, Lightship Maps, or the Geospatial Browser
  • Hand Tracking

Acceptable Use and License

The Distributed Engine Binary is available through a limited-use license which places restrictions on how it can be used. The full license text is here. Please see the Permitted Use FAQ and Attribution Guidelines for more information.

版本与发布记录

@8thwall/engine-binary 共发布 4 个版本,首次发布于 2026/04/03;过去 12 个月发布了 4 个版本。

版本发布日期距今
1.0.0latest2026/04/047 个月前
1.0.0-alpha.3alpha2026/04/037 个月前
1.0.0-alpha.22026/04/037 个月前
1.0.0-alpha.12026/04/037 个月前

关于 @8thwall/engine-binary 的常见问题

@8thwall/engine-binary 是什么?

Framework for cross platform, browser based AR

如何安装 @8thwall/engine-binary?

在项目目录运行 npm install @8thwall/engine-binary,或使用 pnpm add / yarn add / bun add。

@8thwall/engine-binary 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/8thwall__engine-binary 是否存在。

@8thwall/engine-binary 支持 ESM 还是 CommonJS?

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

@8thwall/engine-binary 可以商用吗?

@8thwall/engine-binary 使用 See LICENSE 许可。声明的许可为 See LICENSE,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@8thwall/engine-binary 的下载量有多少?

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

@8thwall/engine-binary 还在维护吗?

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