npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

dsh-files-desk

v0.1.4

Published

Files workbench for DeepSeek Harness: a right-sidebar workspace tree, a CodeMirror editor with versioned saves, file operations, and handoff to the document preview.

Readme

Files workbench for DeepSeek Harness

A Files tab in the Harness right sidebar that browses the session workspace, edits files in a CodeMirror editor, saves them with a conflict check, manages files from shared context menus, and hands documents to the shipped preview.

Files workbench open in the right sidebar

What it does

  • Takes over the built-in files tab kind, so Mod+P, the Files guide card, and the tab strip open the workbench.
  • Lazy workspace tree with the harness's own rows, sorting, icons, and context menus.
  • CodeMirror editor with syntax highlighting for common languages, find and replace, cursor status, wrapping, and a landing band when a line is opened from elsewhere.
  • Versioned save with files/conflict when the disk changed, autosave on an 800 ms debounce, and Ctrl+S.
  • New file, new folder, rename, duplicate, cut, copy, paste, delete, and copy path from the toolbar and shared file and directory menus.
  • A separate editor resource tab type, so file links and Git diffs open the same editor at the exact line.
  • Markdown, HTML, images, CSV, Office, and PDF keep the shipped preview, with an Edit path from the preview and a Preview path from the editor.
  • English and Chinese strings; every color comes from a harness token.

Install

Open the app's Plugin manager, choose to install a local bundle, and point it at /home/parth/Production/dsh-files. Then reload the window once. The profile links this directory, so a rebuild is visible after a window reload.

Open it

  1. Reload the window once (Ctrl+R in the desktop app).
  2. Press Mod+P, or pick the Files card in the right sidebar Start guide.
  3. Expand a folder and click a text file. Images, PDF, Office files, and archives open the preview instead.

Screenshots

Captured from the web GUI on 2026-11-12.

Text files open in the CodeMirror editor with the workspace tree beside them.

Workspace tree and CodeMirror editor

Markdown, HTML, images, CSV, Office, and PDF keep the shipped preview. The preview keeps an Edit path back to the editor.

Markdown preview of this README

File actions come from the shared file and directory context menus, so the plugin adds no new menu style.

File actions from the shared context menu

Architecture

The browser never touches the filesystem. Every read and write goes through one authenticated route, /files-rpc, admitted by ctx.connection.admit and confined to the workspace root for mutations. Reads outside the workspace are allowed and read-only, matching the preview's read authority. Writes compare an opaque version (inode, size, modification time) before an atomic temp-and-rename.

The client registers two tab types. dsh-files-desk is an extension-band registration for kind files; the built-in page is shadowed while the plugin is loaded and returns when it unloads. dsh-files-desk/editor claims text file addresses at the extension band, so openResource(address, { params: { line } }) lands in the editor at that line.

The editor is a lazy chunk (client.editor.js), loaded the first time a buffer opens. The main client bundle stays small.

Development

npm install
npm run typecheck  # tsc over the host project and the browser client
npm test           # host, HTTP, client, editor, and workbench tests
npm run build      # compile src/host to dist and rebuild both client bundles

Sources are TypeScript. src/host/ compiles to dist/ and is the package entry; src/client/ is bundled to client.js and client.editor.js. The wire shapes both halves share live in src/contract.ts. The compiled output is committed for the linked profile. Edit src/ and rebuild; never edit dist/, client.js, or client.editor.js by hand.

Verified

A live pass on 2026-11-10 used the running app in Chrome through the Playwright extension:

  • The Start guide showed one Files card and opened the workbench.
  • The tree listed and expanded; a Markdown file opened with highlighting; autosave, Ctrl+S, conflict, Overwrite, and Reload all behaved.
  • New file, new folder, rename, duplicate, delete, copy, and paste worked from the toolbar and the shared menus.
  • The Markdown preview, image preview, and the Git diff's Open in editor at line 11 all worked.

The pass also caught two defects that are fixed: a leading slash on root-level breadcrumbs, and a Git callback that read repoRoot outside its scope.

Limits in this version

  • No search across file contents, quick-open picker, split editors, multi-cursor, drag and drop, or LSP.
  • Writes are local-disk only. A remote or SSH workspace is not supported.
  • Text files over 5 MB, binary files, and non-UTF-8 files are not opened in the editor.
  • File operations from a context menu need the workbench to have been opened in that session at least once, because that is when the workspace binding is recorded.
  • The Git plugin opens the working-tree file at the first change in the diff. Per-line open buttons are not added yet.

Contracts, rules, acceptance criteria, and tests are in docs/features/FEAT-001-files-workbench.md.