JavaScript SDK
Easy Labs JavaScript SDK (@easylabs/browser) — installation, quickstart, and API reference.
@easylabs/browser is the official Easy Labs SDK for JavaScript.
It is a framework-agnostic vanilla-JS client. Use it from Vue, Svelte, Angular, Solid, HTMX, plain HTML, or anywhere else you ship JavaScript to a browser. Every method on the typed EasyApiClient is available — list customers, create payment links, manage subscriptions, query treasury — and on top of that the package ships three browser-only payment surfaces:
- Embedded Checkout —
mountEmbeddedCheckout, the drop-in iframe for the hosted Easy Checkout experience. - Elements —
mountCardNumberElement,mountCardExpirationDateElement,mountCardVerificationCodeElement, andmountTextElementfor building custom card forms with iframed PCI-isolated inputs, plustokenizeto convert them into a token reference. - Wallets —
createApplePayButtonandcreateGooglePayButtonfor native wallet checkout.
Pick whichever fits the integration: hosted iframe when you want zero PCI scope and zero design work, Elements when you want to render your own form, wallets when you want the buyer's device to drive payment.
If you're on React, install @easylabs/react instead — it wraps this same client surface in components and hooks. For server-side code (Node, Bun, edge runtimes), use @easylabs/node, which adds webhook signature verification.