yaks.app

Access, Publishing and Installing

← Documentation

This page covers two subjects. The first is who may read and write one app: its access setting and its guest list. The second is how an app becomes a plugin that anybody can install a copy of: app_publish, app_install, app_update, what a copy shares, and what an update does to the data people already saved.

Building an installable app

Start from the yaks app standard. In the connector, use guide with page: 'culture'.

Build each new app so a copy can run in another space with that space's own data. Use the person's request, existing app and supplied data to decide what to build and show. Keep their records and settings in rows in the app's store. Read names of people, organizations and places from those rows whenever a page or command needs them. Use the current app's store and relative URLs for its pages and API, so a copy works at its own address. Follow Live data and collaboration for pages that use the store. For work shared by several people or agents, use the shared work queue and keep all collaboration state in the app’s graph so another actor can resume it.

Keep interface text such as headings, labels and instructions editable in copy.json. Write personal records, names and space-specific settings to the app's store with graph_apply. Keep them out of shipped files, including copy.json and seed files. Every installed copy gets the shipped files and runs their seed in its own store, so use a seed for defaults or sample rows suitable for every installer.

Make the first screen usable with an empty store or only the shipped seed. Give the installer a way to add or import their own data and set any names the app displays. Publish only at the owner's request. Before publishing, check that the app works at another address with its own store. After app_publish, people can install from Make your own copy on the listing or call app_install.

Access settings

Every app has one of three access settings. app_new(access:) sets it when the app is made, app_set(access:) changes it later, and both report what it means in the person's own terms, so you can repeat it back to them.

When someone explicitly asks to change an app's access and has permission to do so, call app_set as soon as the app and access setting are clear. Use the app's slug or address to identify it, since titles can be shared. If you see a concern about the content, give it as brief advice alongside the result. An app's private access and review labels alone tell you nothing about whether its content is already public. The access change applies to the existing app and takes effect without a deployment.

public — the default. Anyone with the link reads the app and its data. Only members write. A stranger's write is refused 401 with not_a_writer and a signIn address that comes back to the page they were on; a signed-in viewer's write is refused 403, because signing in would not change the answer; only the owner can grant write access.

open — anyone with the link can also write, signed in or not. Use it for a vote page, a guest book or a signup sheet. A visitor (anyone the app lets write who is not its owner or an editor) can add rows, and can change or delete only the rows they wrote; a write to anybody else's row is refused. The owner and editors can change any row. So in a shared list that visitors tick off together, each tick is a row of its own, written by the visitor who ticked it, rather than an edit to somebody else's item.

A visitor cannot write three of the platform's components under any access setting: product is written only by the owner and editors, an order's properties only by the platform (Payments), and deliver, the request to send an email, only by the owner and editors (Email). A component you declare in vocab.json can set the same kind of limit: "floor": "person" accepts writes only from someone signed in, "floor": "editor" only from the owner and editors, and "pace": "1s" accepts one write per second from each writer (Components and vocab.json, "Write permissions and rate limits: floor and pace"). The same floor in the manifest's blob says who may upload a file (Files and Uploads, "Upload and read permissions").

An open app does not record who wrote a visitor's rows. A visitor who never signed in has no identity, so their rows carry no created.by, and a row without created.by belongs to no visitor, so no visitor can change it later. If the page needs to show who wrote what, it has to ask for a name on the page and save it in its own row.

let who = await me()
if (!who.writes) {
  show(who.signIn ? `<a href="${who.signIn}">Sign in to post</a>`
     : who.invited ? 'Accept the invitation in your email, then come back.'
     : 'Only members of this app can post.')
} else if (!who.person) show('<input name="who" placeholder="Your name">')

Call me() when the page loads, not after a write is refused; that is what me() is for.

private — only members can read or write. The page itself is visible only to members: a signed-out person who requests it is redirected (303) to the login page, with that page as the return address, and a signed-in person who is not a member of the space gets the same "Nothing here yet." page as a wrong address, so the answer does not reveal whether the app exists. The app's /api/ endpoints answer not_a_reader rather than a not-found answer.

Two things are served before that redirect. A file the app published is served to anyone at its path; that is how a private app puts a page on the public web (Files and Uploads, "Public files: publish"). And the app's own worker.js runs before the redirect, so in a private app with a worker, the worker's code decides who gets in. Use it to write an access rule finer than the three settings, such as an invitation code that opens one household's row and no other. See env.APP in Backend Code.

