ObjectStackObjectStack

Marketplace handbook for app authors

From a built dist/objectstack.json to an app a customer has installed — the listing file, the README a listing depends on, publishing and review, every screen the customer's administrator meets, and staying current with platform versions.

This page follows one app from a built dist/objectstack.json to a customer environment and back out, in the order you meet each step. The mechanics it touches live on the pages it links.

What a listing is

A Marketplace listing is an App listing: the customer downloads, opens and uninstalls exactly one App, and only a type: 'app' package is consumer-installable (ADR-0019 D1/D2). Modules, plugins and other contributions ship inside that App — see Extras below.

The listing is a package row in the catalog plus its versions: the row carries the name, description, business functions and other taxonomy facets, icon, README and translations, and each version is a snapshot of your compiled artifact.

The listing file: objectstack.manifest.json

os package publish reads objectstack.manifest.json from the directory you run it in, if one is there, and uses it as the default for the listing. A command-line flag always wins over the file. The file's full schema is the generated Template Manifest reference; the declared keys below are the ones publish actually sends.

KeyWhat it fillsFlag that overrides it
manifestIdThe package id (reverse-domain, immutable once published)--manifest-id
displayNameThe name on the card--display-name
descriptionThe short description--description
businessFunctionsThe business functions the app serves: 1-3 values, the primary one first (the values: Marketplace Taxonomy reference)—
industriesUp to 3 industries the app is built for; leave it out for a cross-industry app—
solutionTypeapp (you keep upgrading it), template (the customer's to change — needs the unmanaged install mode) or connector (needs a declared connector); publish checks it against your built package. Left out: app—
maturitybeta or stable; left out: stable—
tagsThe listing tags, sent as written. The catalog validates and stores them and refuses a bad list with a 400, which publish prints as it is; [] clears the stored tags, and leaving the key out keeps them—
iconUrlA public http(s) icon URL--icon-url, or --icon-file to upload one
homepageUrlYour project or docs URL--homepage-url
licenseAn SPDX identifier--license
readmePathA markdown file, relative to the manifest, read at publish time--readme-file, --readme
translationsPer-locale displayName, description, tagline, readme and screenshotCaptions—

The four taxonomy keys are defined once, in @objectstack/spec/marketplace. Publish validates them and sends them; the hosted catalog's facet filters, its submission rule (at least one business function) and the console's facet chips and Beta badge arrive as each side adopts the taxonomy, so until then a value you declare is accepted and not yet shown.

An official ObjectStack listing's manifestId is app.objectstack.<app> (app.objectstack.hotcrm, app.objectstack.connector-github); a partner listing uses its own reverse domain, app.<partner>.<app>.

HotCRM is a worked example for the keys it carries (shown with the business functions that replace its retired category):

{
  "manifestId": "app.objectstack.hotcrm",
  "displayName": "HotCRM",
  "businessFunctions": ["sales", "customer_service", "marketing"],
  "license": "Apache-2.0",
  "iconUrl": "https://raw.githubusercontent.com/objectstack-ai/hotcrm/main/assets/icon.svg",
  "homepageUrl": "https://github.com/objectstack-ai/hotcrm",
  "readmePath": "README.md"
}

HotCRM carries no translations. A listing in two locales adds one entry per locale; a readme entry may be inline markdown or a path to a .md file next to the manifest:

{
  "translations": {
    "en": { "tagline": "Repair tickets, end to end.", "readme": "README.md" },
    "zh-CN": {
      "displayName": "维修工单",
      "description": "从报修到结单的维修工单应用。",
      "tagline": "报修到结单,一个应用。",
      "readme": "README.zh-CN.md"
    }
  }
}

The Console picks the entry for the viewer's language — the exact locale, then the bare language (zh reaches zh-CN), then en — and falls back to the base columns for a missing key. The per-locale shape is the translations entry of CreatePackageRequest.

Two things the file can say that never reach the listing. Publish uploads no screenshot images, and the Console's marketplace pages render none: a preview.screenshots list stays on your disk, and screenshotCaptions travels with no image to caption. tags is different: it is sent as written (see the table above). The file no longer accepts visibility (pass --visibility; publish refuses the key by name), nor publisher — the platform assigns a package's trust tier from your credentials, and publish refuses the key by name — nor isStarter, name, specVersion, skills or scaffold, which never changed what publish sent (the platform decides which packages are starters): publish names each one still present so you can delete it. Put the icon, the description, the tags, the tagline and the README where the table above says, and nothing else.

The README the listing depends on

The README is the long description on the app's marketplace page, and the customer's administrator reads it before installing. Publish never picks up a README.md on its own — it sends one only from readmePath, --readme-file or --readme, so development notes do not leak into the catalog. Write it for the administrator, not for a contributor:

  • What the app does, in business words — the objects and the work they support, not the folder layout.
  • The sample data and any demo users — what installing with sample data adds (your seed datasets), and what an empty install looks like.
  • Every credential it needs — for each one, its name, where the administrator obtains it, and which permissions or scopes it must carry. You write the names; the administrator supplies the values. Once the app is installed, the Console lists the credentials its connectors still need in the install result, and Setup → Integrations → Connector Credentials holds every one of them (Setting a credential). The README is still where the administrator learns what each value is and where to get it. An app that ships declarative OpenAPI connectors produces its packaged document with the offline normalize-openapi script: --trim keeps only the operations the app calls, and the sha256 it prints is the one to record here (provider: 'openapi').

Build and verify before publishing

A scaffolded project carries the scripts; run them before every publish:

npm run validate     # os validate — the author-time rules
npm run lint         # os lint
npm run typecheck    # tsc --noEmit
npm test             # vitest run
npx os verify        # boots the app in-process and proves it through the real HTTP stack
npm run build        # os build -> dist/objectstack.json

One declaration names the platform major your app is authored against: engines.protocol in the defineStack manifest. A runtime outside that range refuses the app rather than half-loading it. (The specVersion an older scaffold wrote into objectstack.manifest.json was never read, and spec 18 retired it: delete it.) See Validating metadata for what the checks cover.

Publish and submit for review

Sign in to the control plane once with os cloud login (it writes ~/.objectstack/cloud.json), then publish from the directory that holds the manifest:

os package publish ./dist/objectstack.json \
  --version 1.2.0 \
  --icon-file ./assets/icon.png \
  --visibility marketplace \
  --submit \
  --note "First marketplace release"

The flags that shape a listing, on top of the overrides in the table above:

FlagEffect
--visibilityorg, private or marketplace. Omitted, an existing package keeps its visibility and a new one gets the control plane's default
--icon-fileUploads a PNG, JPEG, WebP or SVG (up to 256 KB) and stores the served URL as the icon. Not together with --icon-url
--readme-fileReads the README from that path at publish time. Not together with --readme
--pre-releaseMarks the version a pre-release; a version like 1.3.0-beta.1 is marked one anyway
--submitSubmits the new version for marketplace review. Needs marketplace visibility and a complete listing
--noteRelease notes for this version

What review checks is the control plane's business. What you see is what the CLI prints: when a listing is incomplete — the README and the icon are required for a marketplace listing unless already stored on the package — the publish answers with a list of Marketplace policy violations; fix them and publish again. On success it prints the version's listing status:

StatusWhat it means for you
draftNot submitted. With marketplace visibility the CLI reminds you to pass --submit
pending_reviewWaiting for a platform admin to approve or reject it
approvedLive in the public catalog

--auto-approve skips the queue for platform admins only. Every other flag, the service-mode options and the publish-and-install shortcut are on Publish, versioning and preview.

The customer's side

What the administrator meets, step by step. Each step names the page that owns the detail.

  1. Finding the app. In the Console, Setup → Browse Marketplace opens the App Marketplace page, which lists the approved apps; clicking one opens its page with the README, version, business functions and license. A runtime started with OS_CLOUD_URL=off shows App Marketplace is turned off instead — Cloud connection covers connecting one.
  2. Installing. Into a cloud environment, Install to cloud… opens a dialog that names or picks the environment and offers Include sample data; only organization owners and admins can install. On a runtime that installs locally, Install puts the app into this runtime; the result may say it loads at the next restart. Without a catalog at all, the operator runs os package install ./dist/objectstack.json against the runtime (Publish, versioning and preview).
  3. Choosing an install mode, when your manifest permits more than one: Managed keeps the package the authority and receives upgrades; an Unmanaged copy is editable and receives none (Install modes).
  4. The dependency check. An app that declares a dependency the environment lacks is refused before anything is written, one line per unmet entry (App dependencies).
  5. Credentials. Once the install lands, its result lists the credentials the app's connectors still need, each with a masked input and Skip for now. A skipped one leaves its connectors disconnected until it is set in Setup → Integrations → Connector Credentials (Setting a credential). Your README says where each value comes from (see above).
  6. Sample data. The ⋯ (More install options) menu on the app's page offers Add sample data, then Re-seed sample data, and Purge sample data, which deletes only the records your seed created. Behind them are POST /api/v1/marketplace/install-local/:manifestId/reseed-sample-data and …/purge-sample-data, both requiring manage_metadata. For an unmanaged copy installed with its sample data, call them with the copy's base id: they act on the sample data the copy holds, and the reseed also loads it again after a first load that failed. Uninstalling the copy (DELETE /api/v1/packages/:baseId) drops its tables with every row in them; with ?keepData=true every row stays, sample rows included, and no door tells them apart any more, so purge first if you want them gone.
  7. Enable and disable. Setup → Installed Apps lists the apps installed from the marketplace, each package of a suite as its own row. An admin with manage_metadata may disable a writable package, and a module of an installed app: a type: 'module' package that declares an installed type: 'app' package in its manifest.dependencies (Disabling a module below). The package's detail sheet offers Disable where the runtime allows it and Enable on any disabled package. For every other package provided by code or by an installed app (the app itself, a plugin, a platform package), the runtime answers PATCH /api/v1/packages/:id/disable with 422 WRITABLE_PACKAGE_REQUIRED. A disable that would leave a validation rule reading a field the package adds is refused with 409 PACKAGE_DISABLE_RESTRICTED_BY_VALIDATION_RULE (below), and so is an enable that would serve a rule reading a field a still-disabled package adds. To take an installed app away, uninstall it.
  8. Upgrading. You publish a new version; nothing running changes. An environment installed through the cloud shows Update available → v… and an Update button; a runtime that installs locally shows Reinstall. A managed install takes the upgrade; an unmanaged copy does not. To roll back, install the earlier version.
  9. Uninstalling. Uninstall from this runtime in the ⋯ menu, or DELETE /api/v1/marketplace/install-local/:manifestId (manage_metadata). There is no CLI command. It removes the cached manifest, withdraws the app from the running kernel and revokes its permission sets and their grants. The answer's note and cleanups say whether any part stays loaded until the next restart. Records stored in the app's objects stay in the database. An uninstall that would withdraw a field an active validation rule of another enabled package reads is refused with 409 PACKAGE_DISABLE_RESTRICTED_BY_VALIDATION_RULE, naming the rule, and nothing is removed — the same refusal DELETE /api/v1/packages/:id answers. A completed uninstall is recorded in the audit log (package_uninstall).

Staying current with platform versions

The platform ships on its own release train; your app moves when you move it. Metadata authored one major behind still loads, with conversion notices in the boot log; two or more majors behind, the load rejects the retired shapes. An installed app whose engines.protocol the runtime does not support is not loaded, and the app's page shows Not loaded with the protocol range it targets.

To move, run os migrate meta --from <the major you authored against> on your source, apply what it lists, update engines.protocol, rebuild, and publish a new version. Upgrading owns the loop.

Extras: dependencies and modules

An app ships extras in one of two shapes:

  • A separate app it depends on — a region pack, a shared base app. Declare it in manifest.dependencies; install checks it, and the customer installs it first (App dependencies).
  • A module built into the same artifact — a type: 'module' package composed at build time, which travels inside your App rather than as a listing of its own (A project is a multi-package artifact).

Disabling a module

A customer who does not use one of your modules can switch it off, per environment, with PATCH /api/v1/packages/:id/disable, and back on with PATCH /api/v1/packages/:id/enable. In the Console, the admin opens the module's row in Setup → Installed Apps (or Setup → Packages for a suite booted from code) and presses Disable, then confirms. The row's disableable key on GET /api/v1/packages is the runtime's own answer to whether the disable door accepts the package, and the Console offers Disable from it alone; writable stays false for a module, so its edit, publish and delete actions stay hidden. The module qualifies when its manifest says type: 'module' and declares your app in dependencies, the way every module of a suite already does:

manifest: {
  id: 'app.example.suite.orders',
  type: 'module',
  namespace: 'suite',
  dependencies: { 'app.example.suite': '^1.0.0' },
  navigationContributions: [/* its menu entries in the app's groups */],
},

Disabled has one meaning: the module is hidden, refused on the data plane, and its data is kept.

  • Data plane. /api/v1/data/<object> and the by-name metadata reads answer the module's objects 404 OBJECT_PACKAGE_DISABLED. Records stay in the database and come back on enable.
  • Navigation. The module's navigationContributions leave the app's menu.
  • Flows. Record-change flows on the module's objects do not run while it is disabled, whoever writes the record.
  • Restart. The choice is kept per environment and survives a restart.
  • Authoring. A disabled module is still read-only: edit, publish, revert and delete keep answering 422 WRITABLE_PACKAGE_REQUIRED.
  • A rule that reads its fields. A module that adds fields to another object through objectExtensions cannot be disabled while a validation rule of any enabled package reads one of those fields: declared dependent or not, your app's .custom pair (where the customer's own rules live) included, at any severity. The disable door answers 409 PACKAGE_DISABLE_RESTRICTED_BY_VALIDATION_RULE, and its message names each rule as package · object · rule (reads FIELD); nothing changes. Withheld, the field could not be read, and every write to that object would fail the rule. Switch off or change each named rule first (a rule the customer switched off on their copy of the object counts as off), or disable the package that owns it. A formula over the field does not block the disable: it answers null while the module is off. An overwrite of the enabled module with enableOnInstall: false that would leave it disabled in that state answers the same 409, and the module stays enabled; a fresh install with enableOnInstall: false lands disabled, as before.
  • Enabling a rule over a disabled module's field. The mirror order is refused too: while the module is disabled, enabling a package whose validation rule reads one of the module's fields (or one on an object that package owns) answers the same 409, naming each rule and the module to enable first; nothing changes. Enable the module first, or switch the rule off on the customer's copy of the object. A boot that lands in that state anyway (the stored choice records only disables, so a newly shipped rule boots enabled) logs one warning naming every rule and the remedies.

What your app's own code meets. A hook of your app that reads or writes a module's object through ctx.api.object('<object>') runs inside the server, not through the data plane, and it is not refused: a find returns the module's kept records, and a write lands (no record-change flow runs on it). There is no OBJECT_PACKAGE_DISABLED error to catch there. A browser or API client reading the module's objects does meet the 404 OBJECT_PACKAGE_DISABLED refusal while the module is off.

On this page