STON.fi npm Loader Lets Developers Mount Omniston Swap Widget via CDN at Runtime

STON.fi has released @ston-fi/omniston-widget-loader, a lightweight npm package that allows developers to programmatically load the Omniston swap widget into JavaScript applications at runtime. Unlike a standard npm library, the package acts only as a loader — the actual widget bundle is hosted on STON.fi's CDN and fetched when requested. This CDN-based distribution model means compatible updates and fixes are delivered automatically within a major version, without requiring developers to reinstall or rebundle the widget. The loader is designed to integrate naturally with frameworks such as React, Vue, Svelte, and Angular, giving developers control over when and where the widget mounts. Before production deployment, STON.fi recommends verifying widget loading, TON Connect manifest accessibility, application lifecycle management, and swap configuration to avoid connection or duplication issues.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in