Skip to Content
FeaturesMarketplace

Marketplace

The marketplace is where you find an app to install. Browse it from Apps → Install app in the console, where installing a listed app hands its manifest URL to the install form at the level you are standing in: the project, or one of its organisations. Nothing is fetched until you preview and nothing is written until you confirm.

The same catalogue is public reference data. Any API key reads it over GraphQL (marketplaceListings and marketplaceListing), and an agent reads it through the foir_list_marketplace_apps and foir_get_marketplace_app tools.

An agent does not install an app. It proposes one with foir_propose_app_install, choosing the models the app’s data lands in, and the proposal becomes an approval card on a note. The platform checks the proposal against the manifest when the card is filed, so a mapping that could not install is refused straight away. Nothing is installed until someone holding apps:write approves the card, standing at the level it was proposed from; the install then runs as them. An app that connects to its vendor with OAuth still needs that person to connect it in the console afterwards.

Approval cards have a permission of their own. Filing one takes approvals:write, and apps:write too when it proposes an install. Deciding one takes approvals:write and approvals:read, as well as whatever the held action itself needs. Seeing the cards on a note takes approvals:read. Being able to comment on a note gives none of them, and a role that manages the project holds them all.

An install the vendor starts

A merchant can also start at the vendor, for example by clicking Install on Foir’s app in the Shopify App Store. The vendor vouches for which account they are installing for, and the console’s install page asks them to sign in (or sign up) and choose the project, and the organisation within it, that the app should land in. It then runs the same install form with the account already filled in, and shows anything the app says about connecting before Install. Once installed, the setup connects the account by itself: it shows the account the merchant installed from and never asks them to type it. Nothing is written before a destination is chosen, so an arrival that is abandoned leaves nothing behind.

One live connection per account

Some vendors keep one live connection per account. Shopify does, per store: connecting a store to a second project ends the first project’s connection. An app says so before you connect, on the install form and beside the step that connects.

A project whose connection has ended keeps everything it synced and still answers the vendor’s privacy requests for it, but receives nothing new until it is connected again. Its app says why it stopped without naming the other project, and Connect again in the app’s setup takes the connection back.

Connect a staging or development project to the vendor’s development account (a Shopify development store), never the live one, or the live project stops receiving it.

What a listing is, and what it is not

A listing carries discovery metadata only: a name, a summary, an icon, a category, an ordering. Nothing about what the app can do is stored on it.

Everything functional — the operations, the hooks, the UI placements, the source and sink types, and the grants each operation carries — is read live from the app’s own manifest every time you view the listing. It is never copied into the listing and never cached beyond a few seconds.

That is a correctness rule rather than a database preference, and the reason is worth stating plainly. A stored copy drifts from the manifest it was copied from, and what it drifts into is a listing that describes an app as touching less than it does. The listing screen’s entire job is to tell you what you are consenting to, so it has to be the only screen in Foir that cannot be out of date.

Two consequences follow:

  • A developer updating their manifest updates their listing. There is no listing edit, no re-approval, and no window where the two disagree.
  • A listing for a manifest that has moved or broken shows you that, rather than showing you a confident description of an app that is no longer there.

Reading the access list

The access list is the part to read slowly. It is generated from the manifest’s grants, resolved against the models you are about to map, and it is exact.

records:read:$product on an operation means that operation can read every record of whatever model you map product onto. records:write:$product means it can change them, and records:create:$product that it can create them. appsecrets:read means it can read the credential you are about to give it. A grant that names no model, such as appconfig:read or status:write, is scoped to the app’s own row and reaches no content at all.

Placeholders resolve at mapping time, so the same manifest produces a different list depending on what you map it to. The install preview shows the resolved form, not the placeholder form.

Declining an optional source removes its grants. If an app declares user as optional and you decline it, the operations that would have written user records are dropped from the install entirely, not installed and left unused. An operation that declares runs_on_mapped_sources is kept instead, with the declined source’s grants left out. No token minted for that install ever carries the grant.

Why a listing beats a URL

Both routes install the same way and produce the same install. What differs is what you knew beforehand.

A listing has been looked at by somebody at Foir before it appeared. That is not a security guarantee and should not be read as one — the access list is the security surface, and it is the same on both routes. What curation buys is that the listing exists at all: an app in the marketplace has a maintainer who asked to be there and a manifest that resolved when a human checked.

A URL you were sent is worth exactly what you know about whoever sent it. Read the access list either way.

Getting listed

Curated, not self-serve. There is no submission endpoint and no queue — ask us. See Publish for what a listing does and does not change about your app.

Unlisted is a first-class route, not a waiting room. An app built for one client, an internal tool, or one you are still developing installs from its URL exactly as a listed app does, with the same preview and the same access list.

See also

Last updated on