Mol* 结构查看器
A DSH Web plugin that adds a Mol\ 3D structure viewer to dsh-file-explorer, overriding its plain previews for protein-structure and small-molecule files.
이것은 DeepSeek Harness(DSH) 플러그인입니다. 이 사이트는 GitHub README, 설치 정보, 유지보수 상태, 공개 보안 시그널을 모아 보여줍니다.
업스트림에서 중국어 README를 제공하지 않아 저장소 원본 내용을 표시합니다.
dsh-file-explorer-preview-molstar
A DSH Web plugin that adds a Mol* 3D structure viewer to dsh-file-explorer, overriding its plain previews for protein-structure and small-molecule files.
Select a .cif / .pdb (or any supported format below) in the file explorer and the preview panel renders an interactive 3D model instead of raw text.
Screenshots
| Dark theme | Light theme |
|---|---|
![]() | ![]() |
Features
- 3D structure viewer built on
molstar(PluginContext+ a minimal canvas — no full Mol* UI). - Representation presets: Auto / Cartoon / Ball & Stick / Molecular surface.
- Coloring by default / chain / entity, reset camera, spin toggle, and a dark/light background that follows DSH's
data-ds-dark-theme. - Status bar with the format badge and atom/residue/chain counts.
- Localized toolbar/status copy (中文 / English).
- Large & binary files: for files over the core's 2 MiB text cap, and for
.bcif, the plugin fetches raw bytes through the core'sfileExplorer.readRawFile(see Dependencies).
Supported formats
| Extension | Format |
|---|---|
cif mmcif mcif | mmCIF |
bcif | BinaryCIF |
pdb ent | PDB |
pdbqt | PDBQT |
pqr | PQR |
sdf sd | SDF |
mol | MOL |
mol2 | MOL2 |
xyz | XYZ |
gro | GRO |
Install
From the Git repository
dsh plugin --profile web add github:wolfsonliu/dsh-file-explorer-preview-molstar
dsh web
From source
git clone https://github.com/wolfsonliu/dsh-file-explorer-preview-molstar
cd dsh-file-explorer-preview-molstar
npm install
npm run build
dsh plugin --profile web add .
dsh web
Dependencies
This plugin requires @dsh-external/dsh-file-explorer — it injects the fileExplorer cordis service (registerPreview / writeFile / readRawFile). Install and enable dsh-file-explorer before this plugin:
# install the core from git
dsh plugin --profile web add github:wolfsonliu/dsh-file-explorer
# or, from source
git clone https://github.com/wolfsonliu/dsh-file-explorer
cd dsh-file-explorer
npm install && npm run build
dsh plugin --profile web add .
For local development, this repo's
devDependenciesresolves@dsh-external/dsh-file-explorer's./clienttype definitions. Point it at your checkout or your registry's published package beforenpm install.
For files ≤ 2 MiB the plugin parses the text preview content directly. To preview larger files and .bcif, dsh-file-explorer must also expose readRawFile (a small core change described in docs/specs/handoff-2026-08-15-molstar-core-changes.md). Until that change is applied, the plugin degrades gracefully: ≤ 2 MiB files still preview, larger ones show the core's "too large" status.
Limitations
- Requires a WebGL-capable browser.
- Read-only preview (no editing).
- Trajectories and density maps (
.dcd,.nc,.map) are out of scope.
Development
npm run check # tsc type check
npm test # vitest unit tests
npm run build # tsc + tsdown (single-file lib/client.js bundling molstar)
The real WebGL mount cannot run under jsdom; verify it with dsh web and a structure file in examples/.
After
npm run build, hard-refresh the browser (Ctrl/Cmd+Shift+R):dsh webmay keep serving a cached plugin bundle, so a soft reload can leave your latest build unused.
보안 및 설치 증거
이 점수는 공개 저장소 메타데이터와 이 사이트에 등록된 설치 증거에만 기반하며, 코드 보안 감사와 다릅니다.
공개 플러그인 카탈로그에서 왔으며, 공개 GitHub 저장소로 연결됩니다.
저장소가 MIT 라이선스를 선언했습니다.
최근 180일 내 코드 업데이트가 있습니다.
재현 가능한 정확한 설치 메타데이터가 아직 등록되지 않았습니다. 저장소 설명에 따라 직접 확인하세요.
검사한 패키지 메타데이터에 설치 라이프사이클 스크립트가 선언되지 않았습니다.

