univer-node-backend
БесплатноБез исполняемых скриптовНе проверенRun Univer Sheets, Docs, Slides, Bases, Boards, or PDFs in Node.js without browser UI. Use for server-side or backend Univer, OSS Sheets or Docs Node presets…
от dream-num★ 83 звезды на GitHubОб этом скилле
Univer Node.js Backend
Run Univer without browser UI for data, document, presentation, Base, Board, and PDF automation.
Compatibility: Synced to the current Univer and Univer Pro source baseline,
1.0.0-beta.0. Keep every@univerjs/*and@univerjs-pro/*package on exactly the same version. The public OSS headless runtime supports Node.js>=18.17.0; developing the current Univer source checkout requires Node.js>=22.18and pnpm>=10.
Public setup: Prefer
createUniverwith@univerjs/preset-sheets-node-coreor@univerjs/preset-docs-node-corewhen either OSS preset fits.createUniverOnNodeis the name of an example-local helper in the Univer repositories, not an exported npm API. The other four product hosts currently use manual Pro plugin stacks.
Choose the product path
Package existence, headless model/Facade support, browser rendering, and a maintained preset are separate facts:
| Product | Current Node path | Verified current example boundary |
|---|---|---|
| Sheets | OSS UniverSheetsNodeCorePreset; manual Pro stack for licensed features |
Local OSS workbooks; the Pro example loads a collaborative Sheet |
| Docs | OSS UniverDocsNodeCorePreset; manual Pro stack for licensed Docs features |
Local document model through the OSS preset; the Pro example loads a collaborative Doc |
| Slides | Manual @univerjs-pro/slides stack and @univerjs-pro/slides/facade |
The current Pro example loads a collaborative Slide |
| Bases | Manual @univerjs-pro/bases stack and @univerjs-pro/bases/facade; the current example pairs a Node formula worker |
The current Pro example loads a collaborative Base |
| Boards | Manual @univerjs-pro/boards stack and @univerjs-pro/boards/facade |
The current Pro example can call local createBoard(...) or load a collaborative Board |
| PDFs | Manual @univerjs-pro/pdfs stack and @univerjs-pro/pdfs/facade |
The current Pro example loads a collaborative PDF and edits its model |
Slides, Bases, Boards, and PDFs have no unified Node preset in the checked source. Their current Node examples register runtime/model plugins and Facade side effects without *-ui plugins or CSS. A registered render engine satisfies model dependencies in some examples; it does not establish browser canvas rendering, screenshots, print, or exchange-client support. Read the Node plugin registry and Pro Node.js integration before composing one of these hosts.
Quick Start
1. Install the current Node preset
npm install @univerjs/[email protected] @univerjs/[email protected] @univerjs/[email protected] rxjs@^7.8.2
2. Create and process a workbook
import { LocaleType } from '@univerjs/core';
import { UniverSheetsNodeCorePreset } from '@univerjs/preset-sheets-node-core';
import UniverSheetsNodeCoreEnUS from '@univerjs/preset-sheets-node-core/locales/en-US';
import { createUniver } from '@univerjs/presets';
const { univer, univerAPI } = createUniver({
locale: LocaleType.EN_US,
locales: {
[LocaleType.EN_US]: UniverSheetsNodeCoreEnUS,
},
presets: [UniverSheetsNodeCorePreset()],
});
try {
const workbook = univerAPI.createWorkbook({});
const sheet = workbook.getActiveSheet();
sheet.getRange('A1').setValue(123);
sheet.getRange('B1').setValue('=SUM(A1) * 6');
await univerAPI.getFormula().onCalculationResultApplied();
console.log(sheet.getRange('B1').getValue()); // 738
console.log(workbook.save());
} finally {
univer.dispose();
}
The preset registers the core Sheets, formula, data-validation, filter, hyperlink, drawing, sort, and thread-comment plugins plus their Node-safe Facade extensions.
Formula Worker
Pass a built JavaScript worker path to the preset. @univerjs/rpc-node uses node:child_process.fork(), not a browser Worker.
// main.ts (ESM)
import { fileURLToPath } from 'node:url';
import { LocaleType } from '@univerjs/core';
import { UniverSheetsNodeCorePreset } from '@univerjs/preset-sheets-node-core';
import UniverSheetsNodeCoreEnUS from '@univerjs/preset-sheets-node-core/locales/en-US';
import { createUniver } from '@univerjs/presets';
const workerSrc = fileURLToPath(new URL('./formula-worker.js', import.meta.url));
const { univer, univerAPI } = createUniver({
locale: LocaleType.EN_US,
locales: {
[LocaleType.EN_US]: UniverSheetsNodeCoreEnUS,
},
presets: [UniverSheetsNodeCorePreset({ workerSrc })],
});
// formula-worker.ts; compile it to formula-worker.js before running main.ts
import { LocaleType } from '@univerjs/core';
import { UniverSheetsNodeCoreWorkerPreset } from '@univerjs/preset-sheets-node-core/worker';
import { createUniver } from '@univerjs/presets';
createUniver({
locale: LocaleType.EN_US,
presets: [UniverSheetsNodeCoreWorkerPreset()],
});
The worker preset includes UniverRPCNodeWorkerPlugin and UniverRemoteSheetsFormulaPlugin.
Установить univer-node-backend в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл univer-node-backend?
Run Univer Sheets, Docs, Slides, Bases, Boards, or PDFs in Node.js without browser UI. Use for server-side or backend Univer, OSS Sheets or Docs Node presets, Pro product Facades and collaboration, JSON snapshot processing, formula or Base child-process workers, or automated unit manipulation with @univerjs/rpc-node.
Как установить скилл univer-node-backend?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл univer-node-backend запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic