Skip to content

Package layers ​

This view stacks packages by responsibility. Higher layers depend on lower ones.

Package layers from apps through hosts, party API, and foundation, with durable storage outside the process boundary.

What this shows ​

LayerPackagesRole
Appsstudio, console, site, partiesWhat people open
Hostsruntime, adapter-celld, cli, controlProcess and fleet plumbing
Party APIserver, y, client, authPortable room and client code
Foundationcontracts, config, uiShared rules and tokens
Durable storageSQLite, DO storage, object storePersistence outside the app boundary

Design rules ​

  • contracts freeze URL shape, tag limits, and error codes so hosts cannot drift.
  • server stays isomorphic: the same class runs under Node or celld.
  • runtime is the Node stand-in for Durable Objects. It is sticky in-process rooms, not a Redis cluster.
  • Storage is dashed because it sits outside the TypeScript package graph.

What to do next ​

PartyKit-compatible rooms on infrastructure you run.