PWX

How PWX works

The short version: an app is a signed package. Your device checks it before it runs, and the browser holds it to what it declared. Here's the longer version, with pictures.

Why PWX exists

Using an app today means trusting whoever made it, and whoever sells it to you.

A privacy policy is a promise. Nothing stops an app from sending your data somewhere else, changing after you install it, or disappearing with everything you put into it. App stores decide what you may run, on which devices, and take a cut of everything sold.

PWX replaces the promise with something you can check. Its purpose is privacy, no data loss, and people who own their software and their data.

Where it's going

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.

Most of this is designed and partly built; see limits today. The full plan is in VISION.md.

What's inside a PWX app

One package holds three things. Change any byte of any of them and the package is refused.

A PWX package: a manifest, a signature over it, and the app's files, each matched by a fingerprint in the manifest. notes.pwx Manifest Name, version May contact: nobody May store data: on this device Fingerprint of every file Maker's public key Signature by the maker's key, over the manifest signs Files main.js ui.css icon.svg … every file must match

What happens when you open an app

Every time, not just at install. If any answer is no, the app doesn't run and you're told why.

Checks in order: is it signed by its maker, are the files unchanged, is it the same maker as before, is it newer. Then you're asked, then it runs sealed. Any no means refused. Signed byits maker? Filesunchanged? Same makeras before? Not an olderversion? yesyesyes yes You see what it can doand choose Install It runs, sealed off,with only what it declared any no Refused, and you'retold which check failed

Each app gets its own private storage

Browsers keep each web address's data in its own locked drawer. So the demo gives every app its own address: app1 to app4.pwx.altru.dev. You never visit those directly; this page opens apps there, inside a sealed frame. One app can't read another's notes, and app code can't touch the PWX runtime.

The loader at pwx.altru.dev opens each app in a sealed frame on its own address, app1 to app4, each with its own storage. Walls between apps block access. pwx.altru.dev, the loader you see checks apps, keeps your library, asks before installing Notesapp3.pwx.altru.dev its data Another appapp1.pwx.altru.dev its data free free

Four addresses is the smallest setup that works today. A planned change runs every app in a sealed box on one address, after which these extra addresses go away.

On your device, even offline

Installed apps and their data live on your device. Opening an app sends nothing to any server, and works with no connection at all. The loader itself is a signed release: your browser keeps a verified copy and checks it again every time it's used.

Using the demo

  1. Open pwx.altru.dev and choose Try the Notes app.
  2. Read what it can do and who made it, then choose Install. Nothing installs until you do.
  3. Write a note. It's saved on this device only.
  4. Come back any time: Notes is in Your apps, and opens offline.
  5. On a phone: use your browser's Add to Home Screen to keep PWX like an app. On iPhone that's Share, then Add to Home Screen.
  6. Remove erases the app and everything it stored, after you confirm.
  7. Have a .pwx file? Install from a .pwx file runs the same checks.

Making a PWX app

Any web app works as a starting point. Write a manifest that says what it may do, then pack and sign it. The tools are in the spike folder on GitHub (tools/pack.mjs); the format is in SPEC.md. A simpler packer for everyone, and signing with two of your devices, are in progress.

Limits today, plainly

Every claim here is tested: see the security audit.

Get involved

PWX is open source (Apache-2.0) and looking for people who want apps without gatekeepers: builders, designers, security researchers, and anyone who'd try to break it.

See the code on GitHub Report a security problem privately