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

@qianhaoq/dsh-dota2ai

v0.2.158

Published

dota2.ai for DSH: standalone replay review page, DSH host-model agent, coach tools and skill

Readme

dota2.ai for DSH

简体中文 · Русский

A native DSH (DeepSeek Harness) plugin that brings the full dota2.ai experience into DSH:

  • Standalone dota2.ai page in the DSH sidebar: home, recent games (with a cross-match habits snapshot and local Practice Log on your player page), patch advisor, and the full replay review page (10-player scoreboard, percentile checkup benchmarks, clickable replay evidence cards, inline timestamp jump to the 10-hero minimap replay, copyable battle summary, coach chat rail, and pinned practice focus check-ins).
  • Powered by your DSH host models (ctx.llm): deep replay investigations (runDeepReview + verifyReview), follow-up chat (runChat + verifyText) and the patch advisor all run locally using the models you configured in DSH — defaulting to your selected DSH model, with an in-page switcher to compare any model in your DSH profile on the same match.
  • Session tools, skill & clickable chat cards: nine dota2ai_* tools and a dota2ai skill sharing the same local $DSH_HOME/dota2ai trace/review cache, with chat cards that open the match or player page in one click.

Install

Desktop App (Recommended — no terminal needed)

  1. Download and install the DeepSeek Harness desktop app (macOS / Windows) from https://www.deepseek.com/harness/, open it, and enter your DeepSeek API Key.
  2. Paste this one sentence into a chat in DeepSeek Harness and press Enter:
Install the dota2.ai Dota 2 replay coach plugin @qianhaoq/dsh-dota2ai into my active desktop profile, then tell me how to open dota2.ai in the left sidebar.
  1. Reload if prompted, then click dota2.ai in the left sidebar.

Update

  • Desktop App: paste into a chat in DeepSeek Harness and press Enter:
Update my @qianhaoq/dsh-dota2ai plugin to the latest version and reload if needed.
  • CLI (dsh web):
dsh plugin --profile web update @qianhaoq/dsh-dota2ai

CLI / Linux (dsh web)

Needs Node 24.9 or newer and DSH 0.2.x (≥ 0.2.1-rc.3): verified on 0.2.1-rc.3 and 0.2.2-rc.5, which is npm's latest. DSH installs plugins with pnpm, so pnpm must be on your PATH.

npm install -g pnpm @deepseek-ai/[email protected]
dsh plugin --profile web add @qianhaoq/dsh-dota2ai
DEEPSEEK_API_KEY=sk-... dsh web      # or start plain `dsh web` and enter the key in DSH's own API-key dialog

Then open dota2.ai in the DSH sidebar, paste a match ID and pick your hero. The review runs on your own DeepSeek key, so it has no queue and no daily limit. A deep review is a few hundred thousand input tokens. To check the download, fetch SHA256SUMS from the same release and run sha256sum -c SHA256SUMS.

One archive serves Linux, macOS and Windows: there is no native code. Parsed replay traces (~250 KB gzipped) are fetched from dota2.ai (or built locally when extractorBin is set) and cached under $DSH_HOME/dota2ai/traces/. Reviews, chats, pinned practice focus cards and your practice log stay on your machine under $DSH_HOME/dota2ai. The public dota2.ai/r/<match> page does not show them.

Web site, DSH or an agent?

| | dota2.ai web | DSH plugin | Agent over MCP | |---|---|---|---| | Model that writes the review | dota2.ai's | yours (any model in your DSH) | dota2.ai's (replay_review) | | Limits | per caller, and a daily limit for the whole site | none of ours | same as web | | Where the review is kept | dota2.ai | your machine | dota2.ai |

