Getting started

Build mini apps for SALOPHA

A mini app is your own website that opens inside SALOPHA, signs the user in automatically and talks to the app through a secure JavaScript bridge. These pages are everything you need to build, test and ship one.

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

What a mini app is#

A mini app is an HTTPS website you host. SALOPHA opens it from the Services tab, from a chat or from a link, inside a secure web view on Android and iPhone, in a sandboxed frame on SALOPHA Web, and in the desktop apps. The user never creates an account: your page receives a one-time sign-in code, your server exchanges it for the user's identity, and you keep your own session.

From the page you can use the phone's features through the bridge (location, saved addresses, camera and QR scanning, files, biometrics, sharing, maps, local storage, home-screen shortcuts, notifications). From your server you can notify the user, publish orders and bookings as live cards in their chats, answer searches users run from a chat, and connect your merchants to SALOPHA business chats.

How the pieces fit#

 SALOPHA app                          Hub API (api.salopha.com/v1)              Your app (your server)
 Services tab -> tap  --> POST /mini-apps/{id}/launch-sessions --> session + one-time code
 branded splash           (visibility, rollout, kill switch, automatic sign-in)
 web view (launchUrl?salopha_session&salopha_nonce) ---------------------------> your page
   bridge  <-- SDK: initialize() -> {locale, theme, appId, cacheMode, ...}
                                                               page -> POST /api/v1/auth/salopha {code, ...}
                                      POST /mini-apps/auth/token <-- your server (client id + secret)
                                      --> {sub, scopes, profile, accessToken}
                                                               your server: its own session
   SDK: ready() --> the splash fades out
   later: requestAuthCode() --> a fresh code (silent re-login)            your server --> POST /partner/notifications
  • Identity. Your app never sees a SALOPHA user id or token. It gets sub, a stable pairwise id (pw_…) that is different for every app. Use it as your user key.
  • Trust boundary. Everything that comes from the page is untrusted. Prices, ownership and statuses are decided by your server, and the client secret and signing keys live only there.
  • Platform name. The product name may change. Never hard-code it in your copy; read it from getAppInfo().hostName.

Start here#

Download the SDKs#

PackageVersionGet it
@salopha/mini-app-sdk (browser)1.6.0npm tarball · UMD · UMD minified
@salopha/mini-app-server-sdk (Node.js server)1.6.0npm tarball
npm install https://apps.salopha.com/sdk/v1/salopha-mini-app-sdk-1.6.0.tgz
npm install https://apps.salopha.com/sdk/v1/salopha-mini-app-server-sdk-1.6.0.tgz
<!-- Without a bundler: exposes window.Salopha -->
<script src="https://apps.salopha.com/sdk/v1/salopha-sdk.umd.min.js"></script>

Both packages have no runtime dependencies. The browser SDK ships as ESM, CommonJS and UMD with TypeScript types; the server SDK needs Node.js 18 or later.

Platforms#

Where SALOPHA runsHow your app opensNotes
AndroidSecure web viewEvery bridge method; local runtime mode keeps your app on the device.
iPhoneSecure web view (WKWebView)Every bridge method; home-screen shortcuts are not possible on iOS.
SALOPHA Web (web.salopha.com)Sandboxed frame, postMessage bridgeSDK 1.3; allow the frame with frame-ancestors.
macOS and WindowsWeb view inside the desktop appSDK 1.3; getContext().platform is desktop.
LinuxThe system browserSign-in works; other bridge methods answer not_in_host.

See Web and desktop for the details.

Get help#

Write to [email protected] to register an app, request scopes or report a problem. Register and ship apps yourself on the developer platform, or have the SALOPHA team register them from your manifest.