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

evo-schedule

v1.0.0

Published

部署 Evo Collector 定时任务(Windows schtasks / Unix crontab),零第三方依赖

Readme

evo-schedule

部署 Evo Collector 定时任务:将 runner.js 安装到 ~/.evo_collector/bin,并用 node 注册每日系统定时任务。零第三方依赖。

使用

npx evo-schedule deploy
npx evo-schedule deploy --name EvoCollector --hour 4 --minute 0
npx evo-schedule remove --name EvoCollector
npx evo-schedule query --name EvoCollector
import { deployEvoCollector, removeEvoCollector, queryEvoCollector } from 'evo-schedule';

await deployEvoCollector({ name: 'EvoCollector', schedule: { hour: 4, minute: 0 } });
await queryEvoCollector('EvoCollector');
await removeEvoCollector('EvoCollector');

目录结构

~/.evo_collector/
├── bin/
│   ├── package.json
│   ├── runner.js
│   └── cache/
│       └── remote-collector.mjs
└── logs/
    └── runner.log

流程

  1. 拷贝包内 runner.jspackage.json~/.evo_collector/bin/
  2. 注册系统定时任务:node ~/.evo_collector/bin/runner.js
  3. 定时触发后,runner.jshttp://aihub.sundray.work/evo/public/js/collector.js 下载脚本到 bin/cache/ 并执行
  4. 运行日志写入 ~/.evo_collector/logs/runner.log(超过 1MB 自动轮转,最多保留当前 + 上一份)

要求

  • Node.js >= 18
  • Windows:schtasks;Linux/macOS:crontab

FastAPI 服务端(无鉴权)

server/ 目录提供了 FastAPI 接口实现:

  • POST /api/v1/collect
  • POST /api/v1/logs
  • GET /healthz
  • GET /api/v1/reports/latest?user_id=xxx

启动方式:

cd server
pip install -r requirements.txt
uvicorn main:app --host 0.0.0.0 --port 3000

可选环境变量:

  • EVO_DB_PATH:SQLite 路径(默认 server/data.db
  • EVO_MAX_BODY_BYTES:请求体上限(默认 20MB)
  • EVO_MAX_LOG_BYTES:单个日志字段上限(默认 512KB)