---
title: "Apps were a mistake."
url: https://applet.run/
published: 2026-11-16
language: en
---

Chapter One

# Apps were a mistake.

November 2026.

Small software is the bigger idea: focused tools that share One Host, so a group can replace a single piece without moving Everything Else.

## Part I: The cost of choosing a tool.

Choosing a better tool can mean asking a whole group to move. A club might want a different calendar, yet find that its invitations, discussions, and member list all belong to the service it already uses. Replacing one feature becomes a migration of the group’s shared life.

Conventional applications often bundle the interface, accounts, data, and connections to other people into one product. Developers build and operate the stack; users enter through the choices it exposes. A monolithic codebase can make those parts difficult to separate, but a service built from hundreds of microservices can present the same closed world to its users.

That bundle has real advantages. One team can make the pieces work together, manage updates, and provide a coherent place to collaborate.

The difficulty appears when someone wants a different piece. Another application may require another account, another copy of the same information, and another round of invitations.

A developer who wants to improve one piece may need the platform’s permission to reach its users and data. Building outside it can mean rebuilding that infrastructure and persuading people to join again.

The people already there make leaving harder. The UK’s Competition and Markets Authority and Ofcom describe how these network effects can reinforce platform power and weaken the pressure to improve a service. A competing interface has to compete with the relationships and activity accumulated behind the old one. [\[24\]](https://applet.run/#source-platform-power)

For a community, that dependence shapes who can take part and under whose rules. Imagine a neighborhood group whose notices are only available through one platform: joining the group now requires accepting that platform’s terms.

When people cannot easily move together, the operator gains more say over the conditions of their shared space. The CMA and Ofcom also warn that switching barriers can make it harder to leave after unsafe experiences. [\[24\]](https://applet.run/#source-platform-power)

The same dependence changes a person’s relationship with a tool. You can learn its menus and fill it with years of work while having little say over how it behaves. If an essential workflow changes, you may have to adapt, ask the vendor to restore it, or leave.

Ink & Switch’s local-first research draws out a further consequence of server-dependent apps: continued access to your own work can depend on the provider continuing to run the service. Exporting data may preserve the contents without preserving a working tool. [\[25\]](https://applet.run/#source-local-first)

Dependence has a security cost as well. Each application that keeps its own accounts, stores its own copy of your information, and decides its own permissions is a separate thing to defend. A group that uses six services has trusted six teams to store passwords carefully, patch promptly, and notice when something is wrong.

A flaw in a component those services share has to be fixed by each team separately, on its own schedule. The people using them have no good way to tell which teams have done so.

This is the distance malleable software tries to close: the gap between using a tool and being able to shape it. A person who wants a new view of existing work should have a path to change that view without rebuilding the group, losing its history, or asking one vendor to make the change for everyone.

Applets offer a possible way to separate those choices. A shared environment can hold the people and the work while smaller tools provide different ways to act on it. The club could change its calendar and keep its invitations, discussions, and members where they are.

> Illustration: In a bundled product, replacing the calendar means moving the invitations, discussions, and members with it. A host that keeps the people and their work lets one tool be replaced while the rest stays.

Whether that gives users more control depends on the host’s boundaries, its data formats, and its willingness to let the work move elsewhere. Those conditions are easier to see in a single, ordinary task.

## Part II: A small tool. A capable environment.

You need a poll for a group decision. The poll needs a question, some options, and somewhere to keep the votes. Building a new account system, a social graph, and a sharing service would be a peculiar amount of work for that task.

Put the poll inside an environment that already knows the group, and the job gets smaller. The environment can supply identity, store the result, and carry updates to the people involved. The poll can concentrate on being a poll.

That is the applet model explored here: **a small, focused program that runs inside a host and uses an explicit contract to ask for services.** The host might be a desktop, a browser workspace, or a messenger. A useful host does more than display the tool. It gives the tool a place to work and sets the limits of its access.

APPLET /ˈæp.lət/

A small application built to do one narrow task — run inside a larger host program rather than launched on its own.

A working definition for this essay. The name has covered several different designs.

> Illustration: Go on, rake it. It comes up again later.

There are two ambitions here. One is to make tools cheaper to build by sharing the foundations. The other is to let people choose and combine tools without surrendering their data to each new interface. An applet can achieve the first while falling short of the second.

## Part III: We’ve been here before.

In the 1990s, OpenDoc proposed documents made from parts, each with its own editor. Java applets brought downloaded programs into web pages. In the following decade, Google Gadgets and OpenSocial offered small applications a container with shared APIs. These were substantial attempts to change the unit of software people used. [\[1\]](https://applet.run/#source-opendoc) [\[2\]](https://applet.run/#source-java) [\[5\]](https://applet.run/#source-opensocial)

They encountered different problems, so “applets failed” is too tidy a history. Oracle’s account of Java’s retreat points to browsers withdrawing plug-in support. A portable program was still dependent on the runtime that let it into the browser. [\[3\]](https://applet.run/#source-java-end)

Component software also asked developers to take on difficult integration work. In a Computer History Museum interview, Bruce Horn, an original Macintosh developer and a friend of one of OpenDoc’s architects, said the system was too hard for developers to engage with, and asked who would pay for a component that disappeared into someone else’s document. [\[4\]](https://applet.run/#source-opendoc-economics)

That is an observer’s retrospective, not a complete history, but it names a problem a sandbox cannot solve: who will build and maintain the parts? [\[4\]](https://applet.run/#source-opendoc-economics)

And a useful host can close. Google announced iGoogle’s retirement in 2012 and shut it down in November 2013, taking with it one of the best-known homes for gadgets. A shared API did not make an individual host permanent. That does not explain every outcome in OpenSocial’s history; it does show the difference between code that can move and an ecosystem people can depend on. [\[6\]](https://applet.run/#source-igoogle)

So the idea faded from the usual story of software without disappearing. It kept developing in projects such as Sandstorm, Matrix widgets, and Webxdc. The lineage below follows related ideas, rather than claiming they all implement one architecture.

A SELECTIVE LINEAGE · 1995—TODAY

### Different names. A familiar ambition.

The strongest parallels share infrastructure, limit authority, or let people compose their own tools.

### OpenDoc (1995) — Precedent

Compose a document from parts, each with its own editor. A spreadsheet and a drawing could live together without belonging to one application.

A strong precedent for composition. It did not provide the confined web runtime proposed here.

[Apple’s Mac OS 8 Revealed, 1996, p. 37 ](https://bitsavers.computerhistory.org/pdf/apple/mac/developer/Copland/Mac_OS_8_Revealed_1996.pdf)

### Java applets (1995) — Precedent

Download a program into a web page and run it inside a restricted environment. The browser became a place to use software, as well as read documents.

Portable code and a sandbox were early ingredients. Dependence on a browser plug-in became a fatal constraint for this delivery model.

[Oracle: What applets can and cannot do ](https://docs.oracle.com/javase/tutorial/deployment/applet/security.html)

### OpenSocial & gadgets (2007) — Precedent

A common API let small social applications use people, activity, and storage services supplied by different containers.

A shared contract can make several hosts possible. OpenSocial was a real cross-site effort; individual hosts still controlled the life of their services.

[Google Developer Podcast: OpenSocial, November 2007 ](https://developers.googleblog.com/google-developer-podcast-episode-eleven-opensocial-with-patrick-chanezon/)

### Sandstorm (2010s →) — Close alignment

A spreadsheet or document runs as an isolated server-side instance called a grain. Sandstorm supplies login and sharing; its Powerbox lets a person choose resources to connect.

One of the clearest examples of moving security and shared infrastructure out of each small app. Its grains run on a server, rather than solely in a browser.

[Sandstorm: What makes a good app? ](https://docs.sandstorm.io/en/latest/developing/handbook/)

### Matrix widgets (2017 →) — Related approach

A room records widget URLs, and clients can embed those web applications beside the conversation. A widget can retain its own server while requesting client capabilities through the widget API.

Shared context and an API make room for integration. Unlike Webxdc, the model does not require blocking direct Internet access; client compatibility and the service behind each URL still matter.

[Matrix: Introducing widgets, August 2017 ](https://matrix.org/blog/2017/08/23/introducing-matrix-widgets/)

### Webxdc (2022 →) — Close alignment

Send a packaged web app into a chat. The messenger isolates each instance and carries its updates; the app interprets those updates and resolves conflicts in its shared state.

The host must deny direct Internet access. Conversation-scoped collaboration works without an app server, while cross-tool composition needs agreements beyond the update API.

[Webxdc project and app directory ](https://webxdc.org/)

### Puter (2020s →) — Related approach

A web desktop and SDK give applications access to shared user services such as files and authentication.

Default app directories and key-value stores separate data. A replacement tool still needs access and a compatible format; a shared service API alone does not establish portability between hosts.

[Puter app documentation ](https://docs.puter.com/Apps/)

### Potluck & Patchwork (2022 →) — Close alignment

Ink & Switch explores documents and environments that people can adapt, combining behavior and shared data to fit the work in front of them.

A close match in purpose: malleable software and user agency. This is a research direction with different mechanisms, rather than the same applet protocol.

[Ink & Switch: Malleable Software research ](https://www.inkandswitch.com/malleable-software/)

### Napplets (Today) — My implementation

Nostr applets: sandboxed web applets that delegate services to a host shell through explicit capability contracts. Each is published as a signed Nostr event, in a format proposed as NIP-5D.

Experimental, and already running in several independent shells. Required capabilities describe what a napplet needs; the shell decides what access to grant. The broader applet model can use other foundations.

[Napplet: implementation, tools, and documentation ](https://napplet.run)

## Part IV: The boundary makes the smallness possible.

The poll from the previous section needs permission to record a vote. It might need to show who voted. Those are separate requests, and the host should be able to allow one while refusing the other. That is the practical value of **clear boundaries.**

A poll should not gain access to every conversation because it runs inside a messenger. A drawing tool should not inherit the keys used to sign your identity. The host needs to know which applet is asking, what it is asking for, and whether that request is allowed.

> Illustration: The poll asks to record a vote and the host allows it. Showing who voted is a separate request, refused here, and the poll gains no access to other conversations. A sandbox limits direct access; a capability contract defines the requests the host may allow.

The applet owns its interface and behavior. The host owns the surrounding authority. Between them is a contract: the services the applet may request, the shape of those requests, and what happens when access is unavailable or refused.

A sandbox is part of this design, but “sandboxed” alone says too little. If the host accepts an unrestricted request, the wall around the applet has not protected the resource behind that request. Scope, consent, and revocation have to survive the trip through the host.

Sandstorm offers a useful comparison. It isolates grains and uses capabilities to connect them. Its documentation is also candid about limits: the platform can enforce whether someone has access to a grain at all, while finer distinctions such as read versus write are left to each app. That is a reminder to distinguish the security model from the protections a particular runtime actually enforces. [\[8\]](https://applet.run/#source-sandstorm-security)

### Fewer places to defend

Moving authority into the host changes who has to get security right. An applet that never holds a password, a signing key, or a direct network connection cannot leak them. The host’s handling of identity, storage, and permissions is written once and used by every tool that runs there. Privacy improves for the same reason: fewer parties ever hold your information.

It also changes how an ecosystem responds to an attack. When someone finds a weakness in the way a host confines its applets, fixing the host protects every applet in it at once, including the ones nobody maintains anymore. Browsers already work this way: a sandbox fix ships in the browser, and the sites inside it do not each need to act.

Host developers can also share what they learn about an attack, because they are defending the same contract. Updating a handful of hosts is less work than updating thousands of separate applications, and it does not depend on every author being reachable.

### A few hosts are too few

The same concentration is the risk. A host that guards everything is worth attacking, and a flaw in it exposes everything it guards. If nearly everyone used one host, its mistakes would reach nearly everyone, and its operator would hold the kind of position this essay sets out to question. A single host recreates the bundle one level down.

So the benefit depends on a diverse set of hosts: independent implementations of the same contract, maintained by different people. Then one flaw rarely affects all of them, and a person can move when their host falls short.

That asks a lot. Each host has to be good at security, and the contract has to be precise enough that an applet behaves the same way in each. The aim is fewer places to defend, each defended well, and never just one.

> Small software becomes practical when its responsibilities have an edge.

## Part V: Where the work lives changes the tool.

Return to that group poll. Its code could run on a shared server, arrive as a file in a conversation, or load from a website inside a room. Each arrangement moves different responsibilities into the host. Looking at those choices tells us more than the label “applet” does.

### Sandstorm: share a working instance

In Sandstorm, creating a spreadsheet creates a grain: an isolated instance of an application with its own data. Another spreadsheet gets another grain. [\[7\]](https://applet.run/#source-sandstorm)

The platform handles login and sharing, and tells the application which permissions a visitor has. The application still has to honor those permissions. A grain can contain a server and its dependencies, so the small unit here is the thing people work on and share; the implementation behind it may be substantial. [\[7\]](https://applet.run/#source-sandstorm)

Connections are explicit, too. Through Sandstorm’s Powerbox, an application can ask for an object implementing a calendar API. The person using it chooses which calendar to connect. That combines permission and composition in one action: choosing the resource grants access to it. It also requires both ends to understand the same API. A capability can connect two programs without making their data interchangeable. [\[16\]](https://applet.run/#source-powerbox)

### Webxdc: carry the tool in the conversation

Webxdc packages HTML, JavaScript, and assets in a ZIP file with an `.xdc` extension. Send the file to a group and participants can open it inside their messenger. [\[17\]](https://applet.run/#source-webxdc-spec)

The host must deny the app direct Internet access and keep its storage separate from other app instances. The same file shared in two separate messages becomes two separate apps, even within one conversation. This gives our poll a natural boundary: the particular message through which it was shared. [\[18\]](https://applet.run/#source-webxdc-runtime)

> Illustration: The same poll.xdc file sent in two messages of one conversation runs as two separate apps, each with its own votes and storage. The messenger carries updates between participants and denies the app direct Internet access.

The app sends votes through [`sendUpdate`](https://webxdc.org/docs/spec/sendUpdate.html) and receives updates through [`setUpdateListener`](https://webxdc.org/docs/spec/setUpdateListener.html). The messenger transports the updates; the app decides how they change its state. It must still handle participants editing concurrently and updates arriving in different orders. Webxdc’s shared-state guide discusses that problem explicitly. Sharing transport removes the need for a poll server, but leaves the poll’s collaboration logic to its author. [\[19\]](https://applet.run/#source-webxdc-state)

### Matrix widgets: bring an existing service into a room

A Matrix widget starts with a URL associated with a room. A web client can embed it in a frame, placing a conference or dashboard beside the conversation. The widget may continue to use its own server. This makes existing web services easier to bring into shared work, while leaving their availability and data handling dependent on those services. [\[9\]](https://applet.run/#source-matrix)

The widget API adds communication with the client and capability requests. Its SDK also warns that widgets are not yet in the Matrix specification, so the library may not work with other implementations. A shared room gives tools context; compatible client behavior and the permissions granted to each widget determine how far that integration can go. Embedding a website does not give it Webxdc’s prohibition on direct Internet access. [\[20\]](https://applet.run/#source-matrix-api)

### Puter: build on a shared desktop

Puter supplies a web desktop and APIs for services including files, authentication, and window controls. Its documented defaults give an app its own directory and key-value store within the user’s account. A small editor can use those services without building a separate account and storage backend. [\[11\]](https://applet.run/#source-puter) [\[21\]](https://applet.run/#source-puter-security)

That convenience raises a separate question about replacing the editor. A private app directory keeps unrelated tools apart, but another editor needs permission and a format it understands before it can continue the same work. Shared infrastructure reduces duplication; shared working material needs an additional agreement. Likewise, an SDK tied to a service does not by itself establish portability between independent hosts.

### Napplets: make the host contract explicit

These choices are also the subject of my own work on [napplets](https://napplet.run), short for Nostr applets. A napplet is a sandboxed web applet that asks its host, called a shell, for everything it needs. The shell supplies storage, relay access, and signing through published contracts. It manages your identity and decides what gets signed, so a napplet never touches a key. [\[13\]](https://applet.run/#source-napplet) [\[14\]](https://applet.run/#source-naps)

A napplet is published once, as a signed Nostr event that names its code by hash and lists the services it requires. A draft addition to Nostr’s specifications, NIP-5D, proposes that format, and any shell that implements it can run the napplet. Hundreds have been published, and napplet.run lists eight hosts that run them today. They include Amethyst, a social client for phones and desktops, along with noStrudel, Grimoire, and Myco. Several are built by other people on their own codebases, which is the start of the host diversity this essay argues for. [\[15\]](https://applet.run/#source-nip5d) [\[27\]](https://applet.run/#source-napplet-shells)

Napplets are also cheap to make. With the shell supplying identity, storage, and delivery, an AI coding tool has little left to build. Most of mine took five or ten minutes and cost between ten cents and a little over a dollar in model usage; the most involved took a day. All of this is experimental, and Nostr is one foundation for the broader model, not the only one.

These systems divide the work at different levels: a grain, a chat instance, a room, a desktop account, or a capability contract. The useful comparison is what the host supplies, what the tool must still do, and what someone can keep when either changes.

## Part VI: Why I built on Nostr.

An applet system could be built on a central service. It would be simpler, but then every new shell would need that service’s permission to take part. I built napplets on Nostr to avoid that, and the choice deserves an explanation that does not assume you already agree.

Nostr is a small protocol with three parts. Your identity is a key pair that you hold, with no account on anyone’s server. Everything you publish is an event signed with that key. Relays are simple servers that store events and hand them to whoever asks. Anyone can run one, and you can use several at once. [\[28\]](https://applet.run/#source-nip01)

By the standards of conventional systems, a good deal is missing. Relays do not synchronize with one another. No relay promises to keep your data, no authority assigns names, and nobody can reset a lost key. Engineers who expect a database to be consistent and an account to be recoverable often stop reading here, and I understand why.

Those omissions are the design. Because every event is signed, it does not matter which relay delivered it: anyone can check who wrote it and that it is intact. So no server has to be trusted, and none has to be in charge. The missing guarantees are what it costs to have no party that can lock the others in.

### Why that suits applets

This essay asks for three things: an identity that hosts share, code and data that can move between hosts, and many hosts. Nostr supplies a version of each. A person’s key is the same in every shell, so no shell needs accounts of its own. A napplet is a signed event that names its code by hash, so a shell can fetch that code from any server and verify it, with no store in between. [\[29\]](https://applet.run/#source-blossom)

Because no one owns the network, a new shell needs nobody’s permission to read the same events as the existing ones. That is why a napplet published once can run in eight hosts.

### What it costs

The costs are real. A key is a single point of failure. Lose it and the identity is gone; leak it and there is no dependable way to recover today. Every identity system has a secret like this, whether a key, a password, or a session token. The rule is the same for all of them: the host guards the secret, and the applet never touches it.

Data lives only where some relay chooses to keep it. Events are public unless they are encrypted, and encryption can still leave traces of who is talking to whom. The specifications are drafts agreed by rough consensus, and they change.

Nostr also gives no help with the hardest problem still ahead in this essay: two tools editing the same document. I think the trade is still right for small tools that should outlive any one host. The applet model does not depend on Nostr in particular. It does depend on what Nostr provides: portable identity, verifiable code, and a network that no one owns.

## Part VII: Trust the host. Doubt the applet.

Every arrangement of software decides whom you have to trust, usually without saying so. An ordinary application asks for all of it: you trust its authors with your account, your data, and whatever the application can reach. Multiply that by every application you use, and the list of people you depend on becomes long and mostly unknown to you.

There are several ways to shorten that list, and each is in use today.

App stores put a reviewer between authors and users. A central party inspects each application and decides what may be installed, which removes some obvious abuses and gives people one name to rely on. It also gives that reviewer control over what may exist. Review cannot keep pace with every update, and an approved application still receives broad access once it is installed.

Open-source and self-hosted software lets you inspect the code yourself, or choose authors whose reputation you know. That works for the few people with the time and skill to do it, and for tools important enough to deserve the effort. It does not scale to a timer someone generated last night.

You can also rely on people you know. A recommendation carries real information, and networks such as Nostr make those relationships visible to software. Knowing that three colleagues use a tool is a good reason to try it, though it says little about what the tool does with access once it has it.

### Put the trust in one place

The model I propose, and the one napplets implement, puts trust in one place and withholds it everywhere else. You choose a host with care, as you would choose a browser or an operating system. Every applet is then untrusted by default: it starts with no access, receives only what it asks for and you allow, and can lose that access at any time.

I think this is the best arrangement for everyone involved. A person makes one careful decision in place of hundreds of careless ones, and can try an unfamiliar tool without betting their data on it.

An author does not need a reputation, a review, or a company before anyone will run their work, because running it risks so little. A stranger’s applet and a famous one start from the same position. A host, for its part, competes on the thing people most need from it: being worth trusting.

Distrust here is a starting position and carries no judgment about authors. Most applets will be written in good faith, and many will be written badly. A host that assumes nothing about them handles both the same way.

### What this model still asks

Trusting the host is a large request. The host sees what its applets see and holds what they are denied. It has to earn that trust in ways a person can check, or that others can check for them: open code, independent audits, a record of fixing problems promptly.

The trust also has to be revocable. If leaving a host means losing your work, you are no longer trusting it by choice. Diversity among hosts matters here for the same reason it matters for security.

Doubting the applet has limits too. A host can stop a poll from reading your messages. It cannot stop the poll from miscounting, or from misusing the one thing you did grant. An applet draws its own interface and can ask misleading questions inside it. And permission requests lose their meaning when people are asked too often to care.

So the other models stay useful beside this one. A host can confine every applet and still show you who wrote it, who else uses it, and whether anyone has reviewed it.

## Part VIII: Now the parts are easier to make.

Those questions matter more as the tools themselves become cheaper. Generating a focused interface is an increasingly ordinary use of AI coding tools. A timer for a particular workout, a chart for one dataset, or a small editor for a recurring task can be worth making for a handful of people. Those tools still need somewhere to run.

> Illustration: Useful to a few people, and nobody’s business model. Where is it running?

My argument, and the reason I build Nostr applets, is that applets are an obvious architectural candidate for this moment. If a host supplies common services through a narrow contract, an AI-generated tool has a smaller job. It can use storage without inventing a storage service, and request an action without holding the credentials that authorize it.

AI lowers the cost of making a tool  A host lowers the cost of giving it a home

Still to pay:

-   Reviewing code
-   Updating dependencies
-   Maintaining the host
-   Supporting people

That changes part of the economics that made tiny components awkward. A tool may be useful enough to build even when it could never support a company. Those remaining costs do not disappear once the tool exists; they pass to whoever adopts it, often the same few people who asked for it, or to whoever runs the host.

It also sharpens the need for boundaries. Cheap code will include mistakes. A confined tool with narrow permissions can limit what those mistakes reach; the arrangement does not make generated code trustworthy. Saving data and taking actions still need checks.

AI makes the applet model worth another serious attempt. It cannot, by itself, give us compatible hosts, durable data formats, or a reason to trust the runtime.

## Part IX: Who pays for a small tool?

Cheaper to make is not the same as worth maintaining. Earlier, Bruce Horn asked who would pay for a photo editor that lived inside someone else’s document. The component era never answered him, and any revival of small software has to.

Start with why applications charge the way they do. A subscription pays for more than the feature you wanted. It covers servers, accounts, storage, support, and the cost of finding customers, and it works best when leaving is hard. The business model and the bundle reinforce each other: the more of your work a product holds, the more reliably you keep paying.

An applet has a different cost structure. The host already supplies identity, storage, and delivery, so an author’s ongoing costs can be close to their own time. That changes which kinds of payment make sense.

### Value for value

One possibility is to pay for tools the way many people already pay for writing, music, and video: voluntarily, in proportion to what the work is worth to them. Patreon works on this basis. Nobody is required to pay, and people do.

Imagine applying the same model to the tools you use. A group that relies on a poll every week sends its author a small amount, because the poll is useful and paying is easy.

Ease is the part a host can supply. If payment is a service the host offers, like storage, an applet can ask for support without building a checkout or holding anyone’s card details. In the Nostr ecosystem, zaps already let one person send another a small Lightning payment attached to a specific piece of work. An applet could receive them the way a post does. [\[26\]](https://applet.run/#source-zaps)

Small payments suit small tools. A subscription asks for a recurring commitment that a timer or a chart cannot justify. A few cents when a tool proves useful, or a larger amount once from a group that depends on it, is closer to what such a tool is worth to the people using it.

### What changes in the market

When a replacement can read the same work, switching costs little, so a tool has to keep its users by being better. Authors lose the protection of lock-in. They gain the ability to reach users without rebuilding a platform first.

A single person can then compete on one well-made piece. I expect that to favor specialists, and to move the price of ordinary tools toward what they cost to maintain.

The valuable positions change as well. If applets are cheap and replaceable, what is scarce is the host, the data formats, and the directory where people find tools. A host that takes a share of every payment, or decides which applets appear, has rebuilt the app store.

This is another reason to want many hosts and open contracts. An author who can be reached through several hosts cannot be taxed heavily by any one of them.

### What I do not know

I do not know whether voluntary payment can support the people who make these tools. Most people who benefit from a free tool will not pay for it, and I cannot show that small payments add up to a living for more than a few authors.

Hosts are the harder case. Infrastructure that everyone uses and nobody notices is difficult to fund by goodwill, and a host is exactly that.

So I hold this part loosely. Subscriptions, one-time purchases, employer sponsorship, and grants will all have a place. Some applets will be paid for the way most small software always has been: by someone who needed it and shared it.

## Part X: A new tool should fit the life you already have.

Suppose the poll works, but your group needs ranked choices. Installing another applet might solve that. It might also mean starting a new poll, inviting everyone again, and losing the earlier votes. Small tools can reproduce the same friction as large applications.

Malleable software asks for something further: people should be able to adapt the software they use as their needs emerge. Ink & Switch describes a gradual path from using a tool to changing it, with shared data and tools that compose. The ability to generate another isolated application only addresses part of that ambition. [\[12\]](https://applet.run/#source-malleable)

### Smallness and malleability are different properties

The applet model describes a program’s relationship with its host: where it runs, which services it requests, and how its authority is bounded. Malleability describes a person’s relationship with their software: what they can change, how much effort a change takes, and whether their work survives it.

A locked poll inside a good sandbox is still an applet. A spreadsheet whose owner can add formulas and reshape a budget is malleable without being a hosted applet in this essay’s sense.

Open source can make changes legally and technically possible while leaving them difficult in practice. If a minor adjustment requires setting up a development environment, understanding the whole program, and redeploying it, most people will continue to adapt themselves to the tool.

Applets and malleable software overlap when a host makes small tools easy to replace, adapt, and combine around work that persists. Their small scope can make a change easier to understand. Their contracts can give a replacement something stable to connect to. Those are useful foundations, but the environment still has to make modification available to the person doing the work.

### Two prototypes make the distinction concrete

In Potluck, a recipe can begin as ordinary text. Searches extract quantities, formulas compute with them, and annotations put controls and results back into the document. Someone can grow a note into a recipe scaler without first deciding to build an application. [\[22\]](https://applet.run/#source-potluck)

The same timer could count down a pie in the oven or a plank in a workout, and a search written by one person can be reused in another’s documents, because the tools operate on a shared text substrate. [\[22\]](https://applet.run/#source-potluck)

The prototype also exposes a cost of that freedom. A search written for one person’s notation may miss another’s, and changing a reused search can break documents elsewhere. A malleable environment needs ways to understand and manage the consequences of an edit. Packaging each behavior as an applet would not settle that problem.

Patchwork approaches the problem through a shared environment for tools and data. In Ink & Switch’s published example, an author adds a section word counter beside a Markdown editor. Both work with the same existing document, and the counter updates as the writing changes. The new tool can be shared with a collaborator through a link. [\[12\]](https://applet.run/#source-malleable)

Patchwork stores code and data in Automerge documents and explores history and branching for both. These are research mechanisms for making adaptation part of ongoing work. [\[12\]](https://applet.run/#source-malleable) [\[23\]](https://applet.run/#source-patchwork)

Napplets and Patchwork make a useful pair, because they start from opposite ends. Patchwork begins with shared work: tools and data live in the same documents, so a new tool can open what an existing one made. Napplets begin with the boundary: each one is sandboxed and receives only what its shell grants.

Patchwork is ahead on malleability. Napplets can message one another and hand off tasks, but they have no shared model yet for a document that two of them edit. Napplets are ahead on running code from strangers, which is the question any system faces once tools are passed around by link. I think each has what the other needs.

### Give the work a life beyond one tool

An applet host could provide a similar setting. Imagine a group maintaining an event plan. A list editor changes tasks; a calendar shows their dates; a small chart shows the remaining work. Each receives access to the same plan, with the chart granted only read access.

Adding the chart should open a new view of existing work without asking everyone to move to a new service. This is a design proposal, not a claim that the implementations above already interoperate.

> Illustration: A design proposal: a list, a calendar, and a chart each open the same event plan instead of keeping their own copies. The list and calendar may edit it; the chart is granted read access only, and editing dates would require a separate decision.

That requires more than a common storage API. The tools must agree on what a task is, how it is identified, and what happens when two people change it.

The host needs a way to hand a selected plan to a tool, limit access to that plan, and carry changes back to other views. Versions and migrations matter when a later tool adds a field an earlier one does not understand.

> Illustration: A conceptual demonstration. Portability requires hosts to implement the same contract and support the capabilities a tool needs.

Figure 5 shows portability: the same program moving between compatible hosts. Malleability adds the direction of change in Figure 4: different or modified tools working with material you already have. Moving a poll’s code does not automatically move its votes, collaborators, or history. Replacing its editor does not automatically preserve them either. Those continuities have to be designed into the data and the host.

The host could also offer a short path from using a tool to changing it: adjust a label, expose a formula, duplicate a view, then edit behavior when needed. An AI assistant could help with that last step. Previewing a change on a copy, keeping the previous version, and choosing when to share it would let someone experiment without imposing every experiment on the group.

### Composition needs permission as well as shared meaning

There is a tension here. Isolation protects one tool’s data from another; composition requires deliberately opening a connection. Sandstorm’s resource picker shows one way to make that connection understandable. For the event plan, choosing “show this plan in a chart” could grant that chart read access to one document. A later request to edit dates should require a separate decision.

Changing the tool also changes what code holds that access. A fork should not silently gain new permissions, and a new version should not silently widen an existing grant. Meanwhile, the person using the system needs coherent selection, undo, and navigation across tools. A screen full of independent frames can be technically composable and still be exhausting to use.

A host can become a gatekeeper, too. People need a way to export their work, understand the formats, and continue elsewhere. The practical test reaches beyond installing a new tool: can someone change how the work is done while keeping the work itself?

## Part XI: Build a tool. Leave room for the next one.

There is plenty here to work on without choosing a single ecosystem. A messenger can make it easier to share a focused tool. A host can make resource permissions understandable. An editor can publish a data format that another editor can use. An author can make a small behavior easy to inspect and change.

A useful first experiment is the poll from earlier. Put it where the group already works. Let the host handle identity and delivery. Give the poll access only to what it needs. Then try adding a results view written by someone else. See whether it can read the existing votes, whether people understand its access, and whether removing it leaves the poll intact.

That second tool is revealing. If it needs a fresh account, a copied database, or a special integration written for just this pair of programs, the shared environment still has work to do. If it can join the existing work through a clear contract, the applet model has become useful beyond the first applet.

The same test applies to the club at the start of this essay: could it try a different calendar without moving its invitations, discussions, and members?

Make the tool small. Leave the work open to change.

## Afterword

I have spent about a year and a half building [napplets](https://napplet.run): Nostr applets, the shells that run them, and the contracts between them. This essay is the argument behind that work.

I wrote it because the work kept sending me back to older projects. OpenDoc, Java applets, and OpenSocial each got part of this right, and each stalled for a reason worth understanding before anyone tries again.

I am publishing it now because of the security news. Severe advisories and breaches keep tracing back to the same arrangement: every application guarding its own copy of everything. Applets do not fix that alone. They are the most practical way I know to have fewer places to defend.

Generated tools make the question more pressing. Software that takes minutes and cents to make will get made in quantity, and all of it needs somewhere safe to run.

The protocol

-   [napplet/naps](https://github.com/napplet/naps) Where the work on the protocol happens.
-   [napplet.run/protocol](https://napplet.run/protocol) The protocol, laid out for browsing.

The tools

-   [kehto/web](https://github.com/kehto/web) Packages for composing shells.
-   [napplet/web](https://github.com/napplet/web) The napplet SDK.
-   [Paja](https://kehto.github.io/web/paja) A developer web shell for the NIP-5D projection of the napplet protocol.

### Two things you passed were real

The tray of sand in Part II and the table in Part VIII were not illustrations. They are napplets: programs published as signed events on Nostr by their authors, stored on Blossom servers, and loaded by this page.

A small shell checked each one against the hash in its signed manifest and ran it in a sandbox. The sand would have liked storage, sound, and your identity. It was given none of them, and it works anyway. The table asked for storage and a theme, which is why it took on the colors of this page. Neither could read this essay, reach the network, or see anything else in your browser.

The game below is a third. This shell offers it two things: the theme, and the hotkeys it asks to bind while you are playing. It holds no signing keys at all.

-    Theme
-    Hotkeys
-    Signing keys
-    Relays
-    Storage
-    Network

The shell is built with [Kehto](https://github.com/kehto/web). If the game does not appear, your browser blocked it or JavaScript is off; nothing else on this page depends on it.

NappletByWhereAsked forGivenArtifact

[Safe Sand · Material studies](https://njump.me/naddr1qvzqqqyf8ypzqw49s9e88sajl985jxzquprj7pyapugqp83rme3sqctxhj5mxm4rqythwumn8ghj7un9d3shjtnwv9c8qmr9wsh8xmmeqy28wumn8ghj7un9d3shjtnyv9kh2uewd9hsz9thwden5te0wfjkccte9ejxjar5duh8qatzqyt8wumn8ghj7un9d3shjtnswf5k6ctv9ehx2aqpz4mhxue69uhhyetvv9ujumn0wd68ytnrdaksqrtw95mnvwpjv56n2cfh8ycsah40rq) [Schlaus Kwab](https://njump.me/wavefunc.live) Part II storage (optional), media (optional), identity (optional) nothing `f111dcd223…`

[Periodic table](https://njump.me/naddr1qvzqqqyf8ypzp925xvyklj3z8u56ml2j5rpduparc5htdq8eknv7kmzxmyvkc4qwqythwumn8ghj7un9d3shjtnwv9c8qmr9wsh8xmmeqy28wumn8ghj7un9d3shjtnyv9kh2uewd9hsz9thwden5te0wfjkccte9ejxjar5duh8qatzqyt8wumn8ghj7un9d3shjtnswf5k6ctv9ehx2aqpz4mhxue69uhhyetvv9ujumn0wd68ytnrdaksqrtsv4exjmmyd93j6arpvfkqvy4nfh) [Cocktus 🌵](https://njump.me/cocktus@pubcastr.puhcho.me) Part VIII storage, theme storage, theme `0d441bdbd3…`

[Dodgy Duck](https://njump.me/naddr1qvzqqqyf8ypzpem34u9stj8ftlxldl4n2qz5f5hmrnxns3uga86fpwe7u28ga4n0qythwumn8ghj7un9d3shjtnwv9c8qmr9wsh8xmmeqy28wumn8ghj7un9d3shjtnyv9kh2uewd9hsz9thwden5te0wfjkccte9ejxjar5duh8qatzqyt8wumn8ghj7un9d3shjtnswf5k6ctv9ehx2aqpz4mhxue69uhhyetvv9ujumn0wd68ytnrdaksqztsw4jxgmr9dphhq50x76m) [sandwich](https://njump.me/sandwich.farm) Below intent (optional) theme, keys `e9800fc8f0…`

Each napplet's name opens its signed manifest, and its author's name opens their profile. The artifact column is the start of the SHA-256 this page verified before running anything.

About the author

## sandwich

I work on open-source projects that promote individual sovereignty. The current one is napplets: Nostr applets, the shells that run them, and the contracts between them.

## Follow for Chapter Two.

That was Chapter One, and it will not be the last. If you are listening, come back to the page now: the ways to follow me are on your screen. Choose one, and you will know the day Chapter Two is out.

-   [sandwich.farm My site. ](https://sandwich.farm)
-   [Nostr Where napplets live, and where I post first. ](https://nostr.at/sandwich.farm)
-   [GitHub The code, as it is written. ](https://github.com/dskvr/)
-   [X Short updates. ](https://x.com/sandwichdotfarm)
-   [Mastodon The same, on the Fediverse. ](https://mastodon.social/@sandwichfarm)
-   [Bluesky The same, on Bluesky. ](https://bsky.app/profile/sandwichfarm.bsky.social)
-   [Substack Essays, as they are published. ](https://sandwichest.substack.com)
-   Email One message when the next essay is published. Nothing else. 
    

### Support the work.

-   [GitHub Sponsors Sponsor the open-source work. ](https://github.com/sponsors/sandwichfarm)
-   [Patreon Monthly support. ](https://www.patreon.com/sandwichfarm)
-   [Ko-fi A one-time tip. ](https://ko-fi.com/sandwichfarm)
-   [Buy Me a Coffee The same, on Buy Me a Coffee. ](https://buymeacoffee.com/sandwichfarm)
-   
    

## Questions that follow.

### How is an applet different from a small web app?

In this essay’s model, an applet asks its host for services through an explicit contract. A small web app may still manage its own accounts, storage, and network access. The distinction is where those responsibilities and permissions live.

### Does a sandbox make AI-generated code safe?

A sandbox can restrict direct access, but the host must also check every privileged request. Narrow permissions can limit the reach of a mistake. They do not establish that the code or the host is trustworthy.

### Are applets automatically malleable or portable?

No. Portability lets the same tool run in compatible hosts. Malleability lets people change how they work with their existing material. A locked poll can be an applet; a spreadsheet people reshape with formulas can be malleable without being a hosted applet. Combining the two requires editable tools, compatible data formats, and continuity of data and permissions.

### How can applets support malleable software?

A host can give several focused tools controlled access to the same document, so someone can add a chart or replace an editor while keeping their work. It must also make changes practical: offer ways to inspect or edit behavior, preview a version, recover earlier work, and share a change deliberately. Shared storage alone does not supply those abilities.

## Follow the threads.

This is a selective history. The comparisons and architectural argument are mine; the links below document the projects and events they draw on.

1.  [Apple — Mac OS 8 Revealed (1996) ](https://bitsavers.computerhistory.org/pdf/apple/mac/developer/Copland/Mac_OS_8_Revealed_1996.pdf) OpenDoc’s document parts and part editors, p. 37.
2.  [Oracle — What applets can and cannot do ](https://docs.oracle.com/javase/tutorial/deployment/applet/security.html) The original sandbox and its limits.
3.  [Oracle — Java Client Roadmap (2018) ](https://www.oracle.com/technetwork/java/javase/javaclientroadmapupdate2018mar-4414431.pdf) The withdrawal of browser plug-ins and Java’s deployment roadmap.
4.  [Computer History Museum — Bruce Horn oral history ](https://archive.computerhistory.org/resources/access/text/2023/12/102792733-05-01-acc.pdf) Horn, a friend of OpenDoc architect Kurt Piersol, on developer engagement and the economics of component software, p. 23. An outside retrospective, not a complete causal history.
5.  [Google Developer Podcast — OpenSocial with Patrick Chanezon (2007) ](https://developers.googleblog.com/google-developer-podcast-episode-eleven-opensocial-with-patrick-chanezon/) People, persistence, activities, and the container model.
6.  [Google — Spring cleaning in summer (2012) ](https://blog.google/company-news/inside-google/company-announcements/spring-cleaning-in-summer/) The announcement that iGoogle would close on November 1, 2013.
7.  [Sandstorm — What makes a good app? ](https://docs.sandstorm.io/en/latest/developing/handbook/) Small, single-purpose apps and platform-provided security.
8.  [Sandstorm — Security practices ](https://docs.sandstorm.io/en/latest/using/security-practices/) Grain isolation, capability sharing, and limits such as binary access enforcement.
9.  [Matrix — Introducing widgets (2017) ](https://matrix.org/blog/2017/08/23/introducing-matrix-widgets/) Web apps embedded in shared rooms.
10.  [Delta Chat — Webxdc milestone (2024) ](https://delta.chat/en/2024-02-15-webxdc-m3) Apps first released in 2022, compatible messengers, and distribution as files.
11.  [Puter — App documentation ](https://docs.puter.com/Apps/) Applications using shared platform services.
12.  [Ink & Switch — Malleable software (2025) ](https://www.inkandswitch.com/essay/malleable-software/) Shared data, composed tools, and why AI code generation alone is insufficient.
13.  [Napplet — SDK and tooling ](https://github.com/napplet/web) Experimental SDK, web shell, and tooling.
14.  [NAPs — The capability seam ](https://github.com/napplet/naps) Explicit runtime contracts, separate from transport and distribution.
15.  [NIP-5D — Web napplet proposal ](https://github.com/nostr-protocol/nips/pull/2303) Experimental Nostr manifest and sandbox proposal.
16.  [Sandstorm — Connecting grains through the Powerbox ](https://docs.sandstorm.io/en/latest/developing/powerbox/) User-selected resources and capability connections between isolated instances.
17.  [Webxdc — Specification ](https://webxdc.org/docs/spec/) The packaged file format and JavaScript host API.
18.  [Webxdc — Messenger implementation requirements ](https://webxdc.org/docs/spec/messenger.html) Per-message instances, isolated storage, and the prohibition on direct Internet access.
19.  [Webxdc — Shared application state ](https://webxdc.org/docs/shared_state/index.html) Update ordering and why apps need their own conflict-handling strategy.
20.  [Matrix — Widget API SDK ](https://github.com/matrix-org/matrix-widget-api) Capability requests and the SDK’s warning about specification and implementation compatibility.
21.  [Puter — Security and permissions ](https://docs.puter.com/security/) Authentication and default app directories and key-value stores.
22.  [Ink & Switch — Potluck (2022) ](https://www.inkandswitch.com/potluck/) Searches, formulas, and annotations that turn text into personal tools; reuse and its limits.
23.  [Ink & Switch — Patchwork: Version control for everything ](https://www.inkandswitch.com/patchwork/notebook/2024-version-control/) Research prototypes for history, branching, and collaboration on a shared Automerge foundation.
24.  [CMA & Ofcom — Online safety and competition in digital markets (2022) ](https://www.gov.uk/government/publications/cma-ofcom-joint-statement-on-online-safety-and-competition/online-safety-and-competition-in-digital-markets-a-joint-statement-between-the-cma-and-ofcom) Network effects, platform power, and the consequences of barriers to switching. The community examples in the introduction are illustrative.
25.  [Ink & Switch — Local-first software (2019) ](https://www.inkandswitch.com/essay/local-first/) Collaboration, dependence on cloud services, and retaining ownership and control of work.
26.  [Nostr — NIP-57: Lightning Zaps ](https://github.com/nostr-protocol/nips/blob/master/57.md) Zap requests and receipts: small Lightning payments attached to a person or a piece of work. The payment models discussed in the essay are proposals.
27.  [Napplet — Find your setting ](https://napplet.run) Eight hosts that run napplets, as listed in November 2026: Amethyst, Myco, noStrudel, Grimoire, napplet.soy, Paja, nostrapps, and an Applesauce example loader. Capabilities vary by shell and version.
28.  [Nostr — NIP-01: Basic protocol flow ](https://github.com/nostr-protocol/nips/blob/master/01.md) Keys as identity, signed events, and relays that store and forward them.
29.  [Blossom — Blobs stored simply on mediaservers ](https://github.com/hzrd149/blossom) Files addressed by their SHA-256 hash on ordinary HTTP servers, so any copy can be verified.
