A read-only DOCX, XLSX, and PDF viewer with structured selections.
| 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
npm ci --ignore-scripts
moon run tools/prepare-browser-assets.mbtx
moon check --target js
moon test --target js
npx --no-install playwright install chromium
npm run test:browsermoon install moonbit-community/warren@0.4.5
warren \
-C "$PWD" dev --direct --browser-entry cmd/browser --server-entry "" --port 4311npm run build:pagesmoon run --target native ./pagelayout/cmd/pagelayout -- \
export-fonts ../office-viewer/public/fonts
node ../office-viewer/scripts/prepare-fonts.mjs ../office-viewer/public/fonts