Build

Manifest and registration

The manifest is your app's entry in the SALOPHA registry. It decides where the app appears, how it looks while it loads, how it runs on the device and what it may access.

Last updated: November 7, 2026 · Browser SDK 1.6.0 · Bridge protocol 1.2

How registration works#

Apps are registered by the SALOPHA team in the admin console (admin.salopha.com › Mini-apps) from your manifest. A wizard holds every field; the step «Branding and runtime» holds the colours, logo, runtime mode and automatic sign-in. After editing, the team releases a version and publishes it, optionally to a percentage of users. Every user-visible change ships with a new release version (x.y.z).

You can also do all of this yourself on the developer platform (developers.salopha.com): organisation, draft manifest, releases on internal, beta and production channels, review and publishing. See Developer platform lifecycle.

Send your manifest, icon and privacy policy URL to [email protected]. You receive your app id, client id and client secret. The secret is shown once; ask for a rotation if it leaks.

Manifest fields#

FieldMeaning
name, shortDescription, descriptionLocalised text: { "ar": "…", "en": "…" }
icon{ "source": "network", "value": "https://…/icon-512.png" }, the directory icon (512 × 512)
launchUrlYour HTTPS start page
allowedOriginsExact origins the bridge answers. One origin per app keeps cookies and storage simple.
scopesCapabilities the app may use. Each one is reviewed and approved. See Scopes.
autoGrantScopesPersistent scopes granted without a consent sheet (official apps and trusted developers only)
ownershipofficial (shown first, «SALOPHA services»), partner or thirdParty
brandingprimaryColor, onPrimaryColor, splashBackground, splashBackgroundDark, logoUrl, iconUrl, splashStyle (logoAndName or logo)
runtimecacheMode, networkOnlyPaths, precacheUrls, display, allowShortcut, splashMinMs, readyTimeoutMs
supportedCountries, platformsWhere the app is offered. Platforms: android, ios, web, desktop.
minHostVersion, minSdkVersionOldest SALOPHA app and SDK the app supports
shareableObjectTypesObject types your app can send as chat cards, e.g. store, item
transactionTypesTransaction types you publish, with an optional status map. See Transactions.
chatActionsUp to 6 things people do with your app from a chat. See Chat actions.
audienceWho can use the app: people, businesses, or both, with business eligibility and join approval. Absent = people only. See Business audience and joins.
identitiesOptional (SDK 1.6). { "switchable": true, "kinds": ["personal", "business"], "liveSwitch": true } shows an identity switcher in the runtime header. Needs a business kind in audience. See Switching identity.
privacyUrl, supportUrl, keywordsShown on the details page and used by search
supportedLocales, isRtlSupported, ageRating, screenshots, frameColorLanguages your pages support, right-to-left support, the age rating (e.g. everyone), details-page screenshots and the frame colour
runtime.orientationportrait to lock phones to portrait

Around the manifest, the registration also carries the app's appId, slug, categoryId, release version and changelog, the developer (name, website, support email) and the webhookUrl base (the platform appends /webhooks, /objects/search and so on).

Runtime modes#

runtime.cacheMode decides where your pages come from:

ModeBehaviourUse for
onlineEvery open loads from the network. Nothing is kept on the device.Dashboards with sensitive HTML
networkFirst (default)Normal HTTP caching; the HTTP cache is used when offline.Most apps
local ("installed")Android keeps your pages and static files on the device per release version and serves them from there. Only networkOnlyPaths (default /api/) go to the network. precacheUrls are fetched in the background after the first open. iOS uses the web view's HTTP cache.Apps that should feel installed

Rules for local:

  • Never put personal data in HTML. Render it in the browser from your API.
  • Every user-specific or changing response must sit under a networkOnlyPaths prefix (APIs, uploads).
  • Responses that set cookies are never kept.
  • New pages reach users only with a new release version, which replaces the device copy automatically.

Display#

runtime.display sets the bar above your app:

