liguobao/dsh-file-viewer

liguobao★ 2TypeScriptLast synced: 2026-08-21

Open on GitHub

DeepSeek Harness 通用只读文件预览插件,支持图片、PDF、CSV、Markdown、JSON、YAML、源码及大文件。

README excerpt

DSH File Viewer English 中文 Online: dsh.r2049.cn A universal, read-only file preview layer for DeepSeek Harness: open and inspect files right inside the web UI — no external application needed. Preview ≠ Execute. The viewer is strictly read-only: previewing a file never runs shell commands, scripts, macros, or HTML. SVG is rendered through , and Markdown is sanitized before display. Supported file types Type Renderer PNG / JPG / GIF / WEBP / SVG / BMP Image (fit, zoom, pan, dimensions) PDF PDF.js (page nav, page input, zoom, fit width/page) CSV / TSV Data table (delimiter auto-detect, sticky header, row numbers, search, sort, column resize, windowed rows, chunked loading) TXT / LOG / OUT / INI / CONF Text (line numbers, wrap, search, font size, chunk navigation) JS / TS / Python / Go / Rust / Java / C/C++ / C / Shell / HTML / CSS / SQL / … Code (highlight.js, read-only) Markdown Preview (sanitized) + Source JSON / JSONL Tree (expand/collapse, copy value/path) + Source YAML Source + parsed Tree anything else Fallback (metadata + Open externally / Reveal / Copy path / optional Open as text) How it works - Host half ( dist/index.js ) registers the /fileviewer loopback RPC channel and e…

View full README on GitHub →
Media / Contentdsh-pluginweb uisearch

Category