A private app that is published (app_publish) answers strangers differently; see "A stranger at a private published app" below.

Sharing an app does not have to share what each person writes in it. A component you declare with personal makes each person's rows readable only by that person, and the owner and editors cannot read them either: Components and vocab.json, "Private per-person rows: personal".

One rule applies under all three settings: only a member can write an app's files, whatever the app lets its visitors save into its store. An open app accepts a visitor's rows, never a visitor's deploy.

Inviting people: member_add and member_remove

member_add(email, app?, name?, note?, role?, space?)
member_remove(email, app?, space?)

Only the space owner may invite; an editor can write the app's data and its files but cannot invite anyone.

role is editor (the default: reads and writes), viewer (reads only), or owner (may also invite). Inviting an address that is already a member changes their role, and the answer reports what it was before.

An invitation is pending until the invited person accepts it by clicking the link in the invitation email while signed in with the address it was sent to. If they open that link before signing in, the page shows what the email said: who invited them to which app, and the address to sign in with. Until they accept, they have no access to the space: it is not in their listing, a bare app name never resolves to it, and their agent is told nothing about it. If they sign in with that address and open the app, they are told their invitation is waiting in the email, where anyone else would get "Nothing here yet." or a refusal; on a public app, me() returns invited: true to the page, so it can tell them before they type. Calling member_add again for them reports that they have not accepted yet and sends another email. member_remove withdraws a pending invitation the same way it removes a member.

In each space the caller owns, app_list lists every invitation not yet accepted, with the date its latest email was sent, and counts everyone else. When someone says they cannot get in, read this first. app_list(app) names everyone who can open that app, and app_list(people: true) names the members and each app's guests in every space the caller owns. The owner sees them all on the People page of their dashboard (yaks.app/manage/people), where a waiting invitation has a button that sends its email again.

Inviting to one app or to the whole space

The app argument decides what the invited person gets access to:

With app, they become a guest of that one app. They open its page and read and write its data exactly as a member does, and they have no access to the rest of the space: its private apps answer them as a wrong address does, and its public apps show them what anyone with the link sees. Use this for a player joining one game, a household sharing one list, or a client seeing one project. A guest is not on the space's member list at all, so they have no space to list and nothing else of yours to browse.

member_add(email: 'player@example.com', app: 'idler-rpg', role: 'editor')
member_remove(email: 'player@example.com', app: 'idler-rpg')

Without app, they become a member of the whole space, with access to every app in it, including every app you make later. That makes them a collaborator, not a guest.

A guest never gets two things, whatever role the invitation gave them. The first is the app's files: only a member can write an app's files, so an app accepts a guest's rows and never a guest's deploy. The second is access for their agent: a guest uses the app's pages, and their connector does not list your apps.

Inviting an existing space member to one app is refused, rather than silently reducing their access: remove their space membership with member_remove first, and then the invitation is for that one app.

The three roles come from the space's member list, and a guest's grant uses the same three. The role that me() returns is the caller's role on the app they are looking at: their role in the space if they are a member, otherwise their grant on that app. Inside an app's own store, member is something else: it has two roles, owner and member, and records whether someone belongs. Write both with member_add, never by hand.

The app argument also decides the link in the invitation email. With app, it links to that app; without it, it links to the space's own address, which shows the space's front page if it has one, and otherwise a list of the apps the person may open.

name is the invited person's display name: apps show it beside what they write, so nobody sees their email address. Pass it whenever the person says who they are inviting. Without it, the display name is the part of their address before the @ (dana from dana@example.com) until they change it themselves under Settings at yaks.app/manage/settings. It never overwrites a name someone has already chosen.

note is the inviter's own message, shown at the top of the email, quoted and attributed to them so nobody reads it as a message from the platform. Keep it to a line or two: the limit is 500 characters, and a longer note is refused rather than sent cut off in somebody's name. Read it back to the person before you send it, because it is sent in their name.

The email's subject is always "You have an invitation on yaks.app". The body names who invited them and to what, and carries the accept link. Clicking it while signed in with that address accepts the invitation and opens the page it names. Anyone else gets one Accept button, which signs them in with that address (making their account if they are new) and opens the page, with no sign-in code: the letter only reaches that address, so its link proves it. Somebody signed in as another account is asked which to use. The link signs in once, for seven days; after that it asks for a sign-in code, and calling member_add again sends a fresh one. There is nothing to install and no account to create first.

