A developer testing tool for the Salla Embedded SDK.
This test console allows you to simulate and debug the communication between an embedded third-party app (iframe) and the Salla Dashboard (host). It sends and receives events using the @salla.sa/embedded-sdk package.
The test console demonstrates the complete authentication flow:
1. embedded.init() - Initialize SDK and get layout info
2. embedded.auth.getToken() - Get token from URL (?token=XXX)
3. Verify token with Salla API
4. embedded.ready() - Signal app is ready (removes host loading)
OR embedded.destroy() - Exit embedded view
- Add the deployment link for this app to your test app in Salla Partners
- "Run App" from the installed app page in merchant dashboard
- The console will auto-run the bootstrap flow
- Use the buttons to trigger and test the available events, or use the playground to test through code
- You can monitor the message log for incoming/outgoing events
# Install dependencies
pnpm install
# Start dev server
pnpm dev
# Build for production
pnpm buildMIT