macOS
brew install gjslocal Homebrew formula metadata
安装
brew install gjslocal Homebrew formula metadata
sudo apk add gjsAlpine Linux edge package indexes · gjs · 来源: dl-cdn.alpinelinux.org
sudo dnf install gjsFedora Rawhide package metadata · gjs · 来源: dl.fedoraproject.org
nix profile install nixpkgs#gjsnixpkgs package indexes · pkgs/by-name/gj/gjs/package.nix · 来源: api.github.com
sudo pacman -S gjsArch Linux sync databases · gjs · 来源: geo.mirror.pkgbuild.com
sudo zypper install gjsopenSUSE Tumbleweed package metadata · gjs · 来源: download.opensuse.org
概览
JavaScript Bindings for GNOME
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
gjs | cli | 全局可执行文件 | |
gjs-console | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
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 |
| Pulse | updated |
| 依赖 | 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 Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | gjs |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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 gjsgjs-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-testslibgjs-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-devlibgjs0g 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 libgjs0ggjs
nix profile install nixpkgs#gjsgjs 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 gjsgjs-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-testslibgjs-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-devlibgjs0g 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 libgjs0ggjs 1.88.0-r1
GNOME javascript library
https://gitlab.gnome.org/GNOME/gjs
sudo apk add gjsgjs-dbg 1.88.0-r1
GNOME javascript library (debug symbols)
https://gitlab.gnome.org/GNOME/gjs
sudo apk add gjs-dbggjs-dev 1.88.0-r1
GNOME javascript library (development files)
https://gitlab.gnome.org/GNOME/gjs
sudo apk add gjs-devgjs 1.88.0-1.fc45
Javascript Bindings for GNOME
https://wiki.gnome.org/Projects/Gjs
sudo dnf install gjsgjs-devel 1.88.0-1.fc45
Development package for gjs
https://wiki.gnome.org/Projects/Gjs
sudo dnf install gjs-develgjs-tests 1.88.0-1.fc45
Tests for the gjs package
https://wiki.gnome.org/Projects/Gjs
sudo dnf install gjs-testsgjs 2:1.88.0-1
Javascript Bindings for GNOME
https://wiki.gnome.org/Projects/Gjs
sudo pacman -S gjs来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.