A browser workspace for organizing local files and working with documents, smart docs, spreadsheets, presentations, smart tables, whiteboards and PDFs. The seven editors use Univer Office SDK 1.6.0 and the same workspace catalog. Their menus follow Google Workspace; docs/ui/menus records each entry.
The project is growing from this suite into a platform that other clients, storage and services plug into; docs/architecture.md describes where it is going and what exists today, and docs/README.md lists every document.
Requires Node.js 24 or later and pnpm 10.33.4.
pnpm install --frozen-lockfile
pnpm devThe first pnpm install lists the workspace's features in the terminal: accounts, Admin, Drive and the platform's own are always installed, and the others (the editors, Mail, Calendar, Chat and the rest) are chosen and can be left out. pnpm features changes the choice later.
pnpm dev starts the page and the workspace server together; pnpm dev:web starts the page alone. Open the URL printed by Vite. The files are kept by the workspace server, in .data/; the first visit creates example files there. A page that runs without the server keeps them in browser storage instead, and hands them over the first time it meets a server. Drive is laid out like Google Drive and behaves like it: one click selects, a double click opens, and a right click opens the file menu. It provides folders, search, filters, starred and recent files, grid and list layouts, uploads by button or drag and drop, and Trash with undo. Drive also previews uploaded pictures, video, audio, PDF, Markdown and text, and groups files in projects next to My files; docs/ui/drive.md has the details. Docs are paged documents; Smart Docs are documents without pages. Each editor has its own home page, laid out like the Google Docs home screen: a template strip, recent files as a grid or a list, and a drawer that leads to the other editors and to Drive, the file manager. Documents, spreadsheets and presentations have starter templates. docs/ui/home.md records the comparison.
Every Univer capability that runs without a server is registered: charts, pivot tables, filters, data validation, comments, printing and more. Sharing, version history and comments by several people come with later work on the server and are disabled in the menus until then.
The workspace server is a Node process that assembles the Univer Server SDK and converts Office and PDF files; pnpm dev starts it before the page, and pnpm serve starts it on its own (not needed while pnpm dev runs). (The script is not called server because pnpm server is pnpm's own store command: it would run that instead and print nothing.) With it running, File › Import opens .xlsx, .docx, .pptx and .pdf files as new files, and File › Download writes them. Drive keeps an uploaded Office file as it is; Open with converts a copy for an editor, and the Convert uploads setting converts Word, Excel and PowerPoint files as they arrive. A board downloads as PowerPoint, PNG or JPEG. Without the server those entries are disabled and everything else works. The server keeps its data in .data/.
By default the workspace is one's own: there are no accounts, and everyone who opens it works as the same local person. To share one server among people, turn on accounts. People then sign in with an OpenID Connect provider (Google, Microsoft Entra, Okta, Keycloak and most company directories), and each has their own files. Set these in .env.local, which is not committed:
WORKSPACE_AUTH=oidc
WORKSPACE_URL=http://localhost:5173 # the address people open the workspace at
WORKSPACE_OIDC_ISSUER=https://accounts.example.com
WORKSPACE_OIDC_CLIENT_ID=…
WORKSPACE_OIDC_CLIENT_SECRET=… # stays on the server
WORKSPACE_OIDC_NAME=Example # optional: the name on the sign-in button
WORKSPACE_OIDC_DOMAINS=example.com # optional: admit only verified addresses at these domainsRegister <WORKSPACE_URL>/workspace-api/sign-in/oidc/callback with the provider as the redirect address; the server prints it when it starts. With a provider anyone can register at, such as Google, set WORKSPACE_OIDC_DOMAINS, or anyone can sign in. The first person to sign in takes over the files the local workspace held. SAML is not built in: put an identity broker such as Keycloak in front and speak OpenID Connect to it. docs/guides/accounts.md has the details.
The server loads every module it has: files (the file catalog), office (conversion and the Office tools), covers, exchange and admin (the Admin console's settings). WORKSPACE_MODULES loads only those it lists, as in WORKSPACE_MODULES=files; none starts the host alone, which answers who is asking, its status and its list of modules. A module whose needs no loaded module provides stops the server at start and says what is missing: office needs files. The page behaves as it does without a server for whatever is not loaded: without files it keeps files in browser storage, and without office it disables import and export, with the reason.
Mail, Calendar, Chat, Meet, Contacts and Sites, and the server modules of the plan without code yet, are listed as planned: the launcher shows the apps greyed, with a page that says what is coming, and the server lists the modules without starting them. pnpm new:module makes the place of a new module, and every module registers itself in its package.json (docs/guides/extending.md).
Each module declares its settings, read at start from WORKSPACE_<MODULE>_<NAME> variables or a JSON deployment file (WORKSPACE_CONFIG_FILE); a variable no setting reads is reported when the server starts. The Admin console in the apps launcher lists every setting with the value in effect and where it comes from, changes the organization's, and shows the deployment's as their variables set them. In a workspace of one's own its person administers it. With accounts, name the first administrator on the server's machine with pnpm admin:first ada@example.com; the address becomes theirs when they sign in with it. Secrets are sealed with WORKSPACE_SECRET_KEY, or a key the server keeps in the data directory.
The server keeps its data in SQLite in the data directory (WORKSPACE_DATA, .data by default), with nothing to install. PostgreSQL 15 or later is the other choice: WORKSPACE_DATABASE=postgres and WORKSPACE_DATABASE_URL=postgres://…. pnpm postgres starts one for development, and pnpm db:move moves an installation from SQLite to PostgreSQL. docs/guides/installation.md says which to choose, how to set PostgreSQL up and how to back up.
The page has a phone arrangement: on a narrow screen every editor opens in Univer's mobile interface, and the account menu offers the desktop version. Native iOS and Android apps are planned in repositories of their own; docs/design/clients.md says what they speak to the server.
docker compose up -d, with POSTGRES_PASSWORD set, builds the image and runs the workspace beside PostgreSQL at http://localhost:3010: one process serves the page and its API. The server answers /workspace-api/health/live and /workspace-api/health/ready without signing in. docs/guides/installation.md has the rest.
File cards show a file-kind icon until a cover is available. To draw first-page images, connect the workspace to an optional cover service with WORKSPACE_COVERS_URL. A cover is requested after an edit or when a file list needs one. Settings › File covers shows its availability. See file covers for timing and limits.
Exports are not limited while the server's Univer license is in order. With one that has run out the SDK allows ten exports a month, and the server says so when it starts.
Licenses. The repository comes with the Univer runtime development license that univer-workspace ships, which dream-num allows this project to carry (decision 0007). Univer accepts it on localhost and 127.0.0.1, so a copy of the repository runs licensed there with nothing to set up. It rotates every 90 days: pnpm license:sync fetches the current one into platform/core/src/license.ts and platform/server-core/src/license.ts, and the two files are then committed. For any other origin, copy .env.example to .env.local and set licenses of your own: VITE_UNIVER_LICENSE, a browser license valid for that origin, which is embedded in the client build, and UNIVER_LICENSE with UNIVER_LICENSE_KEY as a pair, which stay on the server. This is not the license of the repository's source.
pnpm check
pnpm test:unit
pnpm build
pnpm test:e2epnpm check type-checks the page and the server and verifies the import boundaries below; pnpm test:unit runs the server's own tests with Node's test runner; pnpm build ends by checking the size of the script every visit starts with.
Draft pull requests and components targeting another branch run documentation and static checks. Mark a pull request ready for review against main to run the database and browser suites, plus the installer and media checks selected by its changed files. Retargeting a ready pull request to main also starts these checks. Documentation-only changes keep their existing link and parity checks. Scheduled and manually requested qualifications remain available. When mail paths change, one GitHub-hosted Ubuntu job runs the selected native mail drills alongside the database unit shards. A failure in any selected drill fails the required check.
A title or description edit on a ready pull request against main waits for active verification and publishes all five required checks. It can reuse the latest completed, successful source verification for that pull request, base and head when the tested merge has the head's exact tree. Without that evidence, the edit runs the usual checks for the changed files. A metadata run cannot supply evidence for a later edit or main push.
The workspace is a platform with apps installed on it. platform/client-core/src is what every app builds on: the file model and storage, the router, the shell, the editor shell, covers and the UI components. Each app is the client/ folder of a module, with a manifest, and apps/web/src/apps/index.ts lists the installed ones. The server is put together the same way: apps/api/src/server.ts lists the server/ side of the modules, each with a manifest that names what it needs and what it provides, and platform/server-core/src starts them in that order. WORKSPACE_MODULES chooses which of them a server loads. platform/core/src/api.ts describes what the two sides say to each other. Every way into the server asks one place who the caller is, and the modules offer their tools to MCP clients at POST /workspace-api/mcp (see docs/guides/mcp.md). To add an app or a server module, see docs/guides/extending.md.
The production build of all the editors peaks at about 5 GB of memory, so the build script raises Node's heap limit. The end-to-end tests use installed Google Chrome and start a preview of the production build and the workspace server, and for the account tests a second server that signs people in with a stand-in OpenID Connect provider (tests/support/oidc-provider.mjs). The cover test checks the file icon in the default deployment and the PNG when a cover service is connected.
Without a server, files are scoped to the browser profile and origin. Use File › Download › Univer snapshot in the editor to export Univer JSON for use with the SDK. Uploaded files can be downloaded in their original format. Clearing site data removes this copy of the workspace.
Interface icons are Material Symbols (Apache-2.0); node scripts/icons.mjs regenerates platform/client-core/src/ui/icons from the map in that script. The favicon is the Univer mark, copied unchanged from examples/public/favicon.svg of the Univer repository. The Drive mark, the plus of the New button and the Smart Docs and Whiteboard glyphs are drawn for this application, in drive/manifest.tsx, shell.tsx and office/glyphs.ts; the other product glyphs are Lucide icons (ISC).
| Document | Answers |
|---|---|
| docs/README.md | Which document answers what, and the rules the documents follow |
| docs/architecture.md | The target architecture, what exists today and the order of migration |
| docs/roadmap.md | The work packages and what each has to prove |
| docs/guides | Installing a server, adding an app or a server module, accounts, tools for MCP clients |
| docs/ui | The default client: Drive, the home pages, the editors and their menus |
| docs/decisions | Decisions and their reasons |
| AGENTS.md | How to work in this repository, for people and agents |