For the complete documentation index, see llms.txt. This page is also available as Markdown.

Installation

Get up and running with Varial by installing the browser extension and choosing the right integration method for your app.

Prerequisites

  1. Install the Varial browser extension from the Chrome Web Store or Firefox Add-ons.

  2. 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-sdk
yarn add @stellar/varial-sdk

Then import in your code. You can import the entire library:

import varialSdk from "@stellar/varial-sdk";

Or import only what you need:

Upgrading from @stellar/freighter-api? @stellar/varial-sdk is the same SDK under its new name, continuing from version 7.0.0. Swap the package and change the import path — method names, parameters and return types are the same. @stellar/freighter-api stays at 6.0.1 with no new releases: dapps already using it keep working, but new methods such as disconnect() are only in @stellar/varial-sdk.

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

I want to...
Go to

Connect my app to Varial

Sign a transaction

Add a token

Last updated

Was this helpful?