Skip to content

tpk: introduce tpk, txiki.js packages#848

Merged
saghul merged 1 commit intomasterfrom
tpk
Mar 12, 2026
Merged

tpk: introduce tpk, txiki.js packages#848
saghul merged 1 commit intomasterfrom
tpk

Conversation

@saghul
Copy link
Copy Markdown
Owner

@saghul saghul commented Mar 12, 2026

tpk is an experiment to add some form of app packaging and bundling into
standalone excutables.

The idea is to facilitate delivering apps which uses assets aside from
JS code (which could be bundled into a single file, so that's not a
problem) such as WASM files or dynamic libraries for use with ffi.

The tpk format just a ZIP file that has a manifest inside. It gets
embedded into the executable with a build identifier, and a checksum and
it gets extracted before running. Integrity is not checked beyond the
first extraction.

Check the docs for details on the embedding.

tpk is an experiment to add some form of app packaging and bundling into
standalone excutables.

The idea is to facilitate delivering apps which uses assets aside from
JS code (which could be bundled into a single file, so that's not a
problem) such as WASM files or dynamic libraries for use with ffi.

The tpk format just a ZIP file that has a manifest inside. It gets
embedded into the executable with a build identifier, and a checksum and
it gets extracted before running. Integrity is not checked beyond the
first extraction.

Check the docs for details on the embedding.
@saghul saghul marked this pull request as ready for review March 12, 2026 11:53
@saghul saghul merged commit 0682ab4 into master Mar 12, 2026
34 checks passed
@saghul saghul deleted the tpk branch March 12, 2026 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant