brepkit-wasm

中文文档
4.6.23发布于 2026/11/03AGPL-3.0-onlyTypeScriptESM + CJS零依赖构建来源已验证

WebAssembly bindings for brepkit — browser-native B-Rep solid modeling

原始使用文档

brepkit-wasm

crates.io docs.rs npm

WebAssembly bindings for brepkit: browser-native B-Rep solid modeling.

Part of brepkit, a solid modeling kernel for Rust and WebAssembly.

Layer L4. Depends on brepkit-operations, brepkit-io (optional), brepkit-algo, brepkit-check, brepkit-geometry, brepkit-heal, brepkit-math, and brepkit-topology. It does not depend on brepkit-render, which is a separate L4 leaf.

Full API reference on docs.rs.

Exposes the kernel to JavaScript through wasm-bindgen as a BrepKernel object, with batch execution and checkpoint/restore.

Most JavaScript users want the npm package rather than this crate:

npm install brepkit-wasm
import { BrepKernel } from 'brepkit-wasm';

const kernel = new BrepKernel();
const block = kernel.makeBox(30, 20, 10);
const cutter = kernel.makeCylinder(5, 15);
const notched = kernel.cut(block, cutter);

For a higher-level TypeScript API built on this package, see brepjs and its documentation at brepjs.dev.

The io feature (on by default) pulls in brepkit-io. Build with --no-default-features for a smaller binary without import and export.

Stability

Part of brepkit's consumer surface: this crate is meant to be named directly in a downstream Cargo.toml. Breaking changes are possible but not routine, and land with a CHANGELOG entry. See STABILITY.md.

License

AGPL-3.0-only, or a commercial license for proprietary use.

版本与发布记录

brepkit-wasm 共发布 728 个版本,首次发布于 2026/03/03;过去 12 个月发布了 728 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
4.6.23latest2026/11/03今天
4.6.222026/11/03今天
4.6.212026/11/03今天
4.6.202026/11/011 天前
4.6.192026/11/011 天前
4.6.182026/11/011 天前

关于 brepkit-wasm 的常见问题

brepkit-wasm 是什么?

用于brepkit -浏览器原生B-Rep实体建模的WebAssembly绑定

如何安装 brepkit-wasm?

在项目目录运行 npm install brepkit-wasm,或使用 pnpm add / yarn add / bun add。

brepkit-wasm 支持 TypeScript 吗?

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

brepkit-wasm 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

brepkit-wasm 可以商用吗?

brepkit-wasm 使用 AGPL-3.0-only 许可。最严格的 Copyleft:除分发外,通过网络向用户提供基于它的服务也需要开源对应源码。闭源 SaaS 使用前务必评估。以上为概括,不构成法律意见,请以许可原文为准。

brepkit-wasm 还在维护吗?

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