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

Installation

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

Prerequisites

  1. Install the Freighter 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/freighter-api
yarn add @stellar/freighter-api

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

import freighterApi from "@stellar/freighter-api";

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:

Next steps

I want to...
Go to

Connect my app to Freighter

Connecting

Sign a transaction

Signing

Add a token

Token Management

Last updated

Was this helpful?