The accept link is sent only to the invited address, so the tool's answer never includes it. If the email cannot be sent, the invitation still stands, and calling member_add again sends it.

Invitation emails never count against the space's monthly email ceiling, so a space can invite as many people as it likes; one person may send 50 invitations an hour. Changing the role of somebody who has already accepted sends no email and counts against nothing.

member_remove refuses to remove the last owner, because a space with nobody to decide who belongs could never be opened again. Removing someone leaves their sign-in working: they lose access to this space, not to the platform. member_remove(email, app) removes access to that one app and leaves the rest.

Inviting a friend to yaks.app

Inviting someone into a space or an app is a seat, not a referral. To bring a friend to yaks.app itself, each person has their own invite at https://yaks.app/manage/account/invite: a QR code that opens a text or an email to yaks.app's sign-up address with their invite code already written in. A friend who signs up by sending it gets their own free space with $20 of building credit, like anyone signing up free.

Each friend who signs up through that invite and then builds their first app gives the inviter's own space one more free month of the Plus plan. Months stack, one per friend. On a space already paying for a subscription, the next charge moves a month later instead. The invite page counts how many people have signed up with it and how many built an app.

Letting the people an app lists join it

An app whose own data already lists its people, such as a church directory with every member's email address and phone number, can let them in without an invitation each. Its vocab.json names the properties that hold those addresses and numbers, optionally which rows count, and optionally an email domain, under join:

{
  "join": {
    "emails": ["individual.email", "household.email"],
    "phones": ["phone.number"],
    "where": ".individual.status=member,attender",
    "domain": "example.org",
    "role": "viewer"
  },
  "$defs": { ... }
}

emails lists component.property names this manifest declares; one value may hold several addresses separated by commas, and capitals do not matter. phones does the same for phone numbers, however they were typed, and may name the platform's phone.number, which a form's directory fills from a person's phone. where is a query: only the rows it matches let their people join, so a former member's row lets nobody in. domain lets in every address at that domain, without the @. role is viewer (the default) or editor. join needs emails, phones, domain or some of them, and takes effect with the next app_deploy.

The space owner can set the join policy with app_set(app, join: {...}). It overrides the policy in the original app's vocab.json. Pass join: {} to clear the owner policy. Installed copies start with joining disabled and use only the policy set by the installer’s space owner. Updating an installed copy preserves its owner policy.

Somebody signed in with a listed address or number who opens the private app sees a Join button instead of "Nothing here yet." (or, when the app is published, instead of its sample); on a public app, where they can already read, me() returns join with the role pressing Join would give them (else null), so the page can offer it. Pressing it posts to the app's api/join and makes them a guest of that app at that role, exactly as an accepted member_add(email, app, role) would, and the space's people are told in their Updates. Everyone else is offered nothing, and their api/join is refused. The address or number is always the one the person signed in with, which the sign-in code proved is theirs.

member_add still works beside it. Removing a person's row, or changing its address or number, stops them joining again, but access they already have stays until member_remove takes it away, as for any guest.

Publishing and installing

An app is a plugin. Once it is deployed, you can publish it, which offers that version to every other space on yaks.app, and anyone can install a copy into their own space.

app_publish(app, name?, about?, price?, interval?, free?, space?) — offer the version that is live now.

  • The app must have been deployed. An app at v0 has no files for an installer to copy, so publishing it is refused.
  • name is the platform-wide name others install it by. On a first publish it defaults to the app's own slug. On a republish it defaults to the name the offer already has, so a republish never renames silently. Passing an explicit name renames the offer, and the old name then resolves to nothing for everyone who was told to install it. The answer reports which of the three cases happened (first publish, republish, rename), because nothing else shows that a rename happened.
  • A name taken by somebody else's app is refused, naming the app that holds it. Each name belongs to one app across the whole platform.
  • about is the one-line description someone browsing reads. Leave it out on a republish and the previous one stays.
  • price sells each copy, in dollars to the cent (40, 4.99). It is paid once, or each month or year with interval: 'month' or 'year'. Only a space on the Plus plan whose payment account is ready may set one, which space_sell connects (see the selling guide); otherwise the refusal names what is missing. A republish keeps the price unless it names another, and a new price reaches new buyers only. free: true takes the price off.
  • Every published app has a page of its own at https://yaks.app/apps/<name>, which the answer names: its title, its about, the space it was made in, a link to open it, and a button to make your own copy. It is the address to send someone who should see the app and get one. It is kept out of search engines until the app is listed on the gallery, and it is gone once the app is unpublished.
  • Only the space owner may publish. Publishing gives the code to anyone, so an editor cannot do it.
  • A later app_deploy does not change the offer. The offer stays pinned to the version you published, so installers keep getting that code until you app_publish again. This is deliberate, so that an editor's deploy cannot change what the whole platform installs, and a deploy that leaves the offer on an older version says so in its answer. app_versions marks which version is (live) and which is (offered).

