Skip to content

Releases

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 05 Dec 17:55
f895e2f

What's new in 0.4.0

Pack smaller standalone executables without installing Rust. Thinpack now ships a link kit for each supported platform and engine. Plain thinpack pack selects the Node built-ins your app needs and links them locally with the bundled linker. After installation, packing works offline without Rust, Node.js, or a platform SDK. Keep the kit next to the Thinpack CLI if you move a manually extracted distribution; only the packed executable needs to be distributed to users on compatible systems.

  • Relative files read through new URL(..., import.meta.url) can now be included in the packed app.
  • Packed executables pass --warm-cache through to the app. Use thinpack warm-cache <packed-executable> to warm the cache explicitly.
  • QuickJS reports unsupported localized date formatting instead of silently returning English output for unsupported locales.
  • Packing streams executable output and avoids repeated module discovery and package manifest reads.

Upgrading from 0.3.x

  • Remove --rebuild and --source from packaging scripts. Use plain thinpack pack with the new distribution.
  • QuickJS is the default; macOS can also use JavaScriptCore. Thinpack does not ship a V8 engine.
  • Windows x64 keeps the previous archive filename for existing downloads and actions. The archive now contains the GNU/UCRT link kit; keep its files together when extracting it.

Install

curl -fsSL https://raw.githubusercontent.com/thinpack-js/thinpack.js/v0.4.0/scripts/install.sh | THINPACK_VERSION=v0.4.0 sh
thinpack pack hello.js -o hello

On macOS, set THINPACK_BACKEND=jsc on the installer to select JavaScriptCore. On Linux, set THINPACK_STATIC=1 to select musl. For manual downloads, verify the archive against SHA256SUMS.

Full changelog

v0.3.1

Choose a tag to compare

@github-actions github-actions released this 30 Nov 08:51
347db6a

What's new in 0.3.1

  • Packed apps using Pino can write through process.stdout._write.
  • The packer follows more static asset paths and Worker URLs, including assets used by Marp. Rebuilding a runtime now reports packaging progress after compilation finishes.
  • Gzip decoding handles concatenated members. Crypto Hash and Hmac work as Transform streams, and vm.compileFunction honors parsingContext.
  • QuickJS runtimes no longer carry packer-only builtin metadata. SEA assets and loader-hook code are included only when their capabilities need them.

Install

curl -fsSL https://raw.githubusercontent.com/thinpack-js/thinpack.js/v0.3.1/scripts/install.sh | sh

QuickJS is the default. Set THINPACK_BACKEND=v8 for V8 or THINPACK_BACKEND=jsc on macOS. Set THINPACK_STATIC=1 for a static Linux archive. Manual downloads can be checked against SHA256SUMS.

Pack with Thinpack v1.0.0

Choose a tag to compare

@0x5457 0x5457 released this 30 Nov 15:15
6569cdd

First release of the Pack with Thinpack GitHub Action. Pack a Node.js CLI into a standalone executable for the current Linux, macOS, or Windows runner.

Use thinpack-js/thinpack.js@action-v1.0.0 in your workflow. The action verifies the SHA-256 checksum of the pinned Thinpack CLI before packing.

Setup and release workflow example

This is an Action-only release. The Thinpack CLI stays at v0.3.1.

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 26 Nov 13:44
c30aecc

What's new in 0.3.0

  • Smaller QuickJS executables. A one-line Hello World is 4.03 MiB on Linux x64
    with --rebuild, down from 5.37 MiB.
  • Better Node.js compatibility. HTTP/1.1 now uses Node's llhttp parser.
    This release adds UDP sockets, improves HTTP timeout behavior, fixes piped
    stdin, and supports JSON IPC in child_process.spawn.
  • More predictable module loading. require.resolve(request, { paths })
    uses the supplied search roots. Package exports use the most specific match.
    The packer can strip TypeScript types and follows more static module paths.

If a packed Babel 7 or 8 app uses a package-name preset, include the Babel config
with the preset and select the packed config at runtime. See the
reference.

Install

curl -fsSL https://raw.githubusercontent.com/thinpack-js/thinpack.js/v0.3.0/scripts/install.sh | sh

Archives include a CLI and runtime template. QuickJS is the default.
Set THINPACK_BACKEND=v8 for V8 or THINPACK_BACKEND=jsc on macOS.
Set THINPACK_STATIC=1 for a static Linux archive. Manual downloads can be
checked against SHA256SUMS.

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 11:00
a2cd1f4

thinpack packs a Node.js app into a single executable: deno_core provides the engine,
oxc computes which built-in modules the app actually reaches, and only those are linked.

