Repository navigation
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-cachethrough to the app. Usethinpack 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
--rebuildand--sourcefrom packaging scripts. Use plainthinpack packwith 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 helloOn 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.