app_unpublish(app, space?) — withdraw the offer. The app is unchanged, every installed copy is unchanged and keeps working, and the name becomes available again. Refused if the app was not published.

app_published() — lists published apps, newest first, one line each:

- tally v1 — Tally: Count the votes (from yourname/tally, installs as
  tally, published 2026-08-14; Reviewed by yaks.app on 2026-08-15;
  Installed by 3 other spaces)

Read it before you build something somebody may already have made.

app_install(name, as?, space?, version?) — install a copy of a published app.

  • name is the published name from app_published.
  • The copy is of the published release. An app of yaks.app's demo space, whose releases are the steps of a demo on the home page, can be copied as an earlier release with version; stepping into a demo's step there does this.
  • The copy's address is the first of these that applies: as if you passed it; else the source app's own slug, if nothing in the space holds that address; else the published name, adding -2, -3, and so on until free. The source's slug is preferred because an app is written for its own address, and a copy at the same address is easier to reason about. (A page written relatively works either way; the platform gives every page a <base href> pointing at its own folder under the app's address.)
  • An explicit as held by a live app is refused. Trashed apps free their addresses, and a former address stops redirecting when another app takes it. The default skips addresses held by live apps.
  • An installed app counts against the space's app ceiling like any other (the free tier allows five, the Plus plan has no limit, and trashed apps do not count).
  • The copy keeps the published app's access setting, so an app built for anyone to vote on still accepts votes. app_set changes it afterwards.
  • The copy is not made the front page: <space>.yaks.app/ lists the space's apps until somebody sets which app opens there (app_set(app, home: true)).
  • The install is credited to the space that published the app: app_stats there says how many other spaces installed a copy. A space counts once, however many copies it installs, and still counts after deleting them. A skill's installs are counted the same way, and app_published(name) says them.
  • The install finishes by releasing the copy: its vocab.json is installed in its own store, its commands are listed under its own slug, and its worker.js is uploaded as its own script. So the answer includes the deploy's lines (components, tools, worker) under the install's.

The answer names the address, the file count, and the pinned version:

installed tally v1 as ann/tally: https://ann.yaks.app/tally/ — 2 files,
its own store and its own data, pinned to that version (app_update
moves it)

app_update(app, space?) — update an installed copy to the version its publisher offers now. See "Updating an installed copy" below.

A stranger at a private published app

Publishing a private app lets anyone try it without seeing its data. A stranger who opens it, signed in or not, is served the app with its sample, and their first change gives them a copy of their own, which signing up and installing keeps.

The sample. app_publish makes a store that holds the published version's seed (seed.json, seed.yml or seed/) and nothing else; the app's own store is never read for it. A stranger reads the sample as a viewer, and is served the published version, not a later deploy that has not been published. Publishing again with the same vocab.json and seed keeps the sample; a changed one replaces it, and people who already have a store of their own keep theirs.

Their own store. A stranger's first write (apply) copies the sample into a store of their own, and the write goes there. The answer carries x-yak-moved, and the page's client opens its socket again on the new store, so nothing on the page has to change. A write the app's worker makes for them through env.APP or env.STORE (api/apply) gives them their store the same way, and the worker reads and writes it from then on. The worker's answer carries x-yak-moved too, and the page's client hears it on any request the page made, so a page already open watches the new store at once. The sample itself is never written. The store is reached by that browser alone: no member of the app, no other visitor, and not the same person in another browser. The visitor is its editor, and the seed rows are theirs to change. Their uploads are kept apart from the app's. They still cannot write deliver (send email), using or builder (ask the space's models, unless the app's vocab.json says "models": "open"), and a component with "floor": "person" needs them signed in.

The bar. Every page served to a stranger wears a one-line bar: "Try it. This copy is yours, so nobody else sees what you change, and it is kept for 90 days. Another browser, or clearing this one, starts over." Its button says "Sign up to keep it" (signed out) or "Keep it" (signed in), and leads to https://yaks.app/install?name=<name>. me() returns visit: {kept} to a stranger and visit: null to anyone else, so a page can word its own prompts (Frontend Data).

