ディレクトリに戻る

dsh-plugin-better-sidebar-plugin-office

キュレーション掲載メンテナンス: 活発

huanlinoto/dsh-plugin-better-sidebar-plugin-office

better-sidebar 向け .docx/.xlsx/.pptx プレビュー(docx-preview/Univer/pptx-renderer)

GitHub で見る
$ dsh plugin --profile web add @huanlin/dsh-plugin-better-sidebar-plugin-office

36

スター

2

フォーク

JavaScript

言語

NOASSERTION

ライセンス

2026-08-12

作成日

2026-09-03

最終プッシュ

DeepSeek Harness のネイティブ Web プラグイン。better-sidebar エディタ内で Word / Excel / PowerPoint をプレビューし、本体をスリムに保つ別バンドル構成。

DSH 統合

ネイティブ実行

作者による申告

安全性監査

未監査

最終検証日

2026-09-03

ライセンス

NOASSERTION

01どんなタスクに使えるのか?

  • Preview Office documents (.docx/.xlsx/.pptx) inside the better-sidebar file explorer

    In-browser rendered viewers — docx-preview for Word, Univer sheets for Excel, @aiden0z/pptx-renderer for PowerPoint — auto-matched by file extension

    better-sidebar users who receive Office attachments and want to preview them without leaving the editor

  • Keep the better-sidebar core client bundle small while still offering Office preview

    Office renderers shipped as a separate plugin bundle instead of inlined into better-sidebar (~5.9MB full set → 2.2MB compressed)

    better-sidebar operators/maintainers who want a slim core and let users opt into heavy viewers on demand

02DeepSeek Harness への導入方法

前提条件

  • better-sidebar `>= 0.6.0` (the release that removed the built-in office viewer); on older versions the plugin's `docx/xlsx/pptx` registration collides with the built-in one
  • A DeepSeek Harness `web` profile — the plugin is added to `--profile web` and served by the `dsh web` process

インストール手順

  1. 01

    Run `dsh plugin --profile web add @huanlin/dsh-plugin-better-sidebar-plugin-office` to install the plugin into the web profile

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

  2. 02

    Restart the `dsh web` process and hard-refresh the browser (`Ctrl+Shift+R`)

    $ dsh web

導入成功の確認

  • Confirm the plugin file exists: `Test-Path ~/.dsh/profiles/web/node_modules/@huanlin/dsh-plugin-better-sidebar-plugin-office/lib/client.js` should return True
  • After restarting `dsh web` + hard refresh, open a `.docx`/`.xlsx`/`.pptx` from the sidebar — the preview should render normally

03DSH 統合と能力の範囲

DSH 統合ネイティブ実行

Native DSH web plugin: installed with `dsh plugin --profile web add` and registers file viewers through the `ctx.betterSidebar.registerFileViewer` API in the better-sidebar editor.

  • Word (.docx) viewer

    `.docx` file opened in better-sidebarFaithful in-browser render via docx-preview (styles / images / tables, Alt+wheel zoom)

  • Excel (.xlsx) viewer

    `.xlsx` file opened in better-sidebarUniver sheets preset (data + formulas + merged cells + column width / row height)

  • PowerPoint (.pptx) viewer

    `.pptx` file opened in better-sidebarBrowser-native preview via @aiden0z/pptx-renderer with page navigation

  • Self-contained client component

    registered viewer descriptor (mediaUrl strategy, priority 0, title/icon)Viewers matching the original built-in descriptor shape, so existing file routing and the Side card toggle UI work unchanged

    loads/renders failures fall back to a download link

04誰に向いているのか?使うべきでない場面は?

向いている用途

  • better-sidebar users who receive Office attachments and want to preview them without leaving the editor
  • better-sidebar operators/maintainers who want a slim core and let users opt into heavy viewers on demand

不向きな用途

  • Requires better-sidebar `>= 0.6.0` (the release that removed the built-in office viewer); on older versions the plugin's `docx/xlsx/pptx` registration collides with the built-in one (`already registered`).
  • Changing the versions of jszip / xlsx / pptx-renderer can reintroduce Node builtin references (SheetJS/JSZip CJS fallbacks, pptx-renderer's PDF.js probe); the client bundle must be verified to contain no Node builtin.

05互換性・メンテナンス・セキュリティ上の注意

  • Requires better-sidebar `>= 0.6.0` (the release that removed the built-in office viewer); on older versions the plugin's `docx/xlsx/pptx` registration collides with the built-in one (`already registered`).
  • Changing the versions of jszip / xlsx / pptx-renderer can reintroduce Node builtin references (SheetJS/JSZip CJS fallbacks, pptx-renderer's PDF.js probe); the client bundle must be verified to contain no Node builtin.
  • When a viewer fails to load or render, better-sidebar falls back to a download link instead of showing the preview.
2026-08-122026-09-03作者は未記載

NOASSERTION · not released as a git tag yet (latest_release: null); README references the npm package @huanlin/dsh-plugin-better-sidebar-plugin-office

06よくある質問

DeepSeek Harness にこのプラグインをインストールするには?

`dsh plugin --profile web add @huanlin/dsh-plugin-better-sidebar-plugin-office` を実行して `web` プロファイルに追加し、その後 `dsh web` プロセスを再起動してブラウザをハードリロード(`Ctrl+Shift+R`)してください。

どのファイル種別をプレビューしますか?

`ctx.betterSidebar.registerFileViewer` で 3 つのビューアを登録します:`docx`(docx-preview)、`xlsx`(Univer sheets)、`pptx`(@aiden0z/pptx-renderer)。サイドバーで該当ファイルを開くと拡張子で自動的に一致します。

必要な better-sidebar のバージョンは?

better-sidebar `>= 0.6.0`(内蔵 office viewer を削除したバージョン)が必要です。それ以前ではプラグインの `docx/xlsx/pptx` 登録が内蔵と衝突し、`already registered` で失敗します。

なぜ better-sidebar に内蔵せず別プラグインなのですか?

docx-preview / Univer / pptx-renderer は client bundle を約 23MB まで膨らませていました。本プラグインに分離することで better-sidebar 本体は圧縮後約 2.2MB にとどまり、必要なユーザーのみが別途インストールできます。

ビューアのレンダリングに失敗した場合は?

読み込み/レンダリング失敗時は「ダウンロードして表示」リンクにフォールバックし、3 つのビューアは Side card 設定ページに個別に有効/無効化できるカードとして表示されます。

08データと出典

  • 作者による申告github.comfbafdc6f8b1b…

    DSH web 插件:为 better-sidebar 的编辑器提供 Office 三件套文件预览(`.docx` / `.xlsx` / `.pptx`)。

  • 作者による申告github.comfbafdc6f8b1b…

    通过 `ctx.betterSidebar.registerFileViewer` 注册 3 个 viewer(id 与内置一致):

  • 作者による申告github.comfbafdc6f8b1b…

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

このページは、プロジェクトの公開ドキュメント、リポジトリのメタデータ、および DSH Plugins の構造化解析に基づいて生成されています。最終検証日:2026-09-03。誤りを見つけた場合は、修正を送信してください。

🏆

dsh プラグイン おすすめ

最初に入れたい 12 のプラグイン。全カタログ・全カテゴリから厳選しました。

DSH Plugins は DeepSeek Harness プラグインの独立したコミュニティ ディレクトリです。DeepSeek との提携・公認はありません。サードパーティ製プラグインはセキュリティ監査を受けていません。インストール前にソースコードをご確認ください。

DeepSeek Harnessの新着プラグインを毎週お届け。スパムはありません。