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#
| Package | Version | Get it |
|---|---|---|
@salopha/mini-app-sdk (browser) | 1.6.0 | npm tarball · UMD · UMD minified |
@salopha/mini-app-server-sdk (Node.js server) | 1.6.0 | npm 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 runs | How your app opens | Notes |
|---|---|---|
| Android | Secure web view | Every bridge method; local runtime mode keeps your app on the device. |
| iPhone | Secure web view (WKWebView) | Every bridge method; home-screen shortcuts are not possible on iOS. |
SALOPHA Web (web.salopha.com) | Sandboxed frame, postMessage bridge | SDK 1.3; allow the frame with frame-ancestors. |
| macOS and Windows | Web view inside the desktop app | SDK 1.3; getContext().platform is desktop. |
| Linux | The system browser | Sign-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.