Keeping it. The install page says what they made in this browser comes with it, and installs with app_install(name, visit: true): the new app takes over that store, rows and uploads, instead of starting from the seed. It works only in the browser that made the store, and only once; asking again answers the app it already became. The free plan's five apps still apply: past them, the install is refused before anything is written, and the store waits. Once installed, opening the published app in that browser goes to their own app. Rows written before signing up have their created.by filled in when they sign in.

Limits. The platform pays for a visitor's store until it is installed, so a first write from one network address makes at most 10 stores per minute, and an app's strangers hold at most 10,000 stores nobody has installed. Past either, the write is refused 429 with sign_up and a signIn address. Once a day, yaks.app erases a store nobody claimed that has gone 90 days without use, the life of the browser cookie that alone reaches it. A store someone claimed by signing in but never installed goes when their account closes, and erasing the app erases every visitor's store with it.

Turning it off. app_publish(app, demo: false) keeps no sample, and strangers get the sign-in page, as at an unpublished private app. So do an app whose sample could not be made (the answer says so, and publishing again retries), app_unpublish, and an app made public or open, which is one store everyone shares. An app made private after it was published gets its sample at its next app_publish. Someone with an invitation waiting is still told to accept it.

An approved private app from a space owned by yaks.app's staff gets a copy in yourname, through app_install, which stays private and published. The gallery's visit and install links use that copy, so each stranger reads its sample and writes in a store of their own. The source's records are never copied: the sample comes from the published version's seed, so give the app a seed of fictional rows before listing it. Relisting updates the copy's code to the source's published release and publishes it again.

Publishing makes an app installable. The gallery, https://yaks.app/gallery, is a separate public page that shows apps people have made on yaks.app. Publishing and listing are deliberately separate: an offer is between whoever made the app and whoever goes looking for one, while a gallery listing is yaks.app showing somebody's app on its own page.

app_publish(app, gallery: true), or app_set(app, gallery: true) later, asks for a published app to be listed. Do this only when the person has said they want it shown: the listing puts their app, their name and their address on a public page, so never assume it. The app must be published, since a gallery entry that cannot be installed is of no use. It also needs a screenshot: upload one through the app's /api/blob endpoint and pass its returned eid to app_set(app, screenshot: '<eid>'). This takes effect without deploying the app. An existing og:image in its index.html works too, though a chosen screenshot takes precedence. A selected screenshot is public while its gallery listing is live, including for a private app; its other files and data stay private. The screenshot can be cleared with app_set(app, screenshot: '') after withdrawing a listed app.

The app is not listed immediately. Unless it is one of yaks.app's own, an agent first reviews its code: what it does with people's data and keys, whether it works as it says, and anything that should not be shown under yaks.app's name. Then the request sends a letter to yaks.app's owner with the app's title, its address, the line its owner wrote about it, who made it, the code review's verdict and findings, and two links for the answer. He reviews every request, and nothing is listed until he approves it.

An agent holding the platform admin's credential does the code review: the request reaches yaks.app's agents as a task, and gallery_code_review(app: 'space/app', verdict: 'approve', findings, by, via) records the review and sends the letter; verdict: 'reject' says the code should not be listed, and he still decides. app_files reads the app's code for the platform admin.

The platform admin can do two more things, and an agent does either only when yaks.app's owner asks it to, recording him as the one who decided (by, his address) and itself as the session (via):

  • gallery_review(app: 'space/app', decision: 'approve', by, via, reason) answers a request. decision: 'decline' clears the request and leaves the app published.
  • app_set(app, gallery: true, review: false, by, via), or the same on app_publish, lists the app at once, skipping review: no request, no letter. It still needs a published app and a screenshot.

On the platform's own machine these are the admin_gallery tool with decision: 'code-review' (and verdict, findings), 'approve' (or 'decline') and 'list', naming the account in as, and the last two with by set to his address; the session is filled in from the calling agent.

The tool reports the listing's status, and so does the app's status pill on the space's own page:

not in the gallery
waiting on us: it is not listed until we say yes, and a letter is on its
  way to the desk that decides
listed in the gallery — https://yaks.app/gallery

Removing a listing: app_set(app, gallery: false) removes it immediately. So does app_unpublish, because an app nobody can install is not listed. Both clear the pending request as well as the listing, so listing the app again later sends a new request to yaks.app.

