Altru.dev / Apps / Privacy / Open source

Apps you don't have to take on trust.

Experimental · Research preview

PWX, the Progressive Web eXecutable, is a signed app in a single file that runs in any modern browser and can only do what it declares. Anyone can check who made it and that it hasn't changed, and the runtime enforces its limits, so you don't have to rely on the publisher's promise. Installed apps work offline and keep their data on your device.

Experimental software

Experimental: not ready for production. PWX has a working, security-tested implementation and a public demo, but the format is still a draft and some protections are not built yet (listed under Honest limits). Try it, test it and break it, but don't keep data you can't lose in the demo.

The case

Today, using an app means trusting whoever made it.

A privacy policy is a promise, not a limit. Nothing stops an app from sending your data somewhere it didn't mention, changing after you install it, or disappearing along with your data. And as more apps are made quickly, by small teams or with AI, "who made this and what can it do?" gets harder to answer.

Promises, not limits

An app's description says where your data goes. The app itself can do something else, and you usually can't tell.

Apps change under you

An update can quietly add tracking or ask for more, and a stolen publisher key can ship an "update" that isn't from the publisher at all.

Your data isn't yours

Apps live on someone's platform. When it shuts down, changes its terms or loses your account, your data can go with it.

What PWX is

Like PDF, but for apps.

PWX moves trust from the publisher to something anyone can check. It's an open format and a runtime, not an app builder and not a store: build your app however you like, then pack and sign it.

One signed file

Every file in the app is hashed and the whole package is signed by its publisher. A changed byte, an extra file or a quietly widened permission is refused before the app runs.

Limited by its manifest

The app declares up front which hosts it may contact and what it may store. The runtime turns that into browser-enforced rules, so an app can't send your data to a host it didn't declare.

Shown before you install

You see who published the app (their key fingerprint) and exactly what it can do, in plain words, before anything installs.

Offline and yours

Installed apps run with no network and make no calls home. Their data stays on your device, in a space no other app can reach.

Runs on everything

The same file runs on phones, tablets and computers, in Chrome, Firefox and Safari, from a link or from a file.

Open

The format, runtime and tools are open source under Apache-2.0. Anyone can build a loader, a checker or a packer.

How it works

Pack. Check. Run.

01 / Pack and sign

The author drops an app folder into the packer, writes a short manifest (name, version, what the app may do) and signs it. Out comes one .pwx file.

02 / Log it publicly

