Svelte + TypeScript guide

Render Office files in the browser with Svelte.

A portable Svelte integration for displaying DOCX, XLSX, and PPTX files with @silurus/ooxml. Choose a local file and render it without uploading it.

npm install @silurus/ooxml
Formats
DOCX · XLSX · PPTX
Language
TypeScript
Integration
createOfficeViewer
Rendering
Canvas + WebAssembly

Framework example

Read the code. Run it on StackBlitz.

Browse the complete Svelte project here, then open the live project to choose a local DOCX, XLSX, or PPTX file.