Deleting the app also removes it from the gallery immediately, but in a different way: the listing itself is not changed. A trashed app, and every app in a trashed space, is simply not shown, and app_restore restores the listing exactly as it was, without a new request.

gallery_search(words, limit?) searches the listings, matching your words against each one's name and the line its maker wrote. It needs no account: it is one of the few tools this connector answers when signed out. Each result includes the app_install call that gives the person their own copy. Search it before building something from scratch.

- Tally — Count the votes
  https://yourname.yaks.app/tally/
  Reviewed by yaks.app on 2026-08-15; Installed by 3 other spaces
  app_install(name: 'tally')

What yaks.app says of something shared

Everything shared shows the same few signals, to a person and to an agent: on its gallery card, on its own page (/apps/<name>, /skills/<name>), in the integration directory (/integrations), and in what app_published, gallery_search, app_install and integration_list answer.

  • Featured by yaks.app: the platform features it, or the space that shares it. The platform admin puts the mark on, or takes it off, with gallery_feature(app | skill | integration | space, featured, by, via), and only when yaks.app's owner asks.
  • Reviewed by yaks.app on a date, and the version the code review read when there was one: an app or a skill we listed. Nothing in the integration directory is reviewed: a built one says it is built by yaks.app, and a custom one that its owner listed it without our review.
  • Installed by N other spaces: the spaces that installed a copy, or for an integration connected it, other than the one that shares it. Counted when read, never stored.
  • Rated S of 5 by N spaces: the mean of the latest rating from each of those spaces. A person rates something their space installed with app_rate(space, name | integration, stars, why?), one to five stars and their own words if they have any. A rating from a space that has not installed it is kept, and counts once the space installs it. Counted when read, never stored.

A publisher's page

A space that shares anything in public has a page at https://yaks.app/spaces/<slug>, in the sitemap: the apps the gallery listed, the skills yaks.app listed, and the integrations it listed, each with what yaks.app says of it. The page also shows how many times other spaces installed any of it, the featured mark where the platform features the space, and its web address: a domain it attached to the space and verified (domain_attach), or else <slug>.yaks.app. An app's and a skill's own page link to it. A space that shares nothing in public has no page.

What an installed copy shares

An installed copy is an ordinary app in the installer's space, with its own address, its own store, its own file prefix, its own worker script and its own version history starting at v1. Its store starts with the app's seed, or, with app_install(visit: true), with what the installer made as a stranger. Installation gives the publisher no access to the copy's data, and data is not synced between them. The publisher can also lend a connection so the copy works before its owner gets their own key; this grants calls to the outside service, never access to either app's store.

Only the app's own files are copied: the pages, the stylesheets, the vocab.json, the worker.js. What is not copied:

  • Data. Every row the publisher's copy holds stays there.
  • Uploads. The photos a visitor sent to the publisher's copy are that app's data, not its code, and stay behind.
  • Version history. The copy's history starts with the release the install makes.
  • Keys. The key stays in the vault. For each connection the app uses, the copy either borrows the connection the publisher chose to lend (below) or asks for its own. An unmet request appears on the installer's connections page with instructions for getting the key, under the binding the app's code reads. Opening a connection to anyone is not copied; the installer opens their own. app_update adds any connection request the new version gained.
  • Members. The copy belongs to the installer's space and its guest list.

Lending a connection to installed copies

connection_lend(app, integration, cap, space?)

Only the space owner can lend a connection their space owns and the app uses. Set cap to a positive whole number of calls per month for each installed copy:

connection_lend(app, integration: 'ESV', cap: 100)

Each copy installed afterwards borrows that connection immediately, through the same binding the app reads. Its page or worker receives only a sentinel; the egress replaces it with the key when calling an allowed https host. The borrower cannot read the key, and neither space gains access to the other's app data. Only a shared sentinel can be lent: a direct key, a per-person connection (each: true), or a connection the app itself borrows cannot be lent.

connection_list reports borrowed connections, whose space lends them, and each copy's monthly count and cap. Changing cap changes the cap of every copy already borrowing through that app. Calls beyond the cap return 403 with instructions for connecting the copy's own key.

The copy's owner can connect their own key in their own space and attach it with connection_attach. That replaces the borrowed connection for their copy and leaves the lender's connection unchanged. To stop lending to every copy and to future installs, call:

connection_lend(app, integration: 'ESV', cap: null)

