macOS
brew install duktapelocal Homebrew formula metadata
sudo port install duktapeMacPorts ports tree · devel/duktape/Portfile · source: api.github.com
brew
Embeddable Javascript engine with compact footprint. Version 2.7.0 via Homebrew; verified from local package data.
install
brew install duktapelocal Homebrew formula metadata
sudo port install duktapeMacPorts ports tree · devel/duktape/Portfile · source: api.github.com
sudo apk add duktapeAlpine Linux edge package indexes · duktape · source: dl-cdn.alpinelinux.org
sudo apt install duktapeDebian stable package indexes · duktape · source: deb.debian.org
sudo dnf install duktapeFedora Rawhide package metadata · duktape · source: dl.fedoraproject.org
nix profile install nixpkgs#duktapenixpkgs package indexes · pkgs/by-name/du/duktape/package.nix · source: api.github.com
sudo pacman -S duktapeArch Linux sync databases · duktape · source: geo.mirror.pkgbuild.com
sudo zypper install duktape-developenSUSE Tumbleweed package metadata · duktape-devel · source: download.opensuse.org
overview
Embeddable Javascript engine with compact footprint
history
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.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
duk | cli | global executable |
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.
https://github.com/svaarala/duktape
install metadata
| Package key | brew:duktape |
|---|---|
| Version | 2.7.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/duktape |
| Homepage | https://duktape.org |
| Repository | https://github.com/svaarala/duktape |
| Upstream docs | https://duktape.org/api.html |
| License | MIT |
| Source archive | https://github.com/svaarala/duktape/releases/download/v2.7.0/duktape-2.7.0.tar.xz |
| Bottle | available (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-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | duktape |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
duktape 2.7.0-2+b2
embeddable Javascript engine
sudo apt install duktapeduktape-dev 2.7.0-2+b2
embeddable Javascript engine, development files
sudo apt install duktape-devlibduktape207 2.7.0-2+b2
embeddable Javascript engine, library
sudo apt install libduktape207duktape
nix profile install nixpkgs#duktapeduktape 2.7.0+tests-0ubuntu3
embeddable Javascript engine
sudo apt install duktapeduktape-dev 2.7.0+tests-0ubuntu3
embeddable Javascript engine, development files
sudo apt install duktape-devlibduktape207 2.7.0+tests-0ubuntu3
embeddable Javascript engine, library
sudo apt install libduktape207duktape 2.7.0-r3
Embeddable Javascript engine with a focus on portability and compact footprint
sudo apk add duktapeduktape-dbg 2.7.0-r3
Embeddable Javascript engine with a focus on portability and compact footprint (debug symbols)
sudo apk add duktape-dbgduktape-dev 2.7.0-r3
Embeddable Javascript engine with a focus on portability and compact footprint (development files)
sudo apk add duktape-devduktape-doc 2.7.0-r3
Embeddable Javascript engine with a focus on portability and compact footprint (documentation)
sudo apk add duktape-docduktape-libs 2.7.0-r3
Embeddable Javascript engine with a focus on portability and compact footprint (libraries)
sudo apk add duktape-libsduktape 2.7.0-11.fc44
Embeddable Javascript engine
sudo dnf install duktapeduktape-devel 2.7.0-11.fc44
Development files for duktape
sudo dnf install duktape-develduktape 2.7.0-7
Embeddable Javascript engine
sudo pacman -S duktapeduktape-devel 2.7.0-3.7
Development files for duktape
sudo zypper install duktape-develsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.