Troubleshooting

  • installation rejected … incompatible with dsh: your DSH is outside the range above. Install a DSH from the range (npm install -g @deepseek-ai/[email protected]) or a newer plugin release.
  • pnpm not found / plugin command failed: npm install -g pnpm, then run dsh plugin … add again.
  • The panel says no model / the tool answers model_not_configured: DSH has no model with a key yet. Start dsh web with DEEPSEEK_API_KEY set, or enter the key in DSH's API-key dialog, and pick a model.
  • No dota2.ai entry in the sidebar, or no tools: the profile's package.json must list the package in dependencies and in dsh.profile.bundles, and dsh --profile web --dump-config should list a dota2ai entry. In GUI profiles (dsh web and Desktop), DSH's typert-loader loads ./typert and Dota2AiRemote attaches to ctx.typert. In headless CLI profiles without typert, the nine dota2ai_* tools and the dota2ai skill still activate.
  • Matches or the example game cannot load (Could not reach the match service): the plugin needs outbound HTTPS access to apiBase (https://dota2.ai, with automatic OpenDota fallback for scoreboards). If your machine reaches the internet through a local HTTP/HTTPS proxy (Clash, v2ray, corporate proxy, etc.), set HTTPS_PROXY / HTTP_PROXY (for example http://127.0.0.1:7890) or configure proxy under dota2ai in cordis.patch.yml (honors NO_PROXY). Only http:// and https:// proxy URLs are supported directly (socks5:// logs a warning and falls back to direct fetch).

Tools

| Tool | What it does | |---|---| | dota2ai_replay_review | Deep replay review investigated locally by your DSH model and checked against the replay (verifyReview). Never blocks: parsing / reviewing mean call again after poll_after_sec; pick_hero means ask the user; ready has the verdict, highlights, checked findings, draft blueprint, chapters, and blind spots | | dota2ai_recent_matches | A player's recent public games (account: Steam friend code or profile link) | | dota2ai_match_scoreboard | Factual 10-player scoreboard, roles, final items, key item timings, and data gaps (hero optional) | | dota2ai_replay_ask | A follow-up question answered locally by your DSH model using replay lookup tools | | dota2ai_hero_matchup | Hero vs hero from pro games; by_rank from STRATZ (credit STRATZ when quoting it) | | dota2ai_wiki_lookup | Offline-first Dota 2 Wiki mechanics, transcribed formulas, hero/item edge cases, embedded interaction tables, and cross-hero/item interaction matrices (mode: "interact", lang: en / zh / ru / es; see also packages/cli/skills/dota2-wiki/SKILL.md) | | dota2ai_mechanics_lookup | Offline-first compiled Dota 2 Mechanics KB (source: "kb" default: patch-verified rules, formulas, dispel/BKB/Break interactions, counters, macro benchmarks, neutral/summon units, with explicit Wiki/KB conflict propagation) or Dota 2 Wiki (source: "wiki") | | dota2ai_player_history | Local-first structured cross-match replay metrics ($DSH_HOME/dota2ai/player-history.json, zero LLM prose, role-segmented core vs support, history:<matchId>:<metric> refs) | | dota2ai_player_trends | Role-segmented cross-match habits & trajectory (by_role_group.core vs support, up / down / flat deltas) from already-cached replays | | dota2ai_patch_advisor | Live patch & meta advisor powered by your DSH model grounded in Valve patch notes, STRATZ deltas, and offline Wiki/KB data |

Settings

In the profile's cordis.patch.yml, under the dota2ai entry:

| Field | Default | Meaning | |---|---|---| | enabled | true | Enable the UI panel and register the tools | | lang | en | Default answer language when a tool call names none (en, zh, ru, or es) | | apiBase | https://dota2.ai | dota2.ai origin for match data and parsed replay traces | | proxy | "" | Optional HTTP/HTTPS proxy URL (e.g. http://127.0.0.1:7890); when empty, honors HTTPS_PROXY / HTTP_PROXY / NO_PROXY | | skillEnabled | true | Register the dota2ai skill | | homeDir | "" | Custom local storage directory (defaults to $DSH_HOME/dota2ai or ~/.dsh/dota2ai) | | extractorBin | "" | Optional local dota-extract binary path for offline replay parsing and in-panel local .dem import (file picker, Steam scan, or path input via dota2ai/importLocalDem) | | replaysDir | "" | Optional custom Steam Dota 2 replays/ folder searched for local .dem files (in addition to standard OS Steam paths) | | replayArchiveMaxGb | 2 | Maximum disk budget (GB) for the local LRU .dem replay archive under $DSH_HOME/dota2ai/replays/ | | enableWebSearch | (unset / off) | Allow local reviews and follow-up chats to call DeepSeek Search (web_search) using DEEPSEEK_API_KEY (off by default; opt in with true or DOTA2AI_DSH_WEB_SEARCH=1 when unset; explicit false or AGENT_WEB_SEARCH=0 disables) | | preArchive | false | Opt-in low-priority background pre-archival of recent (<10d) replays when extractorBin is configured |

Develop

npx vitest run packages/dsh                          # host LLM bridge, trace pipeline, local service, UI panel & bundle
node packages/dsh/scripts/pack.mjs                   # dist/qianhaoq-dsh-dota2ai-<version>.tgz + SHA256SUMS
node packages/dsh/scripts/installed-smoke.mjs packages/dsh/dist/*.tgz \
  --dsh <dir>/node_modules/@deepseek-ai/dsh/lib/bin.js [--browser]
# a real review on a real model through a real `dsh web` (spends the key's account; see the script's header)
DEEPSEEK_API_KEY=… node packages/dsh/scripts/live-review.mjs packages/dsh/dist/*.tgz \
  --dsh <dir>/node_modules/@deepseek-ai/dsh/lib/bin.js [--lang zh] [--browser <screenshot dir>]

简体中文

原生 DSH(DeepSeek Harness)插件,在 DSH 内完整复刻 dota2.ai 页面并直接使用 DSH 宿主模型:

  • 左侧栏独立 dota2.ai 页面:包含首页选局、玩家页(近期比赛、跨场习惯快照与本地练习成长日志)、版本顾问与完整复盘页(10 人记分板、分段分位体检、可展开录像原始证据卡、正文时间点一键跳转 10 英雄小地图回放、一键复制复盘战报、右侧流式追问栏、置顶练习课题跨场检验)。
  • 由你的 DSH 宿主模型驱动(ctx.llm):录像深度调查复盘(runDeepReview + verifyReview 事实核查)、录像查证追问(runChat + verifyText)与版本顾问均在本机调用你在 DSH 配置的模型——默认跟随 DSH 当前模型,同时保留页面内模型切换器,支持同一局用不同模型对比复盘。
  • 会话工具与卡片联动:9 个 dota2ai_* 工具与独立页面共享本地 $DSH_HOME/dota2ai 缓存(覆盖深度复盘、追问、记分板、战绩、对位、百科、练习课题检验、跨场习惯趋势与版本顾问),聊天内的工具卡片可一键跳转到对应复盘页或玩家页。

桌面客户端一键安装(推荐,免命令行):

  1. 前往 https://www.deepseek.com/harness/ 下载并安装 DeepSeek Harness 桌面客户端(macOS / Windows),打开后填入你的 DeepSeek API Key。
  2. 直接把下面这句话粘贴到桌面客户端的聊天框发送:
帮我安装 dota2.ai 的 Dota 2 复盘插件 @qianhaoq/dsh-dota2ai 到当前桌面端 profile,装好后告诉我怎么在左侧栏打开 dota2.ai。
  1. 按提示刷新或重启后,点左侧栏 dota2.ai 即可使用。

更新插件:

  • 桌面客户端:直接把下面这句话粘贴到聊天框发送:
帮我把 @qianhaoq/dsh-dota2ai 插件更新到最新版本,如需刷新或重启请提示我。
  • 命令行(dsh web):
dsh plugin --profile web update @qianhaoq/dsh-dota2ai

命令行安装(Linux / dsh web)(需要 Node ≥ 24.9,DSH 0.2.x (≥ 0.2.1-rc.3),npm 上的 latest 是 0.2.2-rc.5;DSH 用 pnpm 装插件):

npm install -g pnpm @deepseek-ai/[email protected]
dsh plugin --profile web add @qianhaoq/dsh-dota2ai
DEEPSEEK_API_KEY=sk-... dsh web      # 或者直接 dsh web,在 DSH 弹出的 API Key 窗口里填

然后在 DSH 左侧栏打开 dota2.ai,贴比赛 ID、选英雄即可。复盘用的是你自己的 DeepSeek Key:不排队、不限次(一次深度复盘大约几十万输入 token)。复盘、追问、置顶练习课题和练习日志都保存在你自己电脑的 $DSH_HOME/dota2ai 下,公开的 dota2.ai/r/<比赛> 页面看不到它们。

常见问题

  • installation rejected … incompatible with dsh:你的 DSH 版本不在上面的范围内。装范围内的版本(npm install -g @deepseek-ai/[email protected]),或者换更新的插件版本。
  • 找不到 pnpm / plugin command failed:先 npm install -g pnpm,再重新执行 dsh plugin … add。
  • 页面提示没有模型 / 工具返回 model_not_configured:DSH 里还没有可用的模型。启动 dsh web 时带上 DEEPSEEK_API_KEY,或者在 DSH 的 API Key 窗口里填写,然后选一个模型。
  • 左侧栏没有 dota2.ai、会话里没有工具:profile 的 package.json 需要同时在 dependencies 和 dsh.profile.bundles 里列出本插件,dsh --profile web --dump-config 里应能看到 dota2ai。
  • 搜索比赛或示例对局提示“暂时连不上比赛数据服务”:插件需要通过 HTTPS 访问 apiBase(默认 https://dota2.ai,记分板不可达时会自动兜底尝试 OpenDota)。如果你在代理环境下使用(如 Clash / v2ray / 公司代理),请设置环境变量 HTTPS_PROXY / HTTP_PROXY(如 http://127.0.0.1:7890),或在 cordis.patch.yml 的 dota2ai 下配置 proxy(支持 NO_PROXY;仅原生支持 http:// 和 https:// 代理)。

同一个包适用于 Linux、macOS 和 Windows(无原生编译二进制)。配置项(cordis.patch.yml 下 dota2ai):enabled、lang(en/zh/ru/es)、apiBase、proxy、skillEnabled、homeDir、extractorBin、replaysDir、replayArchiveMaxGb、enableWebSearch(默认未设置/关闭,设为 true 或在未显式设为 false 时通过环境变量 DOTA2AI_DSH_WEB_SEARCH=1 才允许本机复盘与追问通过 DEEPSEEK_API_KEY 调用 DeepSeek Search web_search,受 AGENT_WEB_SEARCH=0 禁用)、preArchive(默认 false,配置 extractorBin 后可按需开启低优先级后台预归档)。


Русский

Нативный плагин DSH (DeepSeek Harness), который переносит полноценный интерфейс dota2.ai прямо в DSH и работает на ваших собственных моделях:

  • Отдельная страница dota2.ai в боковой панели DSH: главная страница, профиль игрока (недавние матчи, сводка привычек и локальный журнал тренировок), советник по патчу, командный разбор пати по 3 этапам и полная страница разбора реплея (таблица 10 игроков, раскрываемые карточки доказательств, 2D-повтор 10 героев на миникарте, потоковый чат с тренером и закреплённые карточки фокуса).
  • Работает на ваших моделях DSH (ctx.llm): глубокий разбор реплея (runDeepReview + verifyReview), вопросы по реплею (runChat + verifyText) и советник по патчу выполняются локально через ваши ключи API — без очередей и суточных лимитов.
  • 9 сессионных инструментов dota2ai_* и навык dota2ai: используют общий локальный кэш $DSH_HOME/dota2ai (языки ответов: en, zh, ru, es), включая проверку фокус-карты, тренды игрока по ролям и советник по патчу; карточки в чате открывают нужный матч или профиль в один клик.

Установка в десктопном приложении (рекомендуется, без терминала):

  1. Установите десктопное приложение DeepSeek Harness (macOS / Windows) и добавьте свой DeepSeek API Key.
  2. Отправьте в чат одно сообщение:
Install the dota2.ai Dota 2 replay coach plugin @qianhaoq/dsh-dota2ai into my active desktop profile, then tell me how to open dota2.ai in the left sidebar.
  1. Нажмите dota2.ai в левой боковой панели. Параметры конфигурации (dota2ai в cordis.patch.yml): enabled, lang (en/zh/ru/es), apiBase, proxy (необязательный HTTP/HTTPS-прокси; по умолчанию используются HTTPS_PROXY / HTTP_PROXY / NO_PROXY), skillEnabled, homeDir, extractorBin, replaysDir, replayArchiveMaxGb, enableWebSearch (по умолчанию не задано/выключено; true или DOTA2AI_DSH_WEB_SEARCH=1 при незаданном параметре включает вызовы DeepSeek Search web_search через DEEPSEEK_API_KEY в локальных разборах и чате, явное false или AGENT_WEB_SEARCH=0 отключают), preArchive (по умолчанию false, фоновое предварительное архивирование реплеев при заданном extractorBin).