Each borrowing copy then asks for its own connection, keeping its binding and data. Disconnecting the lender's connection has the same effect on its copies.

The connections page does the same without an agent. On the lender's side, the connection's Advanced options hold Lend to copies of the app, with the calls per month each copy may make; saving a new number changes every copy's cap, and Stop lending recalls them all. Each copy borrowing it is a row naming the copy's space, with its calls this month against the cap and Recall, which leaves that copy asking for its own; the cap and recalling it are all the lender can change of a copy's link. On the borrower's side, the connection shows as borrowed from the lender's space with the copy's calls against its cap. Open to anyone lets anyone using the copy call out through it, within the cap; only the copy's own space can say that. Use your own key pastes a key in its place, Connect your own signs in where the service uses a sign-in, and Use your own attaches a connection the space already has for that service. See API keys and connections for declaring a connection and using its sentinel from a page or worker.

How an installed app runs, and the sandbox

An installed app runs like the space's own apps when the space has reason to trust its release:

  • yaks.app reviewed the release's code (the review an app gets before the gallery lists it), however it is installed;
  • somebody in the space made the release; or
  • it came from the same space, or from one of yaks.app's own.

Such a copy is served at <space>.yaks.app/<app>/ on the space's origin, with the browser's own localStorage, sessionStorage, IndexedDB and the sign-in cookie, and its vocabulary is shared with the space's other apps the way theirs is. Like them, it can read and change everything in the space the person using it can: the space is the trust boundary.

Any other copy, such as one installed by a link to a stranger's app nobody reviewed, is installed in the sandbox, and the install's answer says so.

The sandbox. The space's owner can let a sandboxed copy out with app_set(app, sandboxed: false), and isolate any installed app with sandboxed: true. Every response the app serves then carries Content-Security-Policy: sandbox allow-scripts allow-forms allow-popups, so the browser runs it in an origin of its own. What changes:

  • Its API calls are authorized by a token, never the cookie. The page's <base href> is /<app>/~<token>/, so relative paths work (./app.js, import './api/client.js') and an absolute /<app>/app.js does not load.
  • Browser storage is provided by the platform. localStorage keeps each signed-in person's keys in the app's store, up to a megabyte; sessionStorage lasts as long as the page. IndexedDB, document.cookie and service workers are refused, and so is the camera (and in Chrome, notifications).
  • It has no access to the rest of the space. Another app's address treats it as a stranger, its /api/files/ endpoint refuses it, and from its next release (app_deploy) its vocabulary is installed in its own store only, and no other app uses it.

Attaching an app to another app's store

