Skip to content

About

Open-source WYSIWYG .xlsx editor library for React and Vue with canonical OOXML and lossless round-trip. Agent-ready.

Topics

Resources

Contributing

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Latest commit

 

History

38 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XLSX Editor by EigenPal

npm version npm downloads license Demo

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

Quick start

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     # Vue

See 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.

Features

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.

Packages

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.

React

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.

Vue

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.

Documentation

The react and vue READMEs list every part.

Development

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 test

The 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

Contributing

See Contributing for setup, tests, and the Contributor License Agreement (CLA). The rules for every contributor are in Agent instructions.

License

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.

Security and feedback

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.


DOCX Editor      PPTX Editor      XLSX Editor

About

Open-source WYSIWYG .xlsx editor library for React and Vue with canonical OOXML and lossless round-trip. Agent-ready.

Topics

Resources

Contributing

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages