Jump to content

Hosting a full web app on Arweave with AO as the backend

From IdeaWazaWiki

Hosting a full web app on Arweave with AO as the backend means publishing a site's HTML, CSS, JavaScript and data to Arweave's permanent storage, giving it a readable name through the ArNS naming system, and handing shared, changing state such as accounts or comments to processes on AO, a compute network built on Arweave. The Permanent Gutenberg Archive shows how far the static part alone can go: launched during Banned Books Week 2025, it holds 75,945 public domain books, about 28 GB of text, and runs search, filtering and sorting entirely in the reader's browser against a 7 MB index.[1]

Static files that stay put

Every file uploaded to Arweave gets a long transaction ID. A path manifest ties those files together into a website. It is a small JSON document, marked as a manifest with a Content-Type tag on the upload, that maps readable paths such as index.html or css/style.css to transaction IDs and names an index page and a fallback page for missing paths. A gateway that receives a request for the manifest's ID followed by a path looks up the path and serves the matching file, so relative links inside the site work as they would on any web host.[2]

Because each upload is permanent, publishing a new version of a site means uploading a new manifest. The earlier manifest, and every file it points to, remains reachable at its own address.[2][3]

Readable names and updates

A raw transaction ID is hard to share, so the ar.io network offers ArNS. A registered name is controlled by an Ar.io Name Token, which holds a changeable pointer to a transaction ID. Gateways resolve the name as a subdomain, so a name such as ardrive becomes ardrive.ar.io, and serve the data it points to. According to current documentation, the ArNS registry itself is managed on Solana.[4]

Undernames work like subdomains for environments and releases. One name can carry a production record, a staging record, a dev record and archived versions such as v2-1-0, each pointing to a different deployment. Rolling back means pointing the main record at an older transaction ID, which is immediate because the old version never left storage. A time-to-live setting controls how long gateways cache each pointer.[3]

ArDrive and permanent versions

ArDrive, a file storage app built on Arweave, applies this to its own software. It keeps every official version of its web app on the permaweb, lists their version numbers and transaction IDs, and serves the latest release at a stable address. ArDrive argues that if its team disappeared, users could still open an archived version of the app and reach their files.[5] For users, this changes the usual relationship with software updates, since an older interface stays available alongside the new one.

Interactive without a server

Static hosting does not mean a static experience. The Gutenberg archive stores each book as a plain text file tagged with its title, author, language and Project Gutenberg ID, so discovery works without an outside database. The app detects which gateway a reader is using and loads everything from it, and if that gateway fails, the same app works through another. The archive's case study notes that Germany blocked the Project Gutenberg website in 2018 and that Italy has blocked access since 2020, and it presents the copy on more than 600 gateways as a way to route around such blocks.[1]

The limit is shared state. Search over a fixed collection can run in the browser, but accounts, comments, stars and publishing permissions change constantly and must be agreed on by everyone.

AO for shared state

AO fills that role. Its documentation describes many parallel processes that each run independently and communicate by passing messages, an actor model inspired by Erlang.[6] A message travels from a client to a messenger unit, which forwards it to a scheduler unit that stores the assignment and the message on Arweave. A compute unit then evaluates the process to produce results.[7] HyperBEAM, the current production network, exposes process state over HTTP, so a browser app can read values such as a counter or a list from a plain URL.[6]

Processes are programmed with handlers that match incoming messages by tags and respond, and a process can send messages to others or spawn new processes.[8] In a web app, the frontend on Arweave would read state from a HyperBEAM node over HTTP and send signed messages to change it, for example to register a release or post a comment.

Design limits

This model has clear trade-offs. Permanence applies to mistakes and private data as well as to good releases, so checks before upload matter, as discussed in Publish gates before permanence. Readers still depend on gateways existing, and names depend on a registry that runs on another chain.[4] Process state depends on operators continuing to run compute nodes, and large searchable collections need an index built ahead of time, as the Gutenberg archive does. Storage is paid once at upload instead of through renewals, a model explained further in How Arweave prices storage for 200 years.[1]

  • What changes for users when every past version of an app stays available at its own address?
  • How does a path manifest turn separate permanent files into a working website?
  • Which parts of a social or collaborative site can run entirely in the browser, and which need shared state?
  • Why might a project store its interface on Arweave but keep its naming registry on another chain, and what risks follow?
  • How should a team decide what is safe to publish permanently before an upload?
  • Compare rolling back a release by moving an ArNS pointer with rolling back on a conventional web host.
  • Design an AO process that records model releases and lets only approved publishers add new ones.
  • What lessons does the Permanent Gutenberg Archive offer for preserving other public collections?

Readings from Wikipedia

See also

References