@geastack/host

中文文档
0.1.22发布于 2026/10/22Apache-2.0零依赖构建来源已验证近 30 天下载 2033

GeaStack host bindings and platform service sources.

原始使用文档

@geastack/host

Platform service sources for GeaStack native targets: the C++ host layer between the framework runtime and the device. It defines the host contract (display, touch and input, timers, storage, networking, audio, camera, media, images, memory, clock, battery, window, notifications) and ships portable implementations of the services a platform can share, plus the cross-cutting runtime services such as diagnostics, app state and display mirroring.

npm install @geastack/host

How it is used

A target build does not list these sources by hand. It points @geastack/core's source manifest at this package and receives the sources and include roots for the platform being built. A new target implements the host headers it cannot satisfy with the portable sources.

There is no JavaScript entry point; the package exists to be compiled.

Version 0.1.16 adds native ESP32 WebSocket connection headers, paired with the public constructor options in @geastack/core 0.1.41. Headers are applied to both the ESP-IDF WebSocket client and its owned transport, so bearer authentication works on the actual HTTP upgrade request. Existing URL and subprotocol-only connections retain their defaults.

License

Apache-2.0. See LICENSE.

版本与发布记录

@geastack/host 共发布 24 个版本,首次发布于 2026/09/20;过去 12 个月发布了 24 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.1.22latest2026/10/2225 天前
0.1.212026/10/2026 天前
0.1.202026/10/2027 天前
0.1.192026/10/1828 天前
0.1.182026/10/1729 天前
0.1.172026/10/141 个月前

其他发布通道:next → 0.1.10,uart → 0.1.14-uart.2。

关于 @geastack/host 的常见问题

@geastack/host 是什么?

GeaStack host bindings and platform service sources.

如何安装 @geastack/host?

在项目目录运行 npm install @geastack/host,或使用 pnpm add / yarn add / bun add。

@geastack/host 支持 TypeScript 吗?

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

@geastack/host 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=20.19。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@geastack/host 可以商用吗?

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

@geastack/host 的下载量有多少?

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

@geastack/host 还在维护吗?

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