Beta. XLSX Editor is not ready for production use. The API can change in each release.
XLSX Editor is a WYSIWYG editor and rendering engine for .xlsx workbooks. Use it to open, edit, render, and save workbooks in the browser. It uses the ECMA-376 (Office Open XML) format. It is part of the EigenPal editor family, with DOCX Editor and PPTX Editor.
Live demo | Documentation | DOCX Editor |
PPTX Editor |
XLSX Editor
Install the adapter for your framework and its required engine peer:
npm install @xlsx-editor.dev/react @xlsx-editor.dev/core # React
npm install @xlsx-editor.dev/vue @xlsx-editor.dev/core # VueSee the React or Vue quick start.
For server use on Node.js, use ^20.16.0 || >=22.3.0. Browser applications can use the packages with their build tool.
| Feature | Description |
|---|---|
| Rendering | Show values, number formats, fonts, fills, borders, and merged cells. |
| Cell editing | Edit values and formulas, apply formats, and insert or delete rows and columns, with undo and redo. |
| Save and reopen | Save the workbook with no loss of the content that the editor does not change. |
| React and Vue | Use either adapter with the same engine. |
XLSX Editor is in early development. The XLSX fidelity page lists what is supported.
| Package | Description | Docs |
|---|---|---|
@xlsx-editor.dev/react |
React editor components and hooks. | React adapter |
@xlsx-editor.dev/vue |
Vue 3 editor components and composables. | Vue adapter |
@xlsx-editor.dev/core |
The engine: read, lay out, paint, edit, and save. | Core engine |
@xlsx-editor.dev/i18n |
Interface strings. | Translations |
@xlsx-editor.dev/editor-api |
A supported subset of the Office.js workbook API for server editing. | Workbook automation |
@xlsx-editor.dev/editor-api uses the EigenPal Pro License. See the license terms.
Import the stylesheet once, pass the workbook bytes to the editor, and give the editor a height:
import { XlsxEditor } from '@xlsx-editor.dev/react';
import '@xlsx-editor.dev/react/styles.css';
export function App({ workbook }: { workbook: Uint8Array }) {
return <XlsxEditor document={workbook} style={{ height: '100vh' }} />;
}Set the height on the editor itself. A height on a parent element is not sufficient. For Next.js, load the editor with dynamic(..., { ssr: false }), as Use with Next.js shows.
Full docs: React adapter · Layout and props.
Pass the same workbook bytes through the Vue adapter:
<script setup lang="ts">
import { XlsxEditor } from '@xlsx-editor.dev/vue';
import '@xlsx-editor.dev/vue/styles.css';
defineProps<{ workbook: Uint8Array }>();
</script>
<template>
<XlsxEditor :document="workbook" style="height: 100vh" />
</template>For Nuxt and server-side rendering, show the editor only in the browser. The editor requires browser APIs.
Full docs: Vue adapter · Props and events.
- Introduction and quickstart: install the editor, open a workbook, and save it.
- Installation: packages, peer dependencies, styles, bundlers, and fonts.
- Customization: layout, toolbar, color mode, number locale, fonts, and language.
- Editor API: read and write cell values from code on a server.
- XLSX fidelity: what the editor shows, edits, and saves.
- Known approximations and workbook limits: where the render differs, and the limits of a file that opens.
- Accessibility: the keyboard, the screen reader, and the host page.
The react and vue READMEs list every part.
Install the toolchain in Contributing, then run these commands from the repository root:
bun install
bun run demo # React demo: localhost:5180
bun run dev:vue # Vue demo: localhost:5181
bun run dev:chat # Chat example: localhost:5182
bun run testThe demo opens a sample workbook. You can also open a file of your own, edit it, and save it. A switcher in its top bar moves between the React demo and the Vue demo. In development, its links go to the other dev server, so run both bun run demo and bun run dev:vue. The repository map lists the packages and what to read for each task.
Examples: Vite | Vue | Chat panel
See Contributing for setup, tests, and the Contributor License Agreement (CLA). The rules for every contributor are in Agent instructions.
The repository uses Apache 2.0, except for the files that the license scope notice in LICENSE excludes. @xlsx-editor.dev/editor-api uses the EigenPal Pro License: production use requires a commercial agreement. Contact licensing@eigenpal.com. Third-party material keeps its own terms.
Report vulnerabilities through the security policy. For other bugs, open a GitHub issue with the steps to reproduce and a synthetic or sanitized workbook. Never attach confidential workbooks.