A read-only DOCX, XLSX, and PDF viewer with structured selections.
Dependencies
| Format | Rendering | Selection |
|---|---|---|
| DOCX | office.mbt PageModel and paginated SVG | Native text selection with validated paragraph/run references where available |
| XLSX | office.mbt workbook reader and HTML renderer | Cells and rectangular ranges with worksheet names and canonical selectors |
| PDF.js canvas, text, and annotation layers | Native text selection with page/item ranges, document identity, geometry, and available tagged structure |
moon update
moon install moonbit-community/warren@0.4.0
npm ci --ignore-scripts
moon run tools/prepare-browser-assets.mbtx
moon check --target js
moon test --target js -p Lampese/office-viewer/viewer
moon test --target js -p Lampese/office-viewer/cmd/browser
npm run test:pdf-runtimewarren dev --direct --browser-entry cmd/browser --server-entry "" --port 4311minifier="$(mktemp -d)"
npm install --prefix "$minifier" --ignore-scripts --no-audit --no-fund terser@5.51.2
PATH="$minifier/node_modules/.bin:$PATH" bash scripts/build-pages.shnpm run prepare:fonts
npm run test:fonts
npm run test:packageInstall
Download zipA read-only DOCX, XLSX, and PDF viewer with structured selections.
Dependencies