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

poi-plugin-autoreload

v0.1.0

Published

auto reload the game right after a resource node is picked up (fuel farming helper)

Readme

poi-plugin-autoreload

踩到资源点后自动帮你重载游戏 —— 偷油不用再盯着手动点。 等价于在 poi 插件面板上点「重载游戏」(gameReload(),只重载游戏本体,不刷整个页面),但全自动。

  • 默认是关的,不打开开关不会做任何事;正常推图(打活动 / 做任务)时请关掉。
  • 与 KCA 的自带补丁共用 window.__sgoAutoReloadGuard 去重:两边同时开着也只会刷一次。
  • 只监听两个响应:api_req_map/next(踩点)与 api_port/port / api_req_map/start(已回母港 / 又出击 → 取消待刷)。
  • 每次事件都写进 %APPDATA%\poi\autoreload.log,事后能跟 ShimakazeLite 的到账记录逐笔对账。

⚠️ 本插件只是替你按刷新。那一发重载能不能真的把油刷到账,取决于重载时的 api_start2/getData 有没有被本地拦下(见下「到账前提」)。

安装

方式一(poi 面板):设置 → 插件 → 那个打开 npmjs.com/search?q=poi-plugin 的按钮 → 把 poi-plugin-autoreload 粘进去让 poi 自己安装。

方式二(手动):

cd %APPDATA%\poi\plugins-extra
npm i poi-plugin-autoreload

方式三(本地开发):把本目录整个复制到 %APPDATA%\poi\plugins-extra\node_modules\poi-plugin-autoreload,重启 poi。

依赖(react / @blueprintjs/core / @electron/remote)声明成 可选 peerDependencies: poi 用 npm install --ignore-scripts --legacy-peer-deps 装插件,所以不会给插件再装一份 React; 插件里的 require('react') 走 poi 自己的 require 搜索路径(ROOT)。

面板怎么看

正面只有两个开关、两行状态和一个按钮:

  1. 打开 「开启自动刷新」。下面的 「现在:…」 会告诉你它接下来会怎么刷 (默认档:踩到资源点后等 0.8 秒就刷新);
  2. 底下一行是读数:「已自动刷新 N 次 · 踩到资源点 M 次」,以及最近一次干了什么(「当前:…」);
  3. 想先确认通路:点一下 「立即刷新一次」(手动刷一下,看油有没有涨)。

延迟、等下一格的最长时间、超时后要不要硬刷,以及诊断信息(监听 API 有没有挂上 / 最近收益 / 最近刷新 / 日志路径),全部收在底部的 「详情:延迟 / 排错信息」 里,平时不用碰。

两种刷新时机

| 档位 | 面板上的开关 | 行为 | |---|---|---| | timer(默认、推荐) | 「等走完下一格再刷新」关 | 踩到资源点 → 等 0.8 秒 → 重载回母港 | | afterNext(对照档) | 「等走完下一格再刷新」开 | 踩到资源点 → 等你(或 KCA)走完下一格 → 再等 0.8 秒 → 重载;最多等 60 秒,等不到就放弃(会提示手动走到下一格再刷) |

延迟可在「详情」里改(0–60000 毫秒),超时上限 5–600 秒,也有「等不到下一格也照样刷新(不推荐,实测会丢油)」开关。

到账前提

重载那一下要拿到母港数据(api_start2/getData)。本地拦下它有两种办法,任选其一:

  • poi-plugin-s2cache 切到 「开启(推荐)」 —— 在游戏页面里直接由缓存回答,那一发根本不出门;
  • 挂着 ShimakazeLite(start_mitm.bat)—— 默认 TTL 7200 秒,且踩到资源点会自动续期。

两者都没有的话,那约 2.3MB 会真的发往服务器,这一次拾取很可能就白刷了 (实测同一天两次同构流程:07:38 未命中 → 油 +0、07:39 命中 → 油 +84,差别只在重载那一发是命中还是转发)。

排错

  • 日志:%APPDATA%\poi\autoreload.log。典型几行:
    • pickup +84 -> reload scheduled in 800ms (timer)
    • reload -> gameReload()
    • pickup +84 -> waiting for next cell (timeout 60s, mode afterNext)
    • timeout 60s: no next cell -> gave up (move to next cell, then reload manually)
  • 「踩到资源点」涨、「已自动刷新」不涨 → 事件收到了但这一发被别人接管了(多半是 KCA 补丁或 ShimakazeLite 已经在刷,去重守卫生效),也可能这一发正在排队等延迟。
  • 刷新了但油没涨 → 回到上一条「到账前提」,并在 s2cache / lite 的日志里找 ▣ start2 命中本地缓存。
  • 改设置不需要重启 poi,改完立刻生效(延迟那一格按回车或点出输入框就写入)。

请自己判断要不要用

它在页面里替你做「重载游戏」这个动作,属于自动化操作;本插件与 poi / KCA / DMM 官方无关, 按 MIT「按现状」提供。想先量化收益再决定:它和 poi-plugin-s2cache 都带计数与日志, 按 A / A′ / B / C / D 几组跑一跑对账即可(做法见 ShimakazeLite 仓库 poi/README.md §7.3)。

License

MIT