Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 gjs

查看 gjs 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install gjs

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install gjs

MacPorts ports tree · gnome/gjs/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add gjs

Alpine Linux edge package indexes · gjs · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install gjs

Debian stable package indexes · gjs · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install gjs

Fedora Rawhide package metadata · gjs · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#gjs

nixpkgs package indexes · pkgs/by-name/gj/gjs/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S gjs

Arch Linux sync databases · gjs · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install gjs

openSUSE Tumbleweed package metadata · gjs · 来源: download.opensuse.org

概览

软件包摘要

JavaScript Bindings for GNOME

命令和别名

  • gjs
  • gjs-console

历史

项目历史与用法

GJS is GNOME's JavaScript runtime, built on Firefox's SpiderMonkey engine and GNOME platform libraries. It lets JavaScript programs use GNOME APIs through GObject Introspection and provides the runtime used by GNOME Shell, extensions, and many GNOME applications.

项目历史

The GJS README gives an unusually direct origin story: the idea traces to an August 2008 blog post and experimental gscript code, while the recognizable project form was developed in October 2008 at litl for the litl webbook.

GJS was soon adopted as the basis of GNOME Shell's user-interface code and extension system, and the README says it debuted as a fundamental component of GNOME 3.0. That made it a central runtime in the GNOME desktop rather than a standalone scripting curiosity.

In 2013, during the GNOME Developer Experience Hackfest, GJS was declared the first among equals for GNOME application development. The README records that this was controversial and later abandoned, but the episode shows how seriously GNOME considered JavaScript as an application language.

采用历史

The GJS README names GNOME Shell, Maps, Characters, Sound Recorder, and many other apps as GJS users. It also notes use in Endless OS's offline-content framework and in Cinnamon through a forked version.

Package metadata in this batch shows GJS distributed through Homebrew, Alpine, Debian, Fedora, MacPorts, Nix, Arch, Ubuntu, and openSUSE. That breadth follows from its role as a GNOME platform component and language runtime.

使用方式

Practitioners use GJS to write JavaScript programs that call GNOME platform libraries. The README documents an interactive interpreter, whole-program execution with gjs filename.js, debugger support through -d in supported versions, and coverage-report facilities.

GJS is also used by extension authors and desktop developers because GNOME Shell and related applications expose platform behavior through JavaScript. The runtime bridges familiar JavaScript syntax with GTK, GLib, and other introspected GNOME libraries.

为什么软件包爱好者会关心

GJS matters to package people because it is both a language runtime and a desktop-platform dependency. Packaging it means coordinating SpiderMonkey, GObject Introspection, GNOME libraries, ABI expectations, and application consumers.

It also represents a major desktop choosing an embedded JavaScript runtime for core UI behavior. That makes GJS more like a platform runtime than a conventional command-line interpreter.

时间线

  • 2008: The GJS README traces the idea to an August blog post and experimental gscript code.
  • 2008: GJS in recognizable form is developed at litl in October.
  • 2011: GNOME 3.0 debuts with GNOME Shell, using GJS as a fundamental component.
  • 2013: GJS is named first among equals for GNOME application development at a GNOME Developer Experience Hackfest.
  • 2018: The README records GJS use in GNOME apps, Endless OS, and Cinnamon.

Related projects

  • SpiderMonkey is the JavaScript engine embedded by GJS.
  • GObject Introspection is the binding mechanism that exposes GNOME libraries to JavaScript.
  • GNOME Shell is the most prominent consumer of GJS.
  • Cinnamon and Endless OS are named by the README as related adopters or downstream users.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 6 个运行时依赖。
  • 构建元数据列出 4 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
gjscli全局可执行文件
gjs-consolecli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本1.88.1
管理器更新时间2026-06-29
本地数据OK
上游not checked
检测到的最新版本未检测到

https://gitlab.gnome.org/GNOME/gjs/wikis/Home

安装元数据

软件包元数据

软件包键brew:gjs
版本1.88.1
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/gjs
主页https://gitlab.gnome.org/GNOME/gjs/wikis/Home
仓库https://gitlab.gnome.org/GNOME/gjs
上游文档https://gjs-docs.gnome.org/gjs
许可证LGPL-2.0-or-later AND MIT
源码归档https://download.gnome.org/sources/gjs/1.88/gjs-1.88.1.tar.xz
最后更新2026-06-29T04:06:11Z
Pulseupdated
依赖cairo, gettext, glib, libx11, readline, spidermonkey
构建依赖gobject-introspection, meson, ninja, pkgconf
macOS 提供的库libffi
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegjs
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

gjs 1.82.3-1

Mozilla-based javascript bindings for the GNOME platform (cli tool)

https://gitlab.gnome.org/GNOME/gjs/-/blob/master/doc/README.md

sudo apt install gjs
  • Section: interpreters
  • Architecture: amd64
  • 4 依赖
  • normalized package name match
  • 匹配方式:Gjs
Debian stable package indexes · deb.debian.org · Debian stable package indexes: gjs from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

gjs-tests 1.82.3-1

Mozilla-based javascript bindings for the GNOME platform (tests)

