# inlay > A prototype of vendor-managed packages inside customer-owned Durable Objects: > a publisher writes a package (a class and its schema), each host installs it > as an isolated instance in its own object, and records carry their owner and > origin wherever a copy is held. Runs on Cloudflare Workers. The organisations in the demo are invented, and so is all the data. ## The model - Publisher: writes and versions a package. In the demo, the Altamere Alliance. - Host: owns an object and decides what runs in it and when it is upgraded. In the demo, Carewing (patient transport) and Marshlight (conservation flights). - Package: a class and its schema. Code only. - Instance: a package running for one host, with storage only it can reach. - Record: a row in an instance's storage, carrying an owner and an origin. - Link: a credentialed connection between instances of the same package. Rules: the host owns the object; the publisher owns the package; instances are isolated and reached only through methods; the owner of a record is its only writer and copies elsewhere are read-only; where a record is held is the package's business; a package's methods only grow. ## The demo package, aviation-core - Airports are held at the hub. A member asks its own instance, which asks the hub. - Pilots are owned by the member that added them. A member may share a pilot: the hub then holds a labelled, read-only copy that other members can see. Withdrawing removes the hub's copy; the original stays with its owner. - Missions, riders and partners are held by the member that flies them. - Version 2 adds ratings to pilots. Each host upgrades its own instance when it chooses; v1 and v2 instances keep working with the hub and with each other. Each host keeps what is specific to it in its own tables, keyed to the package's records by id: Carewing's transport requests (mobility, appointment), Marshlight's flight plans (purpose, region) and crew affiliations. ## API A "world" is one isolated set of the three organisations. Pick any id of 6 to 40 characters (a-z, 0-9, -). - POST /api/w//setup : create the hub, its airports and both members. - GET /api/w//state : everything each organisation holds. - POST /api/w/// : act as an organisation. Body is a JSON array of arguments. org is alliance, carewing or marshlight. - GET /api/meta : the methods each organisation exposes. Methods for carewing and marshlight: addPilot, updatePilot, sharePilot, withdrawPilot, findPilots, airports, coreInfo, upgradeCore, tryReadCoreTables. Carewing adds requestTransport and transports; Marshlight adds planFlight and flights. The alliance exposes info, findPilots, airports, addAirport, upgrade. ## Limits of this prototype - Each instance is its own Durable Object named for its host. Cloudflare's Durable Object Facets would place the instance inside the host's object and let each host load its own version of the package's code; here a version is a setting on the instance. - Everything runs in one Worker and one Cloudflare account, so a host does not physically hold its object, and the credential on a link is a shared secret. - At most 200 rows per table per object.