visio-core
v0.3.0
Published
Visio document API powered by ooxml-core
Readme
visio-core
The DOM-free Visio document API. This package is a thin re-export of
ooxml-core/visio; it contains no separate parser, editing engine or viewer.
Live demo | npm | Full docs | Source
Install
npm install visio-coreQuick start
import { readFile } from 'node:fs/promises';
import { parseVsdx } from 'visio-core';
const document = await parseVsdx(await readFile('diagram.vsdx'));
console.log(document.pages);API and limitations
Exports include the document model, parseVsdx, layer helpers and the core's
supported edit and geometry APIs. The installed ooxml-core version defines the
exact API. Review returned diagnostics and validation errors; native Visio parity
and lossless export are not established.
For a browser UI, install visio-react-viewer, visio-vue-viewer,
visio-angular-viewer, visio-svelte-viewer, visio-solid-viewer or
visio-vanilla-viewer. Each already re-exports this document API.
For headless MCP access, use visio-viewer-mcp.
Documentation
License
Apache-2.0.