https://gitlab.gnome.org/GNOME/gjs/-/blob/master/doc/README.md

sudo apt install gjs-tests
  • Section: interpreters
  • Architecture: amd64
  • Source Package: gjs
  • 11 依赖
  • normalized package name match
  • 匹配方式:Gjs
Debian stable package indexes · deb.debian.org · Debian stable package indexes: gjs-tests from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libgjs-dev 1.82.3-1

Mozilla-based javascript bindings for GNOME - development files

https://gitlab.gnome.org/GNOME/gjs/-/blob/master/doc/README.md

sudo apt install libgjs-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: gjs
  • 4 依赖
  • normalized package name match
  • 匹配方式:Gjs
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libgjs-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libgjs0g 1.82.3-1

Mozilla-based javascript bindings for the GNOME platform

https://gitlab.gnome.org/GNOME/gjs/-/blob/master/doc/README.md

sudo apt install libgjs0g
  • Section: libs
  • Architecture: amd64
  • Source Package: gjs
  • 15 依赖
  • normalized package name match
  • 匹配方式:Gjs
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libgjs0g from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

gjs

nix profile install nixpkgs#gjs
  • normalized package name match
  • 匹配方式:Gjs
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/gj/gjs/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

gjs 1.80.2-1build2

Mozilla-based javascript bindings for the GNOME platform (cli tool)

https://gitlab.gnome.org/GNOME/gjs/-/blob/master/doc/README.md

sudo apt install gjs
  • Section: interpreters
  • Architecture: amd64
  • 4 依赖
  • normalized package name match
  • 匹配方式:Gjs
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: gjs from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

gjs-tests 1.80.2-1build2

Mozilla-based javascript bindings for the GNOME platform (tests)

https://gitlab.gnome.org/GNOME/gjs/-/blob/master/doc/README.md

sudo apt install gjs-tests
  • Section: universe/interpreters
  • Architecture: amd64
  • Source Package: gjs
  • 11 依赖
  • normalized package name match
  • 匹配方式:Gjs
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: gjs-tests from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libgjs-dev 1.80.2-1build2

Mozilla-based javascript bindings for the GNOME platform

https://gitlab.gnome.org/GNOME/gjs/-/blob/master/doc/README.md

sudo apt install libgjs-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: gjs
  • 4 依赖
  • normalized package name match
  • 匹配方式:Gjs
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libgjs-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libgjs0g 1.80.2-1build2

Mozilla-based javascript bindings for the GNOME platform

https://gitlab.gnome.org/GNOME/gjs/-/blob/master/doc/README.md

sudo apt install libgjs0g
  • Section: libs
  • Architecture: amd64
  • Source Package: gjs
  • 15 依赖
  • normalized package name match
  • 匹配方式:Gjs
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libgjs0g from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
apk95%

gjs 1.88.0-r1

GNOME javascript library

https://gitlab.gnome.org/GNOME/gjs

sudo apk add gjs
  • License: MIT AND LGPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: gjs
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Gjs
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: gjs from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

gjs-dbg 1.88.0-r1

GNOME javascript library (debug symbols)

https://gitlab.gnome.org/GNOME/gjs

sudo apk add gjs-dbg
  • License: MIT AND LGPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: gjs
  • 1 依赖
  • normalized package name match
  • 匹配方式:Gjs
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: gjs-dbg from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

gjs-dev 1.88.0-r1

GNOME javascript library (development files)

https://gitlab.gnome.org/GNOME/gjs

sudo apk add gjs-dev
  • License: MIT AND LGPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: gjs
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Gjs
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: gjs-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

gjs 1.88.0-1.fc45

Javascript Bindings for GNOME

https://wiki.gnome.org/Projects/Gjs

sudo dnf install gjs
  • License: MIT AND BSD-3-Clause AND (MIT OR LGPL-2.0-or-later) AND (MPL-1.1 OR GPL-2.0-or-later OR LGPL-2.1-or-later)
  • Category: Unspecified
  • Architecture: i686
  • Source Package: gjs
  • 17 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Gjs
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: gjs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

gjs-devel 1.88.0-1.fc45

Development package for gjs

https://wiki.gnome.org/Projects/Gjs

sudo dnf install gjs-devel
  • License: MIT AND BSD-3-Clause AND (MIT OR LGPL-2.0-or-later) AND (MPL-1.1 OR GPL-2.0-or-later OR LGPL-2.1-or-later)
  • Category: Unspecified
  • Architecture: i686
  • Source Package: gjs
  • 4 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Gjs
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: gjs-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

gjs-tests 1.88.0-1.fc45

Tests for the gjs package

https://wiki.gnome.org/Projects/Gjs

sudo dnf install gjs-tests
  • License: MIT AND (MIT OR LGPL-2.0-or-later) AND BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: gjs
  • 13 依赖
  • 6 提供
  • normalized package name match
  • 匹配方式:Gjs
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: gjs-tests from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

gjs 2:1.88.0-1

Javascript Bindings for GNOME

https://wiki.gnome.org/Projects/Gjs

sudo pacman -S gjs
  • License: LGPL-2.0-or-later
  • Architecture: x86_64
  • 13 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Gjs
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: gjs from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment