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

kaca

v1.0.10

Published

网页截图api

Downloads

29

Readme

Kaca

我们提供的核心服务就是通过你提供一个 web 网页地址,或者网页内容,对这个网页的内容进行图片或者 PDF 或者视频的导出。通常的使用场景如下

  • 网页截图:可以对一个网页进行局部或者全屏的截图,并导出为图片
  • 网页导出 PDF:可以对一个网页进行局部或者全屏的导出,并导出为 PDF 文件
  • 网页录制:可以对一个网页进行录制,并导出为视频文件,你可以方便的用 web 技术手段来做动画,最终输出视频

安装部署

node 最小版本 v18.x

::: code-group

npm install -g kaca
yarn global add kaca

:::

运行

kaca # 运行截图服务
kaca -h # 你可以通过这个命令查看帮助信息,可以设置服务的端口,host等

运行后默认会在 http://localhost:3000 运行一个截图服务,如果你的电脑上没有安装 chromium,或者 chrome,在第一次运行会自动下载 chromium,并解压,时间会比较长,请耐心等待。

该服务启动后会有对应的帮助文档和接口服务

开发

yarn dev # 启动开发的代码编译,文档服务启动,以及基础库的生成
yarn monitor # 启动截图服务器

联系方式

| 邮件 | 微信 | | ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | | [email protected] | 添加的时候备注上 kaca |

支持

本项目可以通过 npm 安装进行使用,如果需要获取源码自行修改,可以通过微信或者邮件联系我,需要支付部分费用后提供源码。