An app can show, edit or run another app's data without copying it: a back office for a shop's orders (the published back-office app is one, Payments), a browser for an app's uploads. The space's owner attaches it with store_attach(app, store), naming the other app's slug, and the app reads that store's address from ./api/env by its binding (the store's slug in capitals unless binding names another) and passes it to store():

import { store } from './api/client.js'

let env = await (await fetch('./api/env')).json()
let shop = store(env.SHOP)
shop.subscribe('.order', drawOrders)

The app reads and writes there as whoever is using it, with their own role in that app, never more. A sandboxed app reaches the store it is attached to, and nothing else of the space: its page token opens that store's rows, uploads, socket, commands and payments, never its connections (./api/env, ./api/fetch), files or pages, and store() adds the token to the address by itself. An app out of the sandbox already reaches its siblings, so attaching only tells it which. store_attach(app, store, detach: true) takes the store away again, and the app is refused there at its next request.

Version pinning

An installed copy is pinned to the version it installed. Publishing again does not update any copy: the installer's copy keeps serving exactly the same files until someone calls app_update. That is the purpose of pinning: a publisher cannot change an app that people rely on, and the app does not change unless someone in their space updates it.

app_published shows the version on offer; the copy's own app_versions shows the version it is at.

Updating an installed copy

app_update replaces the code and keeps the data.

Before any file is written, the publisher's vocab.json is checked against the copy's store. A vocabulary that only grew is applied additively. One that would retype a property the copy's rows were written under is refused with the same message a deploy gives, vote.count is already number, and nothing changes: neither the files nor the pinned version. The copy stays exactly as it was.

Then every file of the publisher's version is written over the copy, and every file the copy has that the publisher does not is deleted. That includes anything you wrote into the copy yourself — a tweak to its stylesheet, a page you added. After the update, the copy serves exactly the publisher's files.

Then the copy is released like any deploy: components installed, commands registered, worker.js uploaded, a new version recorded, and errors from earlier versions closed. Then the pinned version moves to the new one.

An update always keeps every row they saved, every file they uploaded, and everything else the store holds. The answer confirms that, and reports how many files were written and how many removed.

A copy running out of the sandbox takes only a release its space has reason to trust (see "How an installed app runs, and the sandbox"): the newest reviewed one, or the newest one somebody in the space made. A newer release that is neither waits until it is reviewed, and the answer says which version waits. The space's owners hear of it in their Updates, once per version that waits. A sandboxed copy takes whatever is published.

Four cases where app_update does not update:

  • The app was not installed from anywhere — it is their own app, and app_deploy releases what you write in it.
  • The app it came from is no longer published — the copy keeps working, data and all, and there is nothing to update it to.
  • It is already at that version — answered, not refused: "nothing to update".
  • It runs out of the sandbox and no newer release has been reviewed or made by somebody in the space — answered, not refused, naming the version that waits. It moves once a review passes, or once the space's owner sandboxes it.

Installing instead of building

app_published() is one call and costs nothing. When the person asks for something common, such as a vote page, a chore chart or a signup sheet, check it first. Installing takes a second and gives them their own copy with their own data, and you can change their copy afterwards with app_files. An install costs only one of the space's app slots.

Sharing a skill

A space keeps skills, the instructions its Operator and a person's connected Claude are offered. The same tools share one, with skill naming it where an app would be named:

  • app_publish(skill, name?, about?, space?) offers a skill the space keeps under a platform-wide name, the skill's own title the first time. Only the space's owner may. Each change to its text is a new version.
  • Every version is reviewed before anyone may install it. A skill is instructions an agent follows, so yaks.app reads each version first: what it fetches, reads or sends, and anything outside its subject. Until yaks.app lists it, app_install refuses that version, and the answer says it is awaiting review.
  • app_published() lists the skills anyone may install, beside the apps. app_published(name) reads one skill in full.
  • app_install(name, as?, space?) keeps a copy in the installer's space, under the skill's title or as. The copy stays at the version it took.
  • app_update(skill, space?) moves a copy to the newest reviewed version and lists what changed: its description, and the lines of its instructions removed (-) and added (+). A newer version still awaiting review leaves the copy where it is.
  • app_unpublish(skill, space?) withdraws the offer. Every copy stays.

A copy of somebody else's skill is not republished: it is theirs to offer.

Someone else's skill

A skill someone outside yaks.app wrote is shared the same way. The space keeps it with upstream{source, author, commit, licence, notice}: the http(s) address its author publishes it at, who they are, the commit it was taken at, the licence its source gives it under, and that licence's notice. app_publish refuses it until it names its author and commit.

  • A licence that allows copies (MIT, Apache-2.0, BSD, ISC and the like) lets yaks.app host the skill: it is installable like any other, and its notice is kept with every copy. app_publish refuses it without the notice.
  • No licence, or one that allows no copy, lists only a link to its source. The listing holds none of its text, and nobody installs it.

Either way it is reviewed before it is listed, and its listing and page say who wrote it, where, and at which commit.

Once yaks.app lists a version, the skill has its own public page at https://yaks.app/skills/<name>, in the sitemap. It shows the skill's instructions and what its rounds measured: the variants it was compared with, the cases they were tried on, every output, how many people picked and which variant won, and each version the skill became. Only rounds yaks.app ran count, and a round shows once a person has picked between two of its outputs. Publishing a skill makes the cases and outputs of its rounds public with it.

Improving a skill by trials

A member asks their Operator to improve one of the space's skills, and brings a few cases: work the skill is for. The Operator writes candidate texts of the skill beside the one it has and plans a round with them. Before it asks any model, it says what the round will cost, and the round runs only with the cap the member gives, spent from the space's budget like every other model call. It also tells the member that once someone picks in the round, its cases and every output show on the skill's public page if the skill is published, so cases should leave out anything private. Each candidate is asked to write each case, with no tools, and any judges the round names score what came back. Judges count only once they get enough of the answers already settled right.

The member then picks between pairs of outputs, never told which candidate wrote which. The candidate people preferred becomes the skill's next version when the member says so. A published skill keeps offering the version it published until it is published again, and each version is reviewed first.

A skill that drives an agent's tool use is not measured this way yet, since writers are offered no tools.


The whole guide: The guide