@shotkit/shotium 0.2.0
📦 安装 / Installation
# npm
npm install @shotkit/shotium@0.2.0
# pnpm
pnpm add @shotkit/shotium@0.2.0
# yarn
yarn add @shotkit/shotium@0.2.0
# bun
bun add @shotkit/shotium@0.2.0
✨ 主要更新 / Highlights
English
- In-Process Engine via Node-API: The Node.js package now loads
libshotium directly into the host process via Node-API. Zero child process spawning, zero IPC overhead, and single-shot latency down to ~31 ms.
- Resident Daemon Mode: Added
daemon module for short-lived CLI tasks, CI pipelines, and serverless workers to connect to a pre-warmed background engine with ~2.3 ms latency.
- Prebuilt Platform Binaries: Published optional dependencies for 6 major platforms (Windows, macOS, Linux on x64 and arm64).
- Standalone CLI: Single-file executables with
--serve, --stdin, and direct URL / file rendering.
简体中文
- Node-API 进程内引擎:Node.js 包通过 Node-API 将
libshotium 直接加载至宿主进程中执行。无需拉起子进程,零 IPC 通信与跨进程内存复制开销,单张截图延迟低至约 31 ms。
- 常驻守护进程模式:新增
daemon 模块,适用于短生命周期的 CLI 任务、CI 流水线及 Serverless 场景,客户端连接握手仅需 ~2.3 ms,避免冷启动开销。
- 全平台预编译二进制:发布覆盖 6 大主流平台(Windows、macOS、Linux,x64 与 arm64)的 npm 可选依赖包。
- 独立命令行工具:提供支持
--serve 服务模式、--stdin 标准输入管道及直接文件渲染的单文件可执行程序。
🚀 独立可执行文件 / Standalone Binaries
- English: The attached
.7z archives contain the standalone engine (executables, shared libraries, and resource packs) for environments without Node.js. If you are using @shotkit/shotium via npm/pnpm/yarn/bun, platform dependencies are installed automatically and you do not need to download these archives manually.
- 简体中文:下方附加的
.7z 压缩包为独立引擎二进制文件(包含单文件命令行工具、共享库及资源包),适用于无 Node.js 的运行环境。若通过 npm/pnpm/yarn/bun 安装使用,包管理器会自动下载对应的预编译平台依赖,无需手动下载此处的附件。
📝 验证与来源 / Provenance
- Commit:
5570d6bfaa8022b215f153b229bf2262f20044d4
- Verified with npm provenance / 已通过 npm 官方签名与 Provenance 溯源验证。