Automic VaultAutomic Vault

brew

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

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install duktape

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install duktape

MacPorts ports tree · devel/duktape/Portfile · 来源: api.github.com

Linux

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

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

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

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

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

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

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

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

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

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

openSUSE zypper已验证 · 92%
sudo zypper install duktape-devel

openSUSE Tumbleweed package metadata · duktape-devel · 来源: download.opensuse.org

概览

软件包摘要

Embeddable Javascript engine with compact footprint

历史

项目历史与用法

Duktape is an embeddable ECMAScript engine for C and C++ programs, designed around portability, compact footprint, and simple integration by adding the distributable C and header files to an application build. It is one of the better-known small JavaScript engines used when V8 or SpiderMonkey are too large or too embedding-heavy.

项目历史

Duktape's public release archive starts in September 2013 with alpha releases focused on the public API, portability, and ES5.1 behavior. Version 1.0.0 arrived on October 26, 2014 as the stable baseline release.

The 1.x series added low-memory improvements, debugger support, typed arrays, duk_config.h, module.exports behavior, performance work, suspend/resume support, and continued maintenance. These releases established Duktape as a compact embeddable runtime rather than a browser engine.

Duktape 2.0.0 was released on January 2, 2017 with buffers, ES2015 improvements, performance work, and footprint changes. Later 2.x releases added API improvements, CBOR support, Unicode and portability updates, and maintenance fixes, with 2.7.0 released on February 19, 2022.

The upstream GitHub README notes that the master branch is undergoing incompatible changes for Duktape 3.x and that Duktape 2.x is tracked on the v2-maintenance branch. That split reflects a mature runtime balancing maintenance users with future internal changes.

采用历史

Duktape's own site points to projects using it and to Stack Overflow community support, while its package presence spans Homebrew, Debian, Fedora, MacPorts, Nix, Arch, Alpine, Ubuntu, and openSUSE-family packaging. Its GitHub repository also shows thousands of stars and a long development history, which is notable for a small embeddable engine.

Adoption tends to come from applications needing scripting, configuration logic, plugins, tests, or embedded automation in a C or C++ host. The guide emphasizes that Duktape makes few platform assumptions and leaves native bindings under application control, which made it attractive for constrained or custom environments.

使用方式

Embedding usually means adding duktape.c, duktape.h, and duk_config.h to the host build, creating a heap, and using the C API to call ECMAScript from C or expose C functions to script code. The command-line duk executable is useful for quick testing, but the package's main value is as a library.

Duktape implements ES5/E5.1 with selected later semantics and partial ES2015/ES2016 features. Its feature set includes typed arrays, Node.js Buffer bindings, WHATWG Encoding API bindings, CBOR bindings, a debugger, Unicode support, coroutines, bytecode dump/load, finalization, and low-memory configuration options.

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

Duktape is significant because it occupies the small-engine end of the JavaScript runtime map. Package maintainers care about it as a portable C library with a permissive license, a stable release archive, and a footprint small enough for embedded systems.

It is also a useful point of comparison against QuickJS, MuJS, JerryScript, Espruino, and v7. Those engines all answer the same broad question - how small and embeddable can JavaScript be - with different tradeoffs around standards coverage, performance, licensing, and host integration.

时间线

  • 2013: 0.6.0 alpha released with first public API work.
  • 2014: 1.0.0 released as the stable baseline.
  • 2015: 1.2.0 added debugger and script-timeout support; 1.3.0 added typed arrays and duk_config.h.
  • 2016: 1.5.0 added low-memory and debugger improvements; 1.6.0 added suspend/resume.
  • 2017: 2.0.0 released with buffers, ES2015 improvements, performance, and footprint work.
  • 2018: 2.3.0 included ES2015 improvements.
  • 2019: 2.5.0 added CBOR support and other improvements.
  • 2022: 2.7.0 released as a maintenance-focused 2.x release.

Related projects

  • QuickJS, MuJS, JerryScript, Espruino, v7, tiny-js, and quad-wheel are listed by Duktape as similar engines for compact or embeddable JavaScript use cases.
  • V8 and SpiderMonkey are larger JavaScript engines that are often unsuitable when Duktape's compact single-source embedding model is the requirement.
  • Lua is a frequent embedded-scripting comparison point, and the Duktape guide explicitly includes a comparison-to-Lua section.

安全态势

风险级别:绿色

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 元数据适用于 13 个平台目标。

建议审查

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
dukcli全局可执行文件

新鲜度

版本和新鲜度

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

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

https://github.com/svaarala/duktape

  • 信息No package-manager update timestamp was available.低 置信度
  • 信息No cached GitHub release or tag data was available.https://github.com/svaarala/duktapenone 置信度

安装元数据

软件包元数据

软件包键brew:duktape
版本2.7.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/duktape
主页https://duktape.org
仓库https://github.com/svaarala/duktape
上游文档https://duktape.org/api.html
许可证MIT
源码归档https://github.com/svaarala/duktape/releases/download/v2.7.0/duktape-2.7.0.tar.xz
Bottle可用 (于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

duktape 2.7.0-2+b2

embeddable Javascript engine

https://duktape.org

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

duktape-dev 2.7.0-2+b2

embeddable Javascript engine, development files

https://duktape.org

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

libduktape207 2.7.0-2+b2

embeddable Javascript engine, library

https://duktape.org

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

duktape

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

duktape 2.7.0+tests-0ubuntu3

embeddable Javascript engine

https://duktape.org

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

duktape-dev 2.7.0+tests-0ubuntu3

embeddable Javascript engine, development files

https://duktape.org

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

libduktape207 2.7.0+tests-0ubuntu3

embeddable Javascript engine, library

https://duktape.org

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

duktape 2.7.0-r3

Embeddable Javascript engine with a focus on portability and compact footprint

https://duktape.org

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

duktape-dbg 2.7.0-r3

Embeddable Javascript engine with a focus on portability and compact footprint (debug symbols)

https://duktape.org

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

duktape-dev 2.7.0-r3

Embeddable Javascript engine with a focus on portability and compact footprint (development files)

https://duktape.org

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

duktape-doc 2.7.0-r3

Embeddable Javascript engine with a focus on portability and compact footprint (documentation)

https://duktape.org

sudo apk add duktape-doc
  • License: MIT
  • Architecture: x86_64
  • Source Package: duktape
  • normalized package name match
  • 匹配方式:Duktape
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: duktape-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

duktape-libs 2.7.0-r3

Embeddable Javascript engine with a focus on portability and compact footprint (libraries)

https://duktape.org

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

duktape 2.7.0-11.fc44

Embeddable Javascript engine

http://duktape.org/

sudo dnf install duktape
  • License: MIT
  • Category: Unspecified
  • Architecture: i686
  • Source Package: duktape
  • 4 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Duktape
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: duktape from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

duktape-devel 2.7.0-11.fc44

Development files for duktape

http://duktape.org/

sudo dnf install duktape-devel
  • License: MIT
  • Category: Unspecified
  • Architecture: i686
  • Source Package: duktape
  • 4 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Duktape
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: duktape-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

duktape 2.7.0-7

Embeddable Javascript engine

https://duktape.org/

sudo pacman -S duktape
  • License: MIT
  • Architecture: x86_64
  • 1 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Duktape
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: duktape from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

duktape-devel 2.7.0-3.7

Development files for duktape

https://duktape.org/

sudo zypper install duktape-devel
  • License: MIT
  • Category: Development/Libraries/C and C++
  • Architecture: x86_64
  • Source Package: duktape
  • 2 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Duktape
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: duktape-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

来源线索

由仓库数据生成

此页面由 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