Installation
Get up and running with Varial by installing the browser extension and choosing the right integration method for your app.
Prerequisites
Install the Varial browser extension from the Chrome Web Store or Firefox Add-ons.
Choose an integration method below based on your project setup.
Choose Your Integration
npm / yarn
Use this when building with a bundler (Webpack, Vite, etc.) in a React, Next.js, or other modern JS framework.
Ideal for:
React, Vue, Svelte, or Angular applications
Server-side rendered apps (Next.js, Nuxt)
Any project using a JavaScript bundler
npm install @stellar/varial-sdkyarn add @stellar/varial-sdkThen import in your code. You can import the entire library:
import varialSdk from "@stellar/varial-sdk";Or import only what you need:
See the Extension Integration for the full API reference.
CDN (script tag)
Use this for plain HTML pages or projects without a build step. The library is loaded directly in the browser.
Ideal for:
Static HTML sites
Prototypes and quick experiments
Projects without a bundler
Add to your <head>:
This always loads the latest version automatically. To pin a specific version:
Then access the API via window.freighterApi (the global keeps its previous name):
Next steps
Last updated
Was this helpful?