@aquarian-metals/coin-moebius-buy
v3.0.0
Published
Prebuilt buy-button bundle for <script>-tag use. Drop in one script and one <coin-moebius-buy> element. Published so jsDelivr/unpkg mirror it as a backup CDN; the primary host is sdk.coinmoebius.com.
Maintainers
Readme
@aquarian-metals/coin-moebius-buy
Prebuilt buy-button bundle for <script>-tag use. One script, one element, a working buy button with a provider-picker popup.
<script src="https://sdk.coinmoebius.com/latest/sdk.global.js"></script>
<coin-moebius-buy project-id="proj_xxxx" product-id="prod_xxxx" amount="20" currency="USD"> Buy now </coin-moebius-buy>sdk.coinmoebius.com is the primary host. This npm package exists so jsDelivr and unpkg mirror the exact same bundle as a backup CDN, updated on every release with no extra hosting step:
<script src="https://cdn.jsdelivr.net/npm/@aquarian-metals/coin-moebius-buy@3/sdk.global.js"></script>For a production site that wants to keep selling if one host hiccups, load the primary and fail over to the mirror:
<script
src="https://sdk.coinmoebius.com/latest/sdk.global.js"
onerror="this.onerror=null;var s=document.createElement('script');s.src='https://cdn.jsdelivr.net/npm/@aquarian-metals/coin-moebius-buy@3/sdk.global.js';document.head.appendChild(s);"
></script>Files
sdk.global.js— full bundle: registers<coin-moebius-buy>and exposesCoinMoebius.*onwindow.sdk.element.js— element-only build (no window globals).
Both are IIFE builds, so no module loader is required. To work with the SDK as a module in a build step, install @aquarian-metals/coin-moebius instead.
Versioning
Pin a major in the URL (@0, and @1 once 1.0 ships); within a major the path serves the latest minor and patch. The bundle is built from this monorepo's element source at release time.
