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

oe-weekly

v1.0.4

Published

使用 Playwright 自动采集 FineBI 和 Grafana 数据,按模板生成周报 Markdown。

Readme

周报自动化采集

使用 Playwright 自动采集 FineBI 和 Grafana 数据,按模板生成周报 Markdown。

通过 npx 使用

无需克隆仓库,直接运行:

npx oe-weekly

指定日期范围:

npx oe-weekly --start=2026-04-24 --end=2026-04-30

首次运行时,如果未检测到 Chrome 或 Playwright Chromium,会提示是否自动安装。

环境要求

  • Node.js 18+
  • macOS
  • 可访问 FineBI 和 Grafana

安装

npm install
cp .env.example .env

.env 里主要用到这些配置:

  • REPORT_USERNAME:填写自己finebi 账号
  • REPORT_PASSWORD:填写自己finebi 密码
  • HEADLESS
  • GRAFANA_SESSION:可不填

首次使用

FineBI 和 Grafana 至少要完成一次登录态准备。

  • FineBI:设置 REPORT_USERNAMEREPORT_PASSWORD即可自动登录,也可以运行时传入 --finebi-username=账号 --finebi-password=密码;未传账号密码时,可在自动打开的浏览器里手动登录。
  • Grafana: 可以设置 GRAFANA_SESSION,或首次运行时在自动打开的浏览器里完成谷歌登录(登录态会写入 .auth/grafana.json),后续无需登录

使用方式

不传日期时,默认采集本周范围。

npm run report

运行时会打印本次采集日期范围,例如:

本次采集日期范围:2026-03-28~2026-04-03

也可以显式指定区间:

npm run report -- --start=2026-03-28 --end=2026-04-03

通过 npx 传入 FineBI 账号密码:

npx oe-weekly --finebi-username=your_name --finebi-password=your_password

参数规则:

  • --start--end 必须同时传入
  • 格式固定为 YYYY-MM-DD
  • start 不能晚于 end

输出结果

每次执行后会生成这些内容:

成功执行时不会生成中间日志文件。失败执行时会生成一个排查日志文件:

  • logs/failed-<时间戳>.json

当前已接入的截图服务

  • constrictor
  • hawk
  • oauth2
  • puffer
  • cobra
  • vicuna
  • webhook