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

oltc-selector

v1.2.9

Published

Huaming OLTC/OCTC type selection CLI. No prices. Same engine as the web app.

Readme

OLTC Selector / 有载开关选型

填工况,给出 2025 目录里最低满足的型号。网页和 oltc CLI 共用同一份 selectOltc 引擎。

CLI(无报价): npx -y [email protected],命令是 oltc。Agent 技能包在独立仓库 erict16/huaming-oltc-selector。
网页: oltc-selector.vercel.app · GitHub Pages

私人辅助,不是厂家官网。型号是起点,出 OS 前要工程确认。

工作台

CLI

不需要 clone 本仓库。不输出人民币、系数、报价。

npm i -g oltc-selector

oltc --iu 350 --um 40.5 --conn D --reg W --pm 8
# CV2III-350D/40.5-10193W

oltc --octc --iu 800 --um 72.5 --conn D --series II --contact 6x5
oltc --iu 600 --um 72.5 --conn Y --reg W --pm 8 --structure combined
oltc --mva 25 --kv 110 --conn Y --reg W --pm 8

| Flag | Meaning | Default | |------|---------|---------| | --iu / --imax | Max through-current Imax (A). No safety factor. | required unless --mva | | --mva --kv | Transformer MVA + tap-side kV → Imax (min tap + --k) | | | --k | Safety factor, capacity path only | 1.2 | | --um | Equipment Um (kV) | derived from --kv on MVA path | | --ust | Step voltage (V) | 0, or derived on MVA path | | --conn Y\|D | Switch star / delta (not Dyn11) | Y | | --reg W\|G\|0 | Reversing / coarse-fine / linear | W | | --pm | ± steps | 8 | | --octc | Off-circuit 无载 (WSL/WSG) | on-load | | --structure | auto / combined 组合式 / compound 复合式 / cage 笼式 / drum 鼓式 | auto | | --series | OCTC wiring II IV V VI VII VIII | auto (Y→IV, D→II) | | --mount | in-tank / on-tank / dry | in-tank | | --oil / --vacuum | Switching medium | vacuum (on-load) | | --contact | OCTC contact e.g. 6x5 | | | --json | Machine output, still no prices | |

--structure auto and omitting --octc match the web first paint: on-load, in-tank vacuum, minimum-adequate ranking.

Selection rules

  1. Minimum-adequate, not SHZV-by-default. Rank CV2 → CM2 → SHZV → SDZV → SHZVG. SDZV (dual-break, Ust 6000 V) only when SHZV step voltage or step capacity is short. Prefer one three-phase unit over 3× singles when a brochure III type exists.
  2. OLTC existence comes from brochure / catalogue axes (lib/catalog.ts), not price-list Y/D twins. A 2025 list row that prices CM2III-…D the same as Y does not make CM2III-…D a type.
  3. No CV2-500. CV2 III currents are 350 and 600 only.
  4. No combined III-D. CM / CM2 / CMD / SHZV / SDZV / SHZVG three-phase strings are star-point Y. Cover delta with 3x…I- when that I type exists. Compound CV / CV2 / SV and on-tank HWV III-D do exist. No SDZV II, I-1200/1500, or III-1300.
  5. Compound has no selector grade letter. No CV2III-350Y/40.5B-…. Combined in-tank may have B/C/D/DE after Um.
  6. WSL / WDL existence is 2025-list row keys without prices (lib/listIndex.data.json). Missing rows (no WSLIV-2000D/126, no 7x6E @ 72.5) are not emitted.
  7. WSG is catalogue axes only (no 2025 list sheet in the index).
  8. Typing Imax (--iu) does not apply a safety factor. --k only applies on the transformer-capacity (--mva) path.

Web app

预选 66 / 110 / 220 kV 带常用工况。默认真变压器容量,星/角推出 Imax(最低分接和安全系数)。调压侧电压推出 Um。点「选型」之后才出型号。

npm install
npm run dev      # http://127.0.0.1:3000
npm test
npm run pack:cli

GitHub Pages:npm run build:gh(GH_PAGES=true)。Vercel 根路径,不要设 GH_PAGES。

内部看价仍在网页右上角「内部」(口令)。CLI 包不含价表。 本地 .env.local:

NEXT_PUBLIC_ADMIN_PASSWORD_SHA256=<sha256 hex of the password>

语言:中文、English、Tiếng Việt、Español、Türkçe、Русский。

OS regression

docs/replay/2025-os-sales.xlsx and 2026-os-sales.xlsx hold sold type plus duty (Imax, Um, Ust, ±, Y/D, phases, serial). Rebuild from JSON:

python scripts/os-to-excel.py

npm test runs shipped selectOltc on every complete row: no illegal type out; a legal sold type that covers the duty must appear in ranked results.

许可

条款 · 隐私。仅供参考。