Each release is recorded in a public, append-only log that witnesses check (ALTRU's own today; independent ones are being invited), and the package carries a receipt proving it's in the log. A release that was published in secret stands out.

03 / Check on every launch

The loader verifies the signature, every file and the receipt, fully offline, every time the app opens, not just at install. Older versions and swapped content are refused.

04 / Run sealed

The app runs in a sandbox with only the capabilities its manifest declared: no popups, no navigation away, no hosts it didn't name. Strict apps get storage only if they asked for it.

Using PWX

Try it in a minute.

If you want to use apps

1 / Open the demo

Go to pwx.altru.dev and choose Try the Notes app.

2 / Read before you install

The install screen shows the publisher's key fingerprint, whether the release is in the public log, and exactly what Notes can do: send data to no host at all.

3 / Use it, then go offline

Write a note, turn off your connection and open Notes again. It still works, and your note never left the device.

4 / Keep it

Add Notes to your home screen (on iPhone the demo shows you how). It opens full screen, as the app alone. Tap What it can do any time to see its limits and when its release status was last checked.

If you build apps

Use any tools you like for the app itself. PWX only needs a folder, a manifest and a key. The tools are plain Node.js scripts with no dependencies.

git clone -b spike https://github.com/altrudev/PWX.git
cd PWX/spike
node tools/pack.mjs keygen ~/my-pwx-key.json      # keep this key private, outside your app folder
node tools/pack.mjs pack my-app/ my-app/manifest.template.json ~/my-pwx-key.json my-app.pwx.json

The manifest says what the app is and what it may do. This is the one Notes uses: no network at all, and storage on the device.

{
  "pwx": "0",
  "id": "org.example.notes",
  "name": "Notes",
  "version": "1.0.0",
  "runtime": "strict",
  "entry": "app/main.js",
  "capabilities": {
    "network": { "connect": [], "webrtc": "none" },
    "storage": { "local": true, "persistent": true }
  }
}

Then open the demo, choose Install from a .pwx file and pick your package: it goes through the same checks and install screen as any app. The specification covers the package format, every capability and both runtimes (Standard for ordinary web pages, Strict for apps that never touch the page directly).

What's been tested

Attacked on purpose, in three browser engines.

Every claim on this page is backed by a test that runs in Chromium, Firefox and WebKit (the engine behind Safari).

Security audit

A full audit wrote ten working attacks: websites hijacking an app, apps reading each other's data, apps rewriting the runtime, links switching protections off. After the fixes, 0 of 10 succeed in any engine, and they run as regression tests.

Tamper checks

One changed byte, an extra file, a widened permission, an older version or a package re-signed by someone else is refused, online and offline.

Public log, live

The demo's releases are recorded in a public log at pwx.altru.dev/log, in open, standard transparency-log formats. Other people's code (Go's transparency-log libraries) verifies it.

Withdrawn and revoked releases

If a publisher withdraws a version, people see their message; if a release is revoked as unsafe, it won't start, and the data is kept. Offline, the app shows when its status was last checked.

Honest limits

What PWX can't promise yet.

A stolen publisher key

Releases are logged, but the loader only shows that today; it doesn't yet refuse unlogged releases or check a publisher's key history. Two-device signing and independent witnesses come next.

A compromised web host

On the hosted demo, whoever controls the server could replace the loader's background code. The loader notices and locks, and apps accept only genuine packages, but app data on that host isn't fully protected yet. The local loader (pwx-local) doesn't have this gap, and the fix for every browser is in progress.

Browser limits

For ordinary web-page apps, some browsers can't fully block WebRTC (and Safari's engine lets link preconnects through). Strict apps aren't affected: their code never touches the page.

Where it's going

Apps you own, like a book or a song file.

Apps anyone can make, share, update and branch, that run on everything, and where you always know who made them and what they can do. These are directions, not shipped features.

Branches with a history

Anyone can branch an app; the new version is signed by its new author and shows where it came from, so a branch asking for more than the original stands out.

Ownership on the record

Buy, gift, lend or earn an app through signed licenses you can check offline, with no store in between.

Documents that run

Invitations, menus, receipts and forms as signed, offline apps that still work in decades.

Where there's no internet

Apps passed by USB, Bluetooth or QR code that can still be verified, for humanitarian work and places without reliable connections.

Safe AI-made software

When AI builds an app on demand, PWX keeps it inside what its manifest declares and records who or what made it.

A packer for everyone

Drop in a folder, get a signed app: on the command line today, and as a web page next.

What's next

The road from experiment to everyday tool.

Sealed apps

Every app in its own sealed sandbox, a loader core that never changes so any swap is caught at once, and app data encrypted with your device unlock or a passphrase.

Stolen-key protection

Signing that needs two of the author's devices, publisher key history with a 7-day waiting period, independent witnesses for the log, then refusing anything that isn't logged.

Hardware keys and the Signer

Signing keys kept in each device's security chip, and a simple Signer app to approve releases, get alerts and revoke with one tap.

Open source & license

Built in the open.

PWX is © 2026 Valentyn Rukhaylo (Altru) / Altru.dev and contributors, released under the Apache License 2.0. The names "PWX" and "Progressive Web eXecutable" aren't covered by the license; forks are welcome under a different name.

Contributions are welcome, especially a second demo app, signed folders, a packer web page and running a witness for the public log. Report security issues privately through the repository's security tab.

↑ ↓ moveEnter openEsc close