9router-webui-bin
maintainer Pakrohk
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package installs a prebuilt Node.js application from npmjs.org, a legitimate registry, and runs standard build steps; the SKIP'd checksums for local scripts are non-ideal but not inherently dangerous as they are included in the source array and likely maintained by the AUR packager.
Triggered rules
LOW
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
LOW
AI review
llm_review
An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is LOW (confidence 95%): The package installs a prebuilt Node.js application from npmjs.org, a legitimate registry, and runs standard build steps; the SKIP'd checksums for local scripts are non-ideal but not inherently dangerous as they are included in the source array and likely maintained by the AUR packager.
PKGBUILD
1
# Maintainer: pakrohk <pakrohk@gmail.com>
2
pkgname=9router-webui-bin
3
pkgver=0.5.40
4
pkgrel=2
5
pkgdesc="9Router - WebUI AI Router with 40+ providers, auto-fallback, RTK token optimization"
6
arch=('x86_64' 'aarch64')
7
url="https://github.com/decolua/9router"
8
license=('MIT')
9
depends=('bun' 'curl' 'libnotify')
10
makedepends=('bun')
11
optdepends=('systemd: user service management'
12
'xdg-utils: for opening browser')
13
install="${pkgname}.install"
14
options=('!strip')
15
source=("${pkgname}-${pkgver}.tgz::https://registry.npmjs.org/9router/-/9router-${pkgver}.tgz"
16
'9router.sh'
17
'9router.service'
18
'9router.env')
19
sha256sums=('437935e7f7514cdd415a310613eaac7815b29ff9453b31d11e8d319a5126db8d'
20
'SKIP'
21
'SKIP'
22
'SKIP')
23
24
build() {
25
_pkgroot="${srcdir}/package"
26
cd "${_pkgroot}"
27
28
export BUN_INSTALL_CACHE_DIR="${srcdir}/bun-cache"
29
export JOBS=$(nproc)
30
31
bun install --production --no-save --no-audit --no-fund
32
33
cd "${_pkgroot}/app"
34
bun rebuild better-sqlite3 2>/dev/null || true
35
36
# Remove systray (poor Linux compatibility)
37
rm -rf "${_pkgroot}/node_modules/systray"
38
39
# Optimize: remove unnecessary files
40
find "${_pkgroot}" -type f \( -name "*.md" -o -name "*.markdown" -o -name "*.ts" -o -name "*.map" \) -delete 2>/dev/null || true
41
find "${_pkgroot}" -type d -name "__tests__" -exec rm -rf {} + 2>/dev/null || true
42
find "${_pkgroot}" -type d -name "test" -exec rm -rf {} + 2>/dev/null || true
43
}
44
45
package() {
46
_pkgroot="${srcdir}/package"
47
cd "${_pkgroot}"
48
49
install -dm755 "${pkgdir}/usr/lib/node_modules/9router"
50
cp -a . "${pkgdir}/usr/lib/node_modules/9router/"
51
52
local _dest="${pkgdir}/usr/lib/node_modules/9router"
53
54
# Clean up build artifacts
55
find "${_dest}" -name package.json -print0 | xargs -r -0 sed -i '/_where/d'
56
find "${_dest}" -type f \( -name "*.mk" -o -name "Makefile" -o -name "*.d" -o -name "config.gypi" \) -delete
57
chmod -R a+rX "${_dest}"
58
59
# Install launcher scripts
60
install -Dm755 "${srcdir}/9router.sh" "${pkgdir}/usr/bin/9router"
61
install -Dm644 "${srcdir}/9router.service" "${pkgdir}/usr/lib/systemd/user/9router.service"
62
install -Dm644 "${srcdir}/9router.env" "${pkgdir}/usr/share/doc/${pkgname}/9router.env"
63
64
# Documentation
65
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md" 2>/dev/null || true
66
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" 2>/dev/null || true
67
}
68
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | LOW | 2 |
| 2026-08-02 00:16:08 | LOW | 2 |
| 2026-08-01 00:11:18 | LOW | 2 |
| 2026-07-31 00:14:10 | LOW | 2 |
| 2026-07-30 00:17:23 | LOW | 2 |
| 2026-07-29 00:25:53 | LOW | 2 |
| 2026-07-28 00:07:28 | LOW | 2 |
| 2026-07-27 17:35:03 | LOW | 2 |