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

@jianlong-ww/dsh-explorer-editor

v0.1.2

Published

Monaco editor inside the DeepSeek Harness file preview: edit, highlight, and project-typed completion in place.

Readme

dsh-explorer-editor

由于之前工作主要用 Cursor,习惯了 Cursor 可以直接手动编辑的能力,所以写了个让 DSH 可以直接手动编辑文件内容的小插件

在预览面板中编辑 TypeScript 文件:语法高亮、参数补全提示、顶栏保存与未保存状态

功能

打开右侧栏里的文本文件,预览面板本身就是编辑器,不再是只读文本。集成 Monaco 的能力:高亮、行号、多光标、撤销栈、括号匹配、查找替换、快捷键等

支持的文件类型

| 类别 | 后缀 | |---|---| | 代码 | ts tsx mts cts js jsx mjs cjs py go rs java kt kts rb php cs swift c h cpp cc cxx hpp hh m mm | | 标记与数据 | json jsonc json5 css scss less html htm xml vue svelte graphql gql | | 文档 | md markdown mdx txt text rst adoc | | 配置与脚本 | yml yaml toml ini conf cfg env properties sh bash zsh fish ps1 psm1 bat cmd gradle sql lock log | | 点文件 | gitignore gitattributes gitmodules npmrc nvmrc yarnrc editorconfig prettierrc eslintrc babelrc dockerignore clang-format tool-versions 等(按点后面的名字匹配,例如 .gitignore 的后缀是 gitignore) |

DSH 的匹配规则是「文件名以 . + 后缀结尾」,因此没有后缀的文件(Makefile、LICENSE)和未列出的后缀仍由内置只读视图打开。图片、PDF、Office 文档不会被接管;Markdown 默认进编辑器,但内置的渲染视图仍在视图菜单里可切回。

要求

  • DSH 0.2.1-rc.5 及以上

安装

dsh plugin --profile desktop add @jianlong-ww/dsh-explorer-editor # 桌面应用
dsh plugin --profile web add @jianlong-ww/dsh-explorer-editor     # 浏览器端

也可以用 GitHub Release 里的预构建包(与 npm 上的内容相同,适合不方便访问 npm 的环境):

dsh plugin --profile desktop add https://github.com/jianlong-ww/dsh-explorer-editor/releases/download/v0.1.0/dsh-explorer-editor-0.1.0.tgz

不建议用 github: 或 git+https:// 安装:仓库不包含编译产物,pnpm 会把 git 依赖当成待构建的包去装它的 devDependencies(含 monaco-editor),在 Windows 上还会因跨盘符号链接而报 EPERM。

装完重启 dsh,然后刷新页面。

卸载:

dsh plugin --profile desktop remove @jianlong-ww/dsh-explorer-editor

从源码安装

git clone https://github.com/jianlong-ww/dsh-explorer-editor.git
cd dsh-explorer-editor
pnpm install && pnpm build
dsh plugin --profile desktop add .

License

MIT,见 LICENSE。内置的 Monaco 构建来自 monaco-editor(MIT)。