BetterOffice 是一个开源办公套件,提供基于 Rust 的原生 OOXML 引擎,支持 DOCX、XLSX 和 PPTX,并可通过 WebAssembly 在浏览器中使用,同时提供 React 组件。

Stars

34

7 天增长

暂无数据

Fork 数

0

开放 Issue

0

开源协议

Apache-2.0

最近更新

2026-07-28

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

它结合了 Rust 的性能与安全性,支持基于 CRDT 的协作和智能编辑,通过 Rust crate、WebAssembly 和预构建的 React 编辑器提供类型化 API。

适合谁使用

  • 需要程序化处理办公文档的 Rust 开发者
  • 构建自定义文档编辑器的 Web 开发者
  • 需要实时协作编辑文档的团队
  • 寻找开源 OOXML 处理方案的组织

典型使用场景

  • 在 React 应用中嵌入电子表格或文档编辑器
  • 服务器端文档生成与格式转换
  • DOCX/XLSX/PPTX 文件的实时协作编辑
  • 自定义无头文档处理流水线

项目优势

  • 原生 Rust 的高性能与内存安全
  • 通过 WebAssembly 和无头 API 实现跨平台部署
  • 针对 DOCX、XLSX 和 PPTX 提供类型化的专用 API
  • 即插即用的 React 组件,便于快速集成

使用前须知

  • 项目较新,功能成熟度可能不足
  • 除基础设置和包说明外,文档相对有限
  • 深度定制需要 Rust 或 JavaScript/TypeScript 知识

README 快速开始

Rust-native OOXML engines with collaboration and agent editing at the core. WebAssembly for browsers. Headless APIs for servers. Native Rust where you need it.

Packages

packagewhat it does
betteroffice-docxtyped Rust API for opening, editing, laying out, and saving DOCX documents
@betteroffice/docxframework-free .docx editor core — parsing, CRDT editing, and page layout in Rust through WebAssembly
@betteroffice/docx-reactdrop-in React .docx editor
betteroffice-xlsxtyped Rust API for opening, editing, calculating, rendering, and saving XLSX workbooks
@betteroffice/xlsxframework-free spreadsheet core powered by the Rust engine through WebAssembly
@betteroffice/xlsx-reactdrop-in React spreadsheet editor
betteroffice-pptxtyped Rust API for opening, editing, rendering, and saving PPTX presentations
@betteroffice/pptxframework-free .pptx editor core — slide model, masters, and rendering in Rust through WebAssembly
@betteroffice/pptx-reactdrop-in React .pptx editor

Structure

  • crates/ — the Rust engines
  • packages/ — the TypeScript editor packages
  • apps/webbetteroffice.dev (Next.js on Cloudflare Workers)
  • apps/docs — documentation

Development

bun install
bun run build:xlsx-wasm # compile the ignored spreadsheet wasm asset
bun run build:docx-wasm # compile the ignored document wasm assets
bun run dev          # web app
bun run rust:check   # fmt + clippy + tests for the engines

Contributing

Contributions are welcome. We ask for a one-time signature of the Contributor License Agreement on your first pull request (corporate version).

License

Apache-2.0 — third-party attribution in THIRD-PARTY-NOTICES.md.

项目描述

Native OOXML engines in Rust - DOCX, XLSX & PPTX editing, rendering and real-time collaboration, compiled to WASM for the web.

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

l0ng-ai
精选
l0ng-ai GitHub avatar

tty7

tty7 is a fast, GPU-accelerated terminal workbench with persistent sessions, built-in input tools, SSH support, and coding agent awareness.

开发者工具CLI 与终端
359
steelbrain
精选
steelbrain GitHub avatar

reims-vgpu

reims-vgpu is an experimental virtual GPU for macOS guests that uses QEMU to decode the guest's GPU command stream and execute it through Metal or Vulkan, leveraging the built-in AppleParavirtGPU driver without requiring custom kexts.

桌面应用
143
m-novotny
精选
m-novotny GitHub avatar

memguard-rs

A Rust library that provides secure memory handling primitives including zeroization on drop, memory locking, constant-time comparison, and compile-time guarded regions, with zero dependencies and no_std support.

嵌入式与物联网安全
131