HuanLinOTO/dsh-plugin-better-sidebar-plugin-office

Provides Office-suite preview (.docx/.xlsx/.pptx) for better-sidebar, independent bundle slimming body | Provides Office-suite preview (.docx/.xls

This better-sidebar add-on restores rich previews for Word, Excel, and PowerPoint files without forcing every sidebar user to download the large Office rendering stack. It registers docx-preview for styled documents, Univer plus SheetJS for spreadsheets, and a browser-native PPTX renderer with slide navigation. The viewer descriptors preserve better-sidebar's existing routes and fallback behavior, so a failed render still offers a download instead of trapping the file in a broken panel.

Web UI Enhancements ★ 23 updated 2026-09-03 ✅ runtime-tested
View on GitHub ↗

Install

dsh plugin --profile web add @huanlin/dsh-plugin-better-sidebar-plugin-office

Verified as the official README's recommended npm installation. It requires dsh-better-sidebar >=0.6.0; restart dsh web and hard-refresh the browser after adding the bundle.

Compatibility

DSH Web with dsh-better-sidebar 0.6.0 or newer. Older sidebar versions still contain the built-in Office viewers and can produce duplicate-registration errors. The browser bundle contains its own locales and styles.

Details

Recent updates

The current README documents the Office viewers being split from better-sidebar, reducing the main compressed bundle from about 5.9 MB to 2.2 MB, plus three independently toggleable DOCX/XLSX/PPTX viewers and browser-bundle purity checks.

FAQ

Which file formats does the plugin preview?
DOCX, XLSX, and PPTX files inside better-sidebar.
Why is better-sidebar 0.6.0 required?
That release removed the built-in Office viewers; older versions can conflict by registering the same viewer ids twice.
What happens if a preview fails?
The documented fallback presents a download link for the file.

Alternatives

omdsh-dev/DSH-better-sidebar · HuanLinOTO/dsh-plugin-mineru · omdsh-dev/dsh-open-in-vscode

More plugins in Web UI Enhancements

Browse more in Web UI Enhancements

Guides for Web UI Enhancements plugins