What's new in 0.2.0

  • A third backend, and archives for all three. THINPACK_BACKEND=jsc installs the -jsc-
    pair for macOS, whose template links the system JavaScriptCore.framework instead of carrying an
    engine; its module support is a source rewriter aimed at flattened bundles, so a module graph
    that leans on exact ES module edge cases can behave differently (see Known limits in the
    README). V8 archives are new as well — glibc Linux, macOS and Windows, -v8- in the name.
  • Static Linux archives. x86_64-unknown-linux-musl and aarch64-unknown-linux-musl link
    no libc and run on any distribution, Alpine included, for about 1 MiB more per packed artifact.
    The installer picks them when the host cannot run the glibc build, THINPACK_STATIC=1 forces
    it, and CI refuses to publish a musl artifact that is not static-PIE.
  • node:test, node:punycode, and the undici globals (fetch, Headers, Request,
    Response, FormData) that Node v26 links in. The fetch globals are lazy getters: an app that
    never touches them carries none of it, and a pack built --without http fails with a message
    naming the flags to re-pack with.
  • Crypto without vendored OpenSSL. The key-material paths (RSA/RSA-PSS, EC, Ed25519,
    X25519, PKCS#1/PKCS#8/SPKI/SEC1 and JWK, X.509 public keys, PKCS#8 encryption) use RustCrypto
    instead of a bundled libcrypto, which takes about 2.7 MiB off an artifact that uses node:crypto
    and removes Perl and Make from the build. Signing stays on ring. DSA, DH, Ed448/X448, encrypted
    PKCS#1/SEC1 PEM and EC explicit parameters are recorded as gaps.
  • Faster cold start on large bundles. Parsing a minified 1.9 MB bundle no longer scans back
    to the start of the line per identifier, and functions with tens of thousands of declarations
    no longer walk the scope chain per lookup.
  • Fixes: ESM diagnostics survive packaging (dynamic-import, instantiation and CommonJS
    compile errors), packed ESM entries load on Windows, node:test mock scoping and late
    registration follow Node, node:fs reads the filesystem magic from statfs, and node:timers
    uses the Immediate queue.
  • Security: hickory-resolver 0.26 clears six Dependabot advisories in node:dns. oxc
    0.159, notify 9 and sha2 0.11 are also on their current releases.

Install

curl -fsSL https://raw.githubusercontent.com/0x5457/thinpack.js/main/scripts/install.sh | sh

Set THINPACK_BACKEND=v8 for the V8 build. You can also unpack the archive for your
platform and keep thinpack and thinpack-rt in the same directory.

thinpack pack app.js -o app
./app

Assets

Target Runs on
x86_64-unknown-linux-musl 64-bit Linux, any distribution (static)
aarch64-unknown-linux-musl 64-bit ARM Linux, any distribution (static)
x86_64-unknown-linux-gnu 64-bit Linux, glibc 2.39+ (dynamic, smaller)
aarch64-unknown-linux-gnu 64-bit ARM Linux, glibc 2.39+ (dynamic, smaller)
aarch64-apple-darwin Apple Silicon macOS
x86_64-apple-darwin Intel macOS
x86_64-pc-windows-msvc 64-bit Windows

Each archive includes thinpack and a runtime template with every built-in module. Archives
with -v8- in their names use V8 and are available for glibc Linux, macOS and Windows;
the -jsc- archives are the macOS pair that links the system framework. The default archives
use QuickJS. thinpack pack --rebuild from a source checkout builds a template with the app's
own capabilities.

The glibc artifacts are the smaller ones and are linked against the runner's glibc (Ubuntu 24.04,
2.39). The static musl artifacts link no libc and run anywhere, Alpine included, at about 1 MiB
more per artifact you pack. They also carry musl's resolver, which reads /etc/hosts and
/etc/resolv.conf only, so dns.lookup sees no NSS entries (LDAP, sssd, NIS) and no mDNS; and
dlopen through node:ffi is the one thing they cannot do at all, because a static binary has no
dynamic loader. scripts/install.sh picks between them by the host's libc, and THINPACK_STATIC=1
(Linux only) forces the static one.

Verify a download against SHA256SUMS.

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 18 Nov 14:07

thinpack packs a Node.js app into a single executable: deno_core provides the engine,
oxc computes which built-in modules the app actually reaches, and only those are linked.

Install

curl -fsSL https://raw.githubusercontent.com/0x5457/thinpack.js/main/scripts/install.sh | sh

Or unpack the archive for your platform and keep thinpack and thinpack-rt in the same
directory — the CLI loads its runtime template from next to itself.

thinpack pack app.js -o app
./app

Assets

Target Runs on
x86_64-unknown-linux-gnu 64-bit Linux, glibc 2.39+
aarch64-unknown-linux-gnu 64-bit ARM Linux, glibc 2.39+
aarch64-apple-darwin Apple Silicon macOS
x86_64-apple-darwin Intel macOS
x86_64-pc-windows-msvc 64-bit Windows

Every archive carries the same two binaries: thinpack (the packer, links no JS engine) and
thinpack-rt (the runtime template, QuickJS backend, every built-in module). The template is
a superset, so any app packs; thinpack pack --rebuild from a source checkout builds one that
carries only that app's capability set, which is where the smallest artifacts come from.

The Linux archives are linked against the runner's glibc (Ubuntu 24.04, 2.39). On an older
distribution, build from source.

Verify a download against SHA256SUMS.