@christophervr/xlsx-core
The DOM-free document model and file API, re-exported from the canonical OOXML core.
Live demo | npm | Full docs | Source
Part of ooxml: Office · Word · Excel · PowerPoint · Visio · OpenTeams · Core
The framework-neutral Excel workbook model, parser, formula engine and serializer. A thin entry point: @christophervr/xlsx-core re-exports ooxml-core/xlsx and @christophervr/xlsx-core/load re-exports ooxml-core/xlsx/load; the logic lives in ooxml-core.
Install
npm install @christophervr/xlsx-core
Quick start
import { createWorkbook, saveXlsx } from '@christophervr/xlsx-core';
import { loadWorkbook } from '@christophervr/xlsx-core/load';
const workbook = createWorkbook();
const bytes = await saveXlsx(workbook);
const reopened = await loadWorkbook(bytes, { fileName: 'Book1.xlsx' });
API and limitations
The main entry handles .xlsx, .xlsm and .xltx. The /load entry also opens legacy Excel 97-2003 .xls files (read only; they save as .xlsx) and .csv text, sniffing the format from the bytes. Saving is not lossless for features the model does not cover; unmodelled parts (VBA, pivot tables, and any chart content the chart model cannot carry) are carried through unchanged where the sheet still exists. Charts are edited over their parsed ChartSpace and written from it, except a chart part the model cannot carry, which keeps its source bytes and is reported.
Documentation
Privacy and network use
The Excel packages make no network request when opening, rendering, editing or saving a document: linked pictures are not fetched, linked data is not refreshed, and fonts come from the device only (nothing is downloaded from Google Fonts or any other font service). Hyperlinks open only when the reader follows them. Nothing collects analytics or telemetry. See PRIVACY.md.
License
Apache-2.0.
OneDrive integration
Use the optional shared ooxml-core/embedding/onedrive connection with host-supplied Microsoft
sign-in. See the Office package and integration reference
for this product's load/save API, native storage wiring, sharing permissions and conflict recovery.
The testing guide
separates test-local transports from live Microsoft acceptance. No simulation service is shipped;
OneDrive storage does not provide Microsoft Office coauthoring or automatic document merging.