
Security News
Open VSX Begins Implementing Pre-Publish Security Checks After Repeated Supply Chain Incidents
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.
@salla.sa/embedded-sdk
Advanced tools
Communication bridge SDK for third-party apps embedded in the Salla Merchant Dashboard.
npm install @salla.sa/embedded-sdk
# or
pnpm add @salla.sa/embedded-sdk
# or
yarn add @salla.sa/embedded-sdk
import { embedded } from "@salla.sa/embedded-sdk";
async function bootstrap() {
try {
// Initialize SDK
const { layout } = await embedded.init({ debug: true });
// Get token
const token = embedded.auth.getToken();
if (!token) throw new Error("No token found");
// Verify token with your backend before signaling ready
const isValid = await fetch("/api/verify-token", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ token }),
}).then((res) => res.ok);
if (!isValid) throw new Error("Token is invalid");
// Signal app is ready only after successful verification
embedded.ready();
// Set up your app
embedded.page.setTitle("My App");
} catch (err) {
embedded.destroy();
}
}
bootstrap();
<script src="https://unpkg.com/@salla.sa/embedded-sdk/dist/umd/index.js"></script>
<script>
const embedded = Salla.embedded;
embedded.init({ debug: true }).then((result) => {
console.log("Layout:", result.layout);
embedded.ready();
});
</script>
The SDK provides modules for authentication, UI components, navigation, and page management:
getToken(), getAppId(), refresh(), introspect()loading, toast, modal, confirmsetTitle(), navigate(), redirect(), resize()setAction(), onActionClick(), clearAction()Full TypeScript support with exported types. See documentation for complete type reference.
| Format | File |
|---|---|
| ESM | dist/esm/index.js |
| CommonJS | dist/cjs/index.js |
| UMD | dist/umd/index.js |
| SystemJS | dist/system/index.js |
For complete API documentation, examples, and advanced usage, see the full documentation.
FAQs
Communication bridge SDK for embedded apps in Salla Dashboard
The npm package @salla.sa/embedded-sdk receives a total of 812 weekly downloads. As such, @salla.sa/embedded-sdk popularity was classified as not popular.
We found that @salla.sa/embedded-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.

Research
/Security News
Threat actors compromised four oorzc Open VSX extensions with more than 22,000 downloads, pushing malicious versions that install a staged loader, evade Russian-locale systems, pull C2 from Solana memos, and steal macOS credentials and wallets.

Security News
Lodash 4.17.23 marks a security reset, with maintainers rebuilding governance and infrastructure to support long-term, sustainable maintenance.