dsh-pick 0.7.5 → 0.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -2
- package/package.json +2 -1
- package/plugin/client.js +15 -0
- package/plugin/tools.js +1 -0
- package/web/panel.html +5 -0
- package/web/panel.js +20 -4
package/README.md
CHANGED
|
@@ -57,7 +57,9 @@ dsh plugin --profile web add github:AIcivilization/dsh-pick # 源码安装
|
|
|
57
57
|
|
|
58
58
|
## 给你的插件加排名徽章
|
|
59
59
|
|
|
60
|
-
插件作者可以把自己插件在 dsh-pick 综合榜(综合推荐角度)上的名次挂进 README
|
|
60
|
+
插件作者可以把自己插件在 dsh-pick 综合榜(综合推荐角度)上的名次挂进 README,每天跟着目录自动更新。
|
|
61
|
+
名次是 dsh-pick 自己的算法算的,不是 DSH / DeepSeek 官方排名。
|
|
62
|
+
|
|
61
63
|
|
|
62
64
|
| 名次 | 徽章写的是 | 颜色 |
|
|
63
65
|
|---|---|---|
|
|
@@ -82,6 +84,14 @@ dsh plugin --profile web add github:AIcivilization/dsh-pick # 源码安装
|
|
|
82
84
|
|
|
83
85
|
---
|
|
84
86
|
|
|
87
|
+
## 提交你的插件
|
|
88
|
+
|
|
89
|
+
大部分插件不用提交:npm 上带 `dsh-plugin` 关键字的包,以及 dshmarket、dsh-plugin-shop、dsh-m 精选、DeepSeek 官方收录的插件,每天会自动收进来。
|
|
90
|
+
不在其中的,用 [「提交插件」表单](https://github.com/AIcivilization/dsh-pick/issues/new?template=submit.yml) 提交(面板排行榜和设置页都有入口),我们核对后收录。
|
|
91
|
+
收录只解决「能不能进榜」,名次仍按同一套算法算,不会因为提交而加分。
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
85
95
|
## 为什么需要它
|
|
86
96
|
|
|
87
97
|
npm 官网和各类 stat 站能看数字,但看数字回答不了「我该装哪个」。
|
|
@@ -150,7 +160,7 @@ dsh plugin --profile web add dsh-pick
|
|
|
150
160
|
|
|
151
161
|
每次刷新在本机存一份快照,显示「较上次」的涨跌(排名写成升 / 降几名);打开时数据超过 6 小时会自动刷新。
|
|
152
162
|
|
|
153
|
-
|
|
163
|
+
**综合榜(默认)**:把几个插件市场合成一个榜,一个插件只出现一次,在榜上就能直接安装,不用再去各个市场翻。排名是 dsh-pick 自己的算法,不是 DSH 官方排名(见[数据口径](#数据口径)):
|
|
154
164
|
|
|
155
165
|
- 收录来源:dshmarket(awesome-dsh-plugin 社区目录)、dsh-m 精选(不算作者自己的插件)、dsh-plugin-shop 商店、DeepSeek 官方
|
|
156
166
|
- **六个排序角度**(榜单顶部切换,同一份数据、权重不同,每个角度的算法写在页面上):
|
|
@@ -265,6 +275,11 @@ dsh-pick/
|
|
|
265
275
|
|
|
266
276
|
## 数据口径
|
|
267
277
|
|
|
278
|
+
> **排名说明**:所有榜单、综合分、徽章上的名次,都是 dsh-pick 按公开数据(npm 下载统计、GitHub、各插件市场的目录)用自己的算法算的,
|
|
279
|
+
> **不是 DSH / DeepSeek 官方排名**,只供参考和比较。算法和权重都写在本文和面板上。
|
|
280
|
+
>
|
|
281
|
+
> **作者自己的插件**:dsh-pick 作者(GitHub `AIcivilization`)做的插件,在面板里会标「dsh-pick 作者的作品」。它们和其他插件用同一套算法排名,不加分、不置顶。
|
|
282
|
+
|
|
268
283
|
- **来源**:`registry.npmjs.org`(元数据、版本发布历史)+ `api.npmjs.org/downloads`(下载量)+ GitHub(星标、Fork、未关闭 issue / PR、最近提交、是否归档)
|
|
269
284
|
- **滞后**:npm 的每日下载只在一天结束后汇总,最近常晚好几天;页面上的「数据截止」是 npm 真实有数据的最后一天。任何工具都拿不到当天的下载量
|
|
270
285
|
- **npm 缺数据的日子**:npm 偶尔整天没出统计(全 npm 都是 0,比如 2026-10-13~15)。这些天记为缺失,不参与日常基线和环比的计算,页面底部会列出来
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-pick",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.7",
|
|
4
4
|
"description": "DSH 插件选型助手:几个插件市场和 npm 的 3 万多个插件合成一个榜,去噪排名、AI 精选、一键安装;插件作者可领 README 排名徽章。",
|
|
5
|
+
"author": "AIcivilization",
|
|
5
6
|
"repository": {
|
|
6
7
|
"type": "git",
|
|
7
8
|
"url": "git+https://github.com/AIcivilization/dsh-pick.git"
|
package/plugin/client.js
CHANGED
|
@@ -303,8 +303,10 @@ window.__ModuleLoader__.load({
|
|
|
303
303
|
|
|
304
304
|
// 数据口径说明:面板底部原来那段,现在放在设置页
|
|
305
305
|
const DATA_NOTE = () => L(
|
|
306
|
+
'所有排名和综合分都是 dsh-pick 按公开数据用自己的算法算的,不是 DSH / DeepSeek 官方排名,只供参考和比较。' +
|
|
306
307
|
'排名按周下载;日常基线已扣掉版本发布日与次日的拉取虚高,比原始下载量更接近真实使用量。' +
|
|
307
308
|
'下载量含 CI / 镜像 / 爬虫流量,不等于用户数。npm 的每日下载只在一天结束后汇总,最近常晚几天。',
|
|
309
|
+
'All rankings and scores are computed by dsh-pick\'s own algorithm from public data; they are not official DSH / DeepSeek rankings, just a reference for comparison. ' +
|
|
308
310
|
'Ranks are weekly downloads; daily baseline strips the publish-day spike and is closer to real use. ' +
|
|
309
311
|
'Download counts include CI/mirror/crawler traffic, not real users. npm stats lag about 5 days.')
|
|
310
312
|
|
|
@@ -395,6 +397,19 @@ window.__ModuleLoader__.load({
|
|
|
395
397
|
market ? h(CommandLine, { command: market.url }) : null,
|
|
396
398
|
),
|
|
397
399
|
|
|
400
|
+
h(Section, { title: L('提交插件', 'Submit a plugin') },
|
|
401
|
+
h('div', null, L(
|
|
402
|
+
'npm 上带 dsh-plugin 关键字的包、各插件市场收录的插件会自动进榜。你的插件不在其中,可以提交收录;收录只管进榜,名次仍按同一套算法算。',
|
|
403
|
+
'Packages with the dsh-plugin keyword and plugins listed by the markets are included automatically. If yours is missing, submit it; inclusion does not change how it is ranked.')),
|
|
404
|
+
h('div', { style: { marginTop: 8 } },
|
|
405
|
+
h('a', {
|
|
406
|
+
href: 'https://github.com/' + REPO + '/issues/new?template=submit.yml',
|
|
407
|
+
target: '_blank',
|
|
408
|
+
rel: 'noopener',
|
|
409
|
+
style: { fontSize: 12, color: C.accent, textDecoration: 'none' },
|
|
410
|
+
}, L('提交我的插件 →', 'Submit my plugin →'))),
|
|
411
|
+
),
|
|
412
|
+
|
|
398
413
|
h(Section, { title: L('数据口径', 'About the data') },
|
|
399
414
|
h('div', null, catalog),
|
|
400
415
|
meta && meta.total ? h('div', { style: { marginTop: 4 } }, meta.source === 'remote'
|
package/plugin/tools.js
CHANGED
|
@@ -26,6 +26,7 @@ const NOTE =
|
|
|
26
26
|
'口径:周下载/月下载含 CI、镜像、爬虫流量,不等于用户数;日常基线 = 扣掉发布日与次日后的每日中位数,最接近真实使用量;' +
|
|
27
27
|
'环比 = 近 7 日比前 7 日;健康度 0~100 = 基线 40% + 增速 25% + 新鲜度 20% + 版本节奏 15%。' +
|
|
28
28
|
'只有周下载 Top 约 330 的包有去噪指标,其余为「—」。回答里的数字只能引用这些结果,不要自己推算。' +
|
|
29
|
+
'排名和综合分是 dsh-pick 用自己的算法算的,不是 DSH / DeepSeek 官方排名,向用户转述时说清楚这只是参考。' +
|
|
29
30
|
'推荐前留意每个包下面的 ⚠ 提醒(装不了、终端版、和已装插件重叠),装不了的不要推荐用户装。'
|
|
30
31
|
|
|
31
32
|
const num = n => (n == null ? '—' : Number(n).toLocaleString('en-US'))
|
package/web/panel.html
CHANGED
|
@@ -147,6 +147,10 @@ table.rank td.nm .desc{min-width:150px;display:-webkit-box;-webkit-line-clamp:2;
|
|
|
147
147
|
.srcchip{display:inline-block;font-size:10px;font-weight:500;color:var(--t2);background:var(--soft);border-radius:4px;padding:0 5px;margin:2px 3px 0 0;white-space:nowrap}
|
|
148
148
|
.srcchip.off{color:var(--accent);background:var(--accent-bg)}
|
|
149
149
|
.srcchip.gh{color:var(--t3)}
|
|
150
|
+
.srcchip.ours{color:var(--warn-text);background:var(--warn-bg)}
|
|
151
|
+
.cap.disclaim{margin-top:-2px;color:var(--t3);font-size:11px}
|
|
152
|
+
.cap.disclaim .submit{margin-left:6px;color:var(--accent);text-decoration:none;white-space:nowrap}
|
|
153
|
+
.cap.disclaim .submit:hover{text-decoration:underline}
|
|
150
154
|
table.rank td .sc{font-size:13px;font-weight:700;color:var(--text);cursor:help}
|
|
151
155
|
/* 排行榜操作列的四个图标一样大:+、安装、GitHub、npm,都是 24×22 */
|
|
152
156
|
.ib{appearance:none;display:inline-flex;align-items:center;justify-content:center;width:24px;height:22px;padding:0;margin-right:4px;
|
|
@@ -523,6 +527,7 @@ td.down{color:var(--bad);font-weight:600}
|
|
|
523
527
|
<button data-b="shop">商店榜</button>
|
|
524
528
|
</div>
|
|
525
529
|
<p class="cap" id="rankCap"></p>
|
|
530
|
+
<p class="cap disclaim">排名是 dsh-pick 按公开数据用自己的算法算的,不是 DSH / DeepSeek 官方排名,只供参考和比较。<a class="submit" href="https://github.com/AIcivilization/dsh-pick/issues/new?template=submit.yml" target="_blank" rel="noopener">没找到你的插件?提交收录</a></p>
|
|
526
531
|
<div class="filters" id="rankFilters">
|
|
527
532
|
<button class="chip on" data-board="overall" data-m="rec">综合推荐</button>
|
|
528
533
|
<button class="chip" data-board="overall" data-m="use">最多人用</button>
|
package/web/panel.js
CHANGED
|
@@ -357,6 +357,7 @@ async function boot() {
|
|
|
357
357
|
? `<br><b>npm 缺数据的日子:</b>${CAT.gaps.map(esc).join('、')}(那几天全 npm 的下载统计都是 0,是 npm 自己没出数据),不参与日常基线和环比的计算。`
|
|
358
358
|
: ''
|
|
359
359
|
$('#foot').innerHTML =
|
|
360
|
+
`<b>排名说明:</b>所有榜单和综合分都是 dsh-pick 按公开数据(npm、GitHub、各插件市场)用自己的算法算的,不是 DSH / DeepSeek 官方排名,只供参考和比较。<br>` +
|
|
360
361
|
`<b>口径:</b>下载量含 CI、镜像、爬虫等非人类流量,不等于用户数;<b>日常基线</b>= 扣掉版本发布日与次日后的每日中位数,比原始下载量更接近真实使用量。<br>` +
|
|
361
362
|
(cover
|
|
362
363
|
? `<b>覆盖范围:</b>把 ${Object.entries(cover.markets).map(([k, v]) => `${MKT[k] || esc(k)}(${num(v)} 条)`).join('、')}和 npm 上带 <code>dsh-plugin</code> 关键字的包合起来,` +
|
|
@@ -504,7 +505,7 @@ function renderCands(need, { keepCompat = false } = {}) {
|
|
|
504
505
|
(d ? '<span class="ok" title="有去噪指标,可参与健康度比较">✓ 可比较</span>' : '<span class="nook" title="未进入去噪范围(周下载 Top 之外),缺基线/环比/节奏">仅基础</span>') +
|
|
505
506
|
`</div>` +
|
|
506
507
|
`<div class="rk">${rankText(rec)}${rec.sc != null ? ` · 综合分 <b>${rec.sc}</b>` : ''}</div>` +
|
|
507
|
-
(rec.src && rec.src.length ? `<div>${srcChips(rec.src)}</div>` : '') +
|
|
508
|
+
((rec.src && rec.src.length) || isOurs(rec) ? `<div>${srcChips(rec.src)}${oursTag(rec)}</div>` : '') +
|
|
508
509
|
`<div class="d">${esc(rec.d)}</div>` +
|
|
509
510
|
`<div class="kv">` +
|
|
510
511
|
`<span>周 <b>${num(rec.w)}</b></span>` +
|
|
@@ -641,7 +642,7 @@ function renderAi() {
|
|
|
641
642
|
const d = rec.deep
|
|
642
643
|
const on = picked.includes(p.name)
|
|
643
644
|
return `<div class="aip">` +
|
|
644
|
-
`<div class="top"><span class="nm">${esc(p.name)}</span>${rec.v ? `<span style="color:var(--t3);font-size:11px">v${esc(rec.v)}</span>` : ''}<span class="fit" title="模型判断的合适程度(0~100)">合适度 ${p.fit}</span></div>` +
|
|
645
|
+
`<div class="top"><span class="nm">${esc(p.name)}</span>${rec.v ? `<span style="color:var(--t3);font-size:11px">v${esc(rec.v)}</span>` : ''}${oursTag(rec)}<span class="fit" title="模型判断的合适程度(0~100)">合适度 ${p.fit}</span></div>` +
|
|
645
646
|
(p.reason ? `<div class="why">${esc(p.reason)}</div>` : '') +
|
|
646
647
|
(p.caveat ? `<div class="cav">⚠ ${esc(p.caveat)}</div>` : '') +
|
|
647
648
|
`<div class="data">周下载 ${short(rec.w)}${d ? ` · 日常基线 ${short(d.base)}/天` : ''}${rec.gh ? ` · ★ ${short(rec.gh.s)}` : ''}${rec.sc != null ? ` · 综合分 ${rec.sc}` : ''}${d && d.age != null ? ` · ${ageText(d.age)}更新` : ''}</div>` +
|
|
@@ -869,6 +870,7 @@ function renderOuterBoard(board) {
|
|
|
869
870
|
const nameCell = r => `<td class="nm">${esc(r.t || r.n || r.name)}${r.v ? ` <span style="color:var(--t3);font-weight:400;font-size:11px">v${esc(r.v)}</span>` : ''}` +
|
|
870
871
|
(r.t ? `<div class="sub">${esc(r.n)}</div>` : '') +
|
|
871
872
|
(!r.n ? '<div class="sub">只在 GitHub,没发到 npm</div>' : '') +
|
|
873
|
+
(isOurs((r.n && CAT.packages[r.n]) || r) ? `<div>${oursTag((r.n && CAT.packages[r.n]) || r, { short: true })}</div>` : '') +
|
|
872
874
|
(r.d ? `<div class="sub desc" title="${esc(r.d)}">${esc(r.d)}</div>` : '') + `</td>`
|
|
873
875
|
const actions = r => `<td class="lks">${watchBtn(watchKey(r))}${linkBtns({ n: r.n || '', ghUrl: r.repo || '' }, { icon: true })}</td>`
|
|
874
876
|
const marketName = { official: 'DeepSeek 官方', community: '社区目录', shop: '这个商店' }[board]
|
|
@@ -931,6 +933,19 @@ function srcChips(src, { short = false } = {}) {
|
|
|
931
933
|
}).join('')
|
|
932
934
|
}
|
|
933
935
|
|
|
936
|
+
/**
|
|
937
|
+
* dsh-pick 作者自己的插件(GitHub 账号 AIcivilization 下的):照常按同一套算法排,
|
|
938
|
+
* 不加分、不置顶,只标明身份——用户该知道这是「裁判自己的队员」
|
|
939
|
+
*/
|
|
940
|
+
const AUTHOR_RE = /(^|github\.com\/|^gh:)aicivilization\//i
|
|
941
|
+
function isOurs(x) {
|
|
942
|
+
if (!x) return false
|
|
943
|
+
return [x.repo, x.ghUrl, x.gh && x.gh.repo, x.k].some(u => u && AUTHOR_RE.test(String(u)))
|
|
944
|
+
}
|
|
945
|
+
const OURS_TITLE = 'dsh-pick 作者自己做的插件。排名和其他插件用同一套算法,没有加分'
|
|
946
|
+
const oursTag = (x, { short = false } = {}) =>
|
|
947
|
+
isOurs(x) ? `<span class="srcchip ours" title="${OURS_TITLE}">${short ? 'dsh-pick 作者' : 'dsh-pick 作者的作品'}</span>` : ''
|
|
948
|
+
|
|
934
949
|
/**
|
|
935
950
|
* 综合榜:几个插件市场合成一个榜(每日构建时算好,见 lib/overall.js),一个插件一行。
|
|
936
951
|
* npm 上的插件能直接装;只在 GitHub 上的先只展示
|
|
@@ -1047,7 +1062,7 @@ function renderOverall() {
|
|
|
1047
1062
|
const links = linkBtns(rec || { n: r.n || '', ghUrl: r.repo || '' }, { icon: true })
|
|
1048
1063
|
return `${trOpen(on)}${rankCell(i)}` +
|
|
1049
1064
|
`<td class="nm"><div class="nmline" title="${esc(name)}${v ? ' v' + esc(v) : ''}">${esc(name)}${v ? ` <span style="color:var(--t3);font-weight:400;font-size:11px">v${esc(v)}</span>` : ''}</div>` +
|
|
1050
|
-
`<div class="chips">${srcChips(r.src, { short: true })}${r.n ? '' : '<span class="srcchip gh" title="只在 GitHub,没发到 npm">GitHub</span>'}</div>` +
|
|
1065
|
+
`<div class="chips">${srcChips(r.src, { short: true })}${r.n ? '' : '<span class="srcchip gh" title="只在 GitHub,没发到 npm">GitHub</span>'}${oursTag(rec || r, { short: true })}</div>` +
|
|
1051
1066
|
(desc ? `<div class="sub desc" title="${esc(desc)}">${esc(desc)}</div>` : '') + `</td>` +
|
|
1052
1067
|
`<td class="r">${cell}</td>` +
|
|
1053
1068
|
`<td class="r">${w != null ? short(w) : '—'}</td>` +
|
|
@@ -1070,7 +1085,7 @@ function renderRank() {
|
|
|
1070
1085
|
const metric = onChip ? onChip.dataset.m : ''
|
|
1071
1086
|
const cat = $('#rankCat').value
|
|
1072
1087
|
const inCat = r => !cat || r.cat === cat
|
|
1073
|
-
const nameCell = r => `<td class="nm">${esc(r.n)} <span style="color:var(--t3);font-weight:400;font-size:11px">v${esc(r.v)}</span
|
|
1088
|
+
const nameCell = r => `<td class="nm">${esc(r.n)} <span style="color:var(--t3);font-weight:400;font-size:11px">v${esc(r.v)}</span>${isOurs(r) ? `<div>${oursTag(r, { short: true })}</div>` : ''}</td>`
|
|
1074
1089
|
const b = (on, text) => (on ? `<b>${text}</b>` : text)
|
|
1075
1090
|
// 分类是 npm 目录自己算的,别的榜没有这个字段
|
|
1076
1091
|
$('#rankCat').classList.toggle('hidden', board !== 'npm' && board !== 'gh')
|
|
@@ -1118,6 +1133,7 @@ function renderRank() {
|
|
|
1118
1133
|
const age = daysSince(r.gh.p)
|
|
1119
1134
|
return trOpen(on) + rankCell(i) +
|
|
1120
1135
|
`<td class="nm">${esc(r.n)} <span style="color:var(--t3);font-weight:400;font-size:11px">v${esc(r.v)}</span>` +
|
|
1136
|
+
(isOurs(r) ? `<div>${oursTag(r, { short: true })}</div>` : '') +
|
|
1121
1137
|
(shared.get(r.n) > 1 ? `<div class="sub" title="仓库 ${esc(r.gh.repo)} 里有 ${shared.get(r.n)} 个插件,数据相同,只列一行">等 ${shared.get(r.n)} 个插件共用这个仓库</div>` : '') +
|
|
1122
1138
|
`</td>` +
|
|
1123
1139
|
`<td><span class="catpill">${esc(r.cat)}</span></td>` +
|