Automic VaultAutomic Vault

brew

Install duktape with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Embeddable Javascript engine with compact footprint. Version 2.7.0 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install duktape

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install duktape

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

Linux

Alpine Linux apkverified · 92%
sudo apk add duktape

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

Debian aptverified · 92%
sudo apt install duktape

Debian stable package indexes · duktape · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install duktape

Fedora Rawhide package metadata · duktape · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#duktape

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

Arch Linux pacmanverified · 92%
sudo pacman -S duktape

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

openSUSE zypperverified · 92%
sudo zypper install duktape-devel

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

overview

Package summary

Embeddable Javascript engine with compact footprint

Commands and aliases

  • duk

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 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.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 13 platform targets.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
dukcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version2.7.0
manager updated
local dataok
upstreamnot checked
latest detectednot detected

https://github.com/svaarala/duktape

install metadata

Package metadata

Package keybrew:duktape
Version2.7.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/duktape
Homepagehttps://duktape.org
Repositoryhttps://github.com/svaarala/duktape
Upstream docshttps://duktape.org/api.html
LicenseMIT
Source archivehttps://github.com/svaarala/duktape/releases/download/v2.7.0/duktape-2.7.0.tar.xz
Bottleavailable (on 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-installnot defined
Servicenone declared

registry facts

Source database details

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

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

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 dependencies
  • normalized package name match
  • Matched by: 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 dependencies
  • normalized package name match
  • Matched by: 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 dependencies
  • normalized package name match
  • Matched by: 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
  • Matched by: 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 dependencies
  • normalized package name match
  • Matched by: 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 dependencies
  • normalized package name match
  • Matched by: 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 dependencies
  • normalized package name match
  • Matched by: 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 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: 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 dependencies
  • normalized package name match
  • Matched by: 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 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: 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
  • Matched by: 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 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: 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 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: 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 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: 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 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: 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 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: 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

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • 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