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

@khorsheed/dsh-capture

v0.1.3

Published

Rendered fetch (capture) host service: one Remote verb renders a URL in a managed headless Chrome and returns the serialized rendered page with CSSOM styles inlined, so static extractors can read JS-heavy pages

Readme

@khorsheed/dsh-capture

English | 中文

灵感空间的协作插件,帮你把想看的文章拉回来,对一些布局比较复杂的网页做了单独的优化和适配。

能做什么

  • 手动再试一次:觉得正文不全,点文章里的「渲染抓取」,让它用浏览器重新抓。
  • 滚到底才出现的图也在:它会把页面从头滚到尾,等懒加载的内容都出来;脚本画的交互图会存成一张静态图。
  • 图的颜色跟着走:原页面给插图、图表配的颜色一起带回来,不会变成一片黑白。
  • 不带你的登录:每次都是一个干净的浏览器,不带 Cookie、不记任何登录信息;内网和本机地址一律不去。
  • 不用就不占地方:第一次用到时才下载浏览器,闲下来一分钟就自己关掉。

安装

在 DSH 的「插件 → 添加插件」里输入下面的包名,点安装:

@khorsheed/dsh-learning-suite

渲染抓取会跟着「学习套件」和灵感空间一起装好——它是给灵感空间用的,单独装没有可用的地方。装完照常在灵感空间里打开链接就行。

已知限制

  • 第一次用会先下载浏览器,比较慢;之后每次约 15–30 秒。
  • 需要登录才能看的页面,抓回来的就是登录页。
  • 带回来的是静态页面:按钮、输入框、展开这些都不能再点;特别长的页面只抓到一定长度。

Compatibility

需要 DSH 0.1.5-rc.1 或更新版本,已在 0.2.1-rc.1 上验证。

给开发者

  • 对外接口(capture.render)、配置项、渲染流程、地址安全检查和威胁模型、本地测试方式,见完整参考。
  • 也可以单独安装:在「添加插件」里输入 @khorsheed/dsh-capture,或 dsh plugin --profile web add @khorsheed/dsh-capture;没有装灵感空间时它没有界面,也不会被用到。
  • 隶属 dsh-plugins,问题与贡献请到该仓库;变更见 CHANGELOG.md。