Scripts2026年7月4日·1 分钟阅读

IronCalc — Open Source Spreadsheet Engine in Rust

A high-performance spreadsheet engine written in Rust that runs in the browser via WebAssembly, on servers, and as an embeddable library.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
IronCalc Overview
直接安装命令
npx -y tokrepo@latest install f345ccd7-77a1-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run 确认安装计划,再运行此命令。

Introduction

IronCalc is an open-source spreadsheet engine built in Rust that aims to be a drop-in calculation core for applications needing spreadsheet functionality. It compiles to WebAssembly for browser use, runs natively on servers, and provides bindings for multiple languages, making it a versatile alternative to proprietary spreadsheet engines.

What IronCalc Does

  • Evaluates spreadsheet formulas with support for hundreds of Excel-compatible functions
  • Parses and writes XLSX files for interoperability with existing spreadsheets
  • Compiles to WebAssembly for embedding interactive spreadsheets in web applications
  • Provides a Rust library API for server-side batch processing of spreadsheet data
  • Supports cell formatting, named ranges, and multi-sheet workbooks

Architecture Overview

The core engine is written in pure Rust with no unsafe code, providing memory safety and high performance. The formula parser and evaluator handle circular reference detection and dependency graph recalculation. A WASM compilation target wraps the engine for browser use with a React-based UI layer. The XLSX parser handles reading and writing the Open XML format natively.

Self-Hosting & Configuration

  • Build from source with a standard Rust toolchain (cargo build)
  • For web use, compile the WASM target and serve the bundled JavaScript
  • Integrate as a Rust crate dependency for server-side spreadsheet processing
  • No external database or service dependencies required
  • Configuration is programmatic through the library API rather than config files

Key Features

  • Excel-compatible formula engine supporting complex calculations
  • XLSX file format reading and writing
  • WebAssembly target for browser-based spreadsheet UIs
  • Multi-language bindings including Python and JavaScript
  • Lightweight with no runtime dependencies beyond the Rust standard library

Comparison with Similar Tools

  • LibreOffice Calc — full desktop app; IronCalc is an embeddable engine for developers
  • SheetJS — JavaScript-only; IronCalc runs natively in Rust with WASM as an option
  • Luckysheet/Univer — full-featured web UI; IronCalc focuses on the calculation engine
  • Apache POI — Java-based; IronCalc offers better performance through Rust

FAQ

Q: Can IronCalc replace Excel or Google Sheets? A: IronCalc is an engine, not a full spreadsheet application. It provides the calculation and file handling layer that developers embed into their own applications.

Q: How many Excel functions are supported? A: IronCalc supports a growing subset of Excel functions covering math, text, date, lookup, and statistical categories. Check the documentation for the current list.

Q: Does it support macros or VBA? A: No. IronCalc focuses on formula evaluation and does not support VBA macros.

Q: Can I use it in a Python project? A: Yes. Python bindings are available, allowing you to use IronCalc for spreadsheet processing in Python applications.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产