ValueBarAvailable to
standardSALOPHA bar showing your page's domainEvery app (always for third-party apps)
immersiveCompact bar in your app's colour, without the domainOfficial apps and trusted developers

Splash and ready#

From the tap, SALOPHA shows your splash (logo and colours, no loading text) until the page calls ready(). SDK 1.1+ calls it automatically after initialize() and the window load event. To wait for your first screen, construct the SDK with autoReady: false and call app.ready() yourself. Two manifest values bound the wait:

  • splashMinMs: the splash stays at least this long, so it never flashes.
  • readyTimeoutMs: the longest the host waits for ready() before revealing the page anyway.

Platforms and versions#

  • platforms lists where the app is offered. Add web and desktop once your app uses SDK 1.3 (see Web and desktop).
  • minHostVersion is the oldest SALOPHA app that can open your app: 0.1.5 for bridge protocol 1.1, 0.1.6 for chat actions (protocol 1.2). Older hosts simply don't offer what they can't run.
  • minSdkVersion is the oldest SDK the host should accept from your page.

Registration file#

For apps the SALOPHA team operates, a registration file does the whole registration in one command. It creates or updates the developer and the app (published), approves the declared scopes, freezes a release when version is new, issues client credentials (the secret is printed or written once), and optionally registers an event-signing key and the webhook base URL.

node dist/src/scripts/register-miniapp.js <file.json> [--rotate-secret] [--secrets-out <file>] [--event-key <spki.pem>]
{
  "appId": "my_shop",
  "slug": "my-shop",
  "categoryId": "shopping",
  "version": "1.0.0",
  "developer": { "id": "dev_my_company", "name": "My Company", "website": "https://example.com", "supportEmail": "[email protected]" },
  "changelog": { "ar": "الإصدار الأول", "en": "First release" },
  "webhookUrl": "https://shop.example.com/api/v1/platform",
  "manifest": {
    "name": { "ar": "متجري", "en": "My Shop" },
    "shortDescription": { "ar": "…", "en": "…" },
    "icon": { "source": "network", "value": "https://shop.example.com/icon-512.png" },
    "launchUrl": "https://shop.example.com/",
    "allowedOrigins": ["https://shop.example.com"],
    "ownership": "partner",
    "platforms": ["android", "ios", "web", "desktop"],
    "supportedCountries": ["IQ"],
    "supportedLocales": ["ar", "en"],
    "minSdkVersion": "1.3.0",
    "minHostVersion": "0.1.6",
    "scopes": ["profile.basic", "notifications.service", "share.object", "addresses.read"],
    "autoGrantScopes": [],
    "branding": { "primaryColor": "#0F766E", "onPrimaryColor": "#FFFFFF", "logoUrl": "https://shop.example.com/logo.png", "iconUrl": "https://shop.example.com/icon-512.png", "splashStyle": "logoAndName" },
    "runtime": { "cacheMode": "local", "networkOnlyPaths": ["/api/", "/uploads/"], "precacheUrls": ["/"], "display": "standard", "allowShortcut": true, "splashMinMs": 700, "readyTimeoutMs": 8000 },
    "shareableObjectTypes": ["item"],
    "transactionTypes": ["shop_order"],
    "privacyUrl": "https://shop.example.com/privacy",
    "supportUrl": "https://shop.example.com/help"
  }
}

What the console manages#

  • Edit: the manifest, including branding, runtime mode, display, the shortcut switch, splash timings, automatic sign-in scopes and chat actions.
  • Versions: create a release, then publish it (with a rollout percentage).
  • Permissions: approve each requested scope.
  • Integration: the webhook base URL and event-signing keys.
  • Overview: rotate the client secret (shown once) and the kill switch.
  • Analytics: subscribers (users who opened the app at least once), daily, weekly and monthly active users, opens, favourites, home-screen shortcuts, notification opt-ins and sends, rating, 30 and 90-day series, and a searchable subscriber list.