@txnlab/use-wallet-vue

Vue library for integrating Algorand wallets into decentralized applications
5,339 100
Install
npm install @txnlab/use-wallet-vue
Latest Version:5.1.1
Vue:3
License:MIT
Last Updated:Oct 22, 2026
Links: GitHub  ·  npm
Maintainer: txnlab

use-wallet

npm version License

A framework-agnostic Algorand wallet integration library with reactive adapters for React, Vue, SolidJS, and Svelte.

Features

  • Modular wallet adapters — install only the wallets you need; each wallet SDK is bundled in its own package
  • Factory function configuration with full TypeScript support
  • Switch between accounts, wallets, and networks reactively
  • Sign and send transactions, ARC-60 data signing, session restore
  • availableWallets list filtered by each wallet's declared network capabilities
  • Typed event emitter for observing wallet lifecycle events
  • ESM-only, tree-shakeable packages

Quick Start

Install the framework adapter (or the core package for vanilla JS/TS) plus the wallet adapters you want to support:

npm install @txnlab/use-wallet-react @perawallet/use-wallet-pera @txnlab/use-wallet-defly algosdk
import { pera } from '@perawallet/use-wallet-pera'
import { WalletManager, WalletProvider, useWallet } from '@txnlab/use-wallet-react'
import { defly } from '@txnlab/use-wallet-defly'

const manager = new WalletManager({
  wallets: [pera(), defly()],
  defaultNetwork: 'testnet'
})

function App() {
  return (
    <WalletProvider manager={manager}>
      <YourApp />
    </WalletProvider>
  )
}

Packages

Package Description
@txnlab/use-wallet Core library (framework-agnostic)
@txnlab/use-wallet-react React adapter
@txnlab/use-wallet-vue Vue adapter
@txnlab/use-wallet-solid SolidJS adapter
@txnlab/use-wallet-svelte Svelte adapter

Wallet adapters: Pera · Defly · Exodus · Kibisis · KMD · Lute · Mnemonic · W3 Wallet · WalletConnect · Web3Auth

A custom provider (built into core) supports integrating any other wallet, and third-party adapter packages work without changes to this repository — see the supported wallets docs.

Migrating from v4?

See the v4 to v5 migration guide. v4 documentation remains available at txnlab.gitbook.io/use-wallet/v4.

Visit txnlab.gitbook.io/use-wallet for docs, guides, and examples!

Become a sponsor!

Related Packages

@3njoylabs/aptos-wallet-adapter

Adapter for Aptos' Wallet

2,918
@vue-solana/nuxt

Nuxt module for Solana applications.

7,575 0
@interchainjs/vue

@interchainjs/vue is a JavaScript library providing vue hooks for interacting wi...

4,276 12
injective-vue

injective-vue is a JavaScript library providing vue hooks for interacting with i...

4,205 12
@vue-solana/vue

Vue plugin and composables for Solana applications.

7,249 0

Version History

Version Released Vue License
5.1.1 ^3.0.0 MIT
5.1.0 ^3.0.0 MIT
5.0.1 ^3.0.0 MIT
5.0.0 ^3.0.0 MIT
4.6.0 ^3.0.0 MIT
Pre-releases (35)
Version Released Vue License
5.2.0-next.3 ^3.0.0 MIT
5.2.0-next.2 ^3.0.0 MIT
5.2.0-next.1 ^3.0.0 MIT
5.1.0-next.2 ^3.0.0 MIT
5.1.0-next.1 ^3.0.0 MIT