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

@starpivot/dsh-file-drop

v0.1.1

Published

Drop any non-image file into the composer as a path. Files over 256KB insert a brief summary only.

Readme

@starpivot/dsh-file-drop

dsh Web 对话区拖入非图片文件时,不再弹出「仅支持 PNG、JPG、WebP、GIF」。 插件在 capture 阶段接手这次拖放,把本机路径写进输入框。

行为

  • 图片(PNG / JPG / WebP / GIF)仍走官方附件栏。
  • 其它任意文件或文件夹写入输入框,一行一个摘要:路径 + 大小。含空格的路径会加引号。
  • Finder / 桌面端能给出 file://File.path 时,插入真实本机路径。
  • 超过 256 KB 只插入简要信息(路径、大小、large file),不读、不暂存、不把内容写进输入框。
  • 浏览器拿不到路径、且文件小于 256 KB 时,Host 把文件写到 ~/.dsh/dropped/<uuid>-<name>,再插入这条路径。
  • 锁定、只读或没有可用输入框时,不会插入。

安装

dsh plugin --profile web add @starpivot/dsh-file-drop
# or, from git:
dsh plugin --profile web add github:StarPivotNet/dsh-plugins-public#path:packages/file-drop

然后重启 dsh web 或桌面端。

文件

package.json        包声明 + dsh.bundle.patch + dsh.client 清单
cordis.patch.yml    bundle 挂载层(id: file-drop / ui-file-drop)
src/logic.ts        分类、路径解析、插入拼接
src/host.ts         Host RPC:stage 无路径文件
src/client.ts       capture 阶段拖放拦截
src/plugin.ts       浏览器入口
lib/                构建产物
README.md           本文件