Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

mountly-svelte

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mountly-svelte

Svelte adapter for mountly widgets

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

mountly-svelte

Svelte adapter for mountly widgets.

Wraps a Svelte component constructor as a framework-agnostic WidgetModule with idempotent mount / unmount, shadow-DOM encapsulation, and a light-DOM fallback for elements that reject shadow roots.

Install

pnpm add mountly-svelte
pnpm add svelte

svelte is a peer dependency, so install it in the host project.

Use

import { createWidget } from "mountly-svelte";
import MyComponent from "./MyComponent.svelte";
import styles from "./styles.generated.css";

const widget = createWidget(MyComponent, { styles });

widget.mount(container, { /* props */ });
widget.unmount(container);

mount() is idempotent, so calling it again with new props re-renders cleanly.

Companion Packages

License

MIT

FAQs

Package last updated on 02 May 2026

Did you know?

Socket

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.

Install

Related posts