onlook-git

maintainer orphaned · 0 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The 'bun install' runs during prepare() but is part of building the project from its own source; the additional 'bun install husky@9.1.6' installs a declared dev dependency, which is a normal part of project setup and not inherently malicious.

Triggered rules

LOW AI review downgraded a static finding llm_review

The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The 'bun install' runs during prepare() but is part of building the project from its own source; the additional 'bun install husky@9.1.6' installs a declared dev dependency, which is a normal part of project setup and not inherently malicious.

1 higher static finding superseded - not the current verdict (shown for transparency)
MEDIUM bun install of an undeclared external package bun_install_external

`bun add` / `bun install <package>` fetches an external package outside source=(). Severity downgraded: the package declares/looks like a Node.js consumer.

  • PKGBUILD:77 NODE_ENV=development bun install husky@9.1.6 --save-dev --legacy-peer-deps

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2pkgname=onlook-git
3_pkgname=Onlook
4pkgver=0.1.5.r409.g9c92c12
5_electronversion=35
6_nodeversion=20
7pkgrel=1
8pkgdesc="The open source, local-first Webflow alternative. Design directly in your live React site and publish your changes to code.(Use system-wide electron)"
9arch=('any')
10_url="https://onlook.dev/"
11url="https://github.com/onlook-dev/studio"
12license=("Apache-2.0")
13conflicts=("${pkgname%-git}")
14provides=("${pkgname%-git}=${pkgver%.r*}")
15depends=(
16 "electron${_electronversion}"
17)
18makedepends=(
19 'npm'
20 'bun'
21 'git'
22 'nvm'
23 'gendesk'
24 'curl'
25 'python-setuptools'
26)
27source=(
28 "${pkgname//-/.}::git+${url}.git"
29 "${pkgname%-git}.sh"
30)
31sha256sums=('SKIP'
32 '291f50480f5a61bc9c68db7d44cd0412071128706baa868a9cb854f8779a1980')
33pkgver() {
34 cd "${srcdir}/${pkgname//-/.}"
35 set -o pipefail
36 git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/v//g' ||
37 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
38}
39_ensure_local_nvm() {
40 local NVM_DIR="${srcdir}/.nvm"
41 source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
42 nvm install "${_nodeversion}"
43 nvm use "${_nodeversion}"
44}
45prepare() {
46 sed -i -e "
47 s/@electronversion@/${_electronversion}/g
48 s/@appname@/${pkgname%-git}/g
49 s/@runname@/app.asar/g
50 s/@cfgdirname@/${_pkgname}/g
51 s/@options@/env ELECTRON_OZONE_PLATFORM_HINT=auto/g
52 " "${srcdir}/${pkgname%-git}.sh"
53 _ensure_local_nvm
54 gendesk -q -f -n --pkgname="${pkgname%-git}" --pkgdesc="${pkgdesc}" --categories="Development" --name="${_pkgname}" --exec="${pkgname%-git} %U"
55 cd "${srcdir}/${pkgname//-/.}"
56 export ELECTRON_SKIP_BINARY_DOWNLOAD=1
57 export SYSTEM_ELECTRON_VERSION="$(electron${_electronversion} -v | sed 's/v//g')"
58 HOME="${srcdir}/.electron-gyp"
59 if [ -f bunfig.toml ]; then
60 find ./ -type f -name "bunfig.toml" -exec rm -rf {} +
61 fi
62 if [ -f bun.lockb ];then
63 find ./ -type f -name "bun.lockb" -exec rm -rf {} +
64 fi
65 if [[ "$(curl -s ipinfo.io/country)" == *"CN"* ]]; then
66 export npm_config_electron_mirror="https://registry.npmmirror.com/-/binary/electron/"
67 export npm_config_electron_builder_binaries_mirror="https://registry.npmmirror.com/-/binary/electron-builder-binaries/"
68 export sqlite3_binary_site="https://registry.npmmirror.com/-/sqlite3/"
69 {
70 echo '[install]'
71 echo 'registry = "https://registry.npmmirror.com/"'
72 echo 'strict-ssl = false'
73 } >> bunfig.toml
74 echo apps/studio packages/cli packages/foundation plugins/babel plugins/next | xargs -n 1 cp bunfig.toml
75 fi
76 NODE_ENV=development bun install
77 NODE_ENV=development bun install husky@9.1.6 --save-dev --legacy-peer-deps
78}
79build() {
80 cd "${srcdir}/${pkgname//-/.}"
81 NODE_ENV=production bun ci:build
82 cd "${srcdir}/${pkgname//-/.}/apps/studio"
83 local electronDist="/usr/lib/electron${_electronversion}"
84 sed -i "s/\/\${version}//g" builder-config/base.ts
85 NODE_ENV=production bun exec "electron-builder --linux dir -c.electronDist=${electronDist} --config builder-config/base.ts"
86}
87package() {
88 install -Dm755 "${srcdir}/${pkgname%-git}.sh" "${pkgdir}/usr/bin/${pkgname%-git}"
89 install -Dm644 "${srcdir}/${pkgname//-/.}/apps/studio/release/linux-"*/resources/app.asar -t "${pkgdir}/usr/lib/${pkgname%-git}"
90 install -Dm644 "${srcdir}/${pkgname//-/.}/assets/logo.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${pkgname%-git}.svg"
91 install -Dm644 "${srcdir}/${pkgname%-git}.desktop" -t "${pkgdir}/usr/share/applications"
92 install -Dm644 "${srcdir}/${pkgname//-/.}/LICENSE.md" -t "${pkgdir}/usr/share/licenses/${pkgname}"
93}

Scan history

Scanned at (UTC)SeverityRules
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 00:24:32 LOW 2
2026-07-26 00:07:32 LOW 2
2026-07-25 00:13:44 LOW 2
2026-07-24 00:02:28 LOW 2
2026-07-23 00:14:47 LOW 2
2026-07-22 00:29:32 LOW 2
2026-07-21 00:24:15 LOW 2
2026-07-20 00:19:49 LOW 2
2026-07-19 00:17:08 LOW 2
2026-07-18 00:14:48 LOW 2
2026-07-17 00:06:16 LOW 2
2026-07-16 00:05:41 LOW 2
2026-07-15 00:09:25 LOW 2

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion