Developer builds PWAA format to run full web apps offline without CORS issues
A developer has created PWAA (Portable Web Application Archive), a new file format designed to package entire web applications, including HTML, CSS, JavaScript, and media, into a single double-clickable file. Existing offline formats such as EPUB, MHTML, and CHM were deemed inadequate for modern interactive apps due to JavaScript sandboxing, CORS restrictions, and lack of SPA routing support. PWAA works by mapping a standard ZIP container's contents to memory and spinning up an ephemeral in-memory HTTP server on localhost, tricking the web code into behaving as if it were running on a live server. This approach bypasses CORS restrictions, supports SPA routing via a fallback mechanism that serves index.html for unmatched paths, and enables video streaming through a RAM-buffering strategy. The reference reader and builder were written in Go, and the format aims to free developers from cloud hosting dependencies for distributing interactive web content.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in