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.
- An open format, not a store. PWX is a way to package, sign and run apps, like PDF is for documents. Build however you like, by hand or with AI, then pack and sign.
- One app, every device. The same file runs on phones, tablets and computers: from a link, installed on the home screen, or as a file you keep.
- Branch anything, see where it came from. Anyone can take an app and change it. Every version records what it was branched from, so you always know who made what.
- Owned like an object. Bought, earned, gifted or lent, recorded in a public log instead of a company's database.
- Safe for AI-made software. An app an AI wrote can still only do what its signed manifest says.
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.
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.
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.
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
- Open pwx.altru.dev and choose Try the Notes app.
- Read what it can do and who made it, then choose Install. Nothing installs until you do.
- Write a note. It's saved on this device only.
- Come back any time: Notes is in Your apps, and opens offline.
- 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.
- Remove erases the app and everything it stored, after you confirm.
- 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
- This is an early demo. Don't keep important data here yet.
- The hosted demo trusts its web host for the page itself. App files are checked on
your device, and the loader locks itself if its host swaps it, but a host can still change what this
page is. The local version,
pwx-local, doesn't have this gap. - Some browsers leak a little for standard apps. WebRTC in every browser, and link preconnect in Safari, can't be fully blocked for apps that use the page directly. Strict apps, like Notes, avoid both.
- A stolen maker key can't be stopped yet. The public log, revocation and two-device signing that fix this are designed and prototyped, not yet in the demo.
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.