dream-num/univer

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

What it solves

Building office software from scratch is hard: you need editing, formulas, rendering, undo/redo, and collaboration, all working together. Univer solves this by giving developers a ready-made Office SDK they can embed inside their own product. Instead of shipping a full third-party office suite or writing a spreadsheet editor yourself, you drop Univer's components into your app and get editable Sheets and Docs, formula calculation, and the ability to connect that content to your own data, permissions, and AI agents.

How it works

Univer is split into three parts. The Web SDK is the foundation: it provides the content models, editing, rendering, formula calculation, and Facade APIs (the application-facing interface). You compose its plugins into an embedded editor or your own Office application, and you can reuse the same models, commands, and calculation for headless processing in Node.js — no interactive editor needed. The Server SDK adds backend services for real-time collaboration, edit history, and Office file import/export. The AI SDK connects Office capabilities to existing agents and workflows.

This repository contains the Web SDK's core architecture under the Apache-2.0 license. Features are composed through plugins and presets; a quick start with the Sheets Core preset gives you a working spreadsheet editor in a few lines of code. Facade APIs let your application read and write the same workbook the editor shows — for example, setting a cell value and reading a recalculated formula result. A command system coordinates edits and undo/redo across features, so an action like inserting a row inside a filter range correctly restores both the content and the filter on undo. workbook.save() returns a JSON snapshot you can persist yourself and restore later.

Who it's for

  • Developers who want to embed an editable spreadsheet or document surface into their own web application.
  • Teams building products that need to process office content programmatically, without a visible editor (headless in Node.js).
  • Developers building AI agents or workflows that need to read, edit, calculate, and review office documents.
  • Developers who want to build custom office editors or extend Sheets and Docs with their own features.

Highlights

  • Open-source core (Web SDK) released under Apache-2.0; commercial plugins, Server SDK, and AI SDK extensions are licensed separately.
  • Sheets editing and layout: cell styles, merged cells, in-cell rich text, freeze panes, floating images, undo/redo.
  • Sheets data and calculation: formulas, defined names, filtering, sorting, data validation, conditional formatting, hyperlinks, comments, find and replace.
  • Docs: rich-text editing, paragraph formatting, lists, hyperlinks, comments, and drawing integration.
  • Facade APIs let your application and agents operate on the same workbook the editor shows, with automatic formula recalculation.
  • Headless processing: reuse content models, commands, and calculation in Node.js without an interactive editor.
  • Plugin and preset architecture for composing features, plus a command system that coordinates cross-feature edits and undo/redo.

Related

  • Project
  • Project
  • Project
  • Project
  • Project