Univer

An embeddable office SDK that gives web apps and AI agents one API for sheets and docs

The Office Harness for AI Agents — Spreadsheets, Docs, Slides, Canvas, Relational Tables, and PDF in one runtime.

Category
Libraries & frameworks
Audience
Developers
Language
TypeScript
Licence
Apache-2.0

Updated

Univer is an open-source office SDK: one runtime that renders and edits spreadsheets, documents, presentations, relational tables and boards, either live in a browser or headless on Node.js. It is meant for developers who need real office editing inside their own product instead of an embedded viewer or a third-party iframe, and, more recently, for people building AI agents that must open a workbook and change a cell rather than describe the change in prose. The project is written in TypeScript, licensed Apache-2.0, has been developed in the open since late 2022, and now carries roughly 15,100 stars and 1,350 forks.

What it does

Univer packages document types that are normally separate products into a single runtime. The README lists spreadsheets, documents, presentations, bases (relational tables) and boards, with PDF support described as coming soon. Each surface is a plugin on a shared core rather than a standalone editor, so a host application can load only the parts it needs and still get consistent behaviour across them.

Two properties do most of the work:

  • One Facade API. Reading and writing a cell, a paragraph or a slide goes through the same entry point regardless of which document type is open, and the same calls work in the browser and on the server.
  • Headless operation. The runtime does not need a visible editor to function, so a program can open a workbook on Node.js, apply changes and hand the result back with nobody watching.

That combination is the point the video makes. An agent gets a real office runtime to act inside, and what it produces are ordinary document edits — the kind a person can open, read and approve before they are merged, rather than an opaque file the agent rewrote wholesale.

How it works

Rendering is Canvas-based rather than DOM-based. For a grid with tens of thousands of cells that is the difference between drawing what is on screen and asking the browser to lay out an enormous tree of elements, and it is why the README describes the SDK as high-performance and fully customisable. A formula engine ships with the runtime, so spreadsheet logic is evaluated by Univer itself instead of being delegated to a separate calculation library.

Above that sits the plugin architecture. Sheets, docs, slides and tables are all built the same way, on the same core, which is what lets a single Facade API cover all of them. The same architecture is the extension mechanism: features you add to a document type are plugins too, not forks of the editor.

Because the core does not assume a browser, the same package is what runs server-side. This is the part worth emphasising for agent work — there is no separate headless build with a reduced feature set described in the materials; it is one runtime in two environments.

Getting started

Everything starts from the documentation site linked in the README: docs.univer.ai for guides, a class-level API reference for the Univer entry point, a showcase of working examples, and a blog. The showcase is the fastest way to judge whether the editing experience is close to what your product needs before you commit to the integration.

The README itself is published in several translated versions besides English, which is a reasonable signal about who maintains it and how widely it is used. The Apache-2.0 licence permits commercial use, which matters here more than for most libraries, since the obvious use is embedding it in a paid product.

When to use it / when not

Reach for Univer when office documents are part of your application rather than an export format: an internal tool where people edit shared sheets, a product that needs a document surface an agent can drive, a workflow where changes must be reviewable before they land. The single-API, multi-format design pays off exactly when you need more than one document type and do not want to integrate a different library for each.

It is a poor fit in a few cases. If you only need to read or write an xlsx or docx file on disk, a focused file-format library is a far lighter dependency than a full rendering runtime. If you want a finished office suite for end users, this is an SDK — you are building the application around it. And if your document needs are trivial, a table component will cost you a fraction of the integration effort.

Univer is worth serious attention from anyone building productivity software that agents are expected to operate, and from teams who have been gluing together a grid component, a rich-text editor and a formula library and are tired of the seams. The headless Node.js story is the genuinely unusual part: most office editing libraries assume a human at a keyboard, and this one does not. Judge it on the showcase and on how cleanly the Facade API maps to the edits you actually need to make — those two checks will tell you quickly whether the abstraction holds for your case.

More in Libraries & frameworks

All of Libraries & frameworks →