@fhevm/vue-sdk

Vue composables and plugin for FHEVM integration built on top of @fhevm/sdk. Reduces boilerplate by 60-85% compared to using the core SDK directly through a plugin pattern that manages client lifecycle, encryption/decryption composables with built-in reactive states, and automatic type conversions for handle formatting and signer creation. Designed for Vue 3, Nuxt 3, Vite, and other Vue applications.

πŸ“¦ Installation

Note: Packages are not published to npm yet. Use the monorepo workspace for development.

pnpm add @fhevm/vue-sdk

🧩 Architecture

FHEVM-VUE-SDKS

πŸš€ Quick Start

Step 1: Initialize polyfills in your main.ts:

Step 2: Use composables in your components:

Plugin Setup

πŸ“š API Reference

Plugin

Composables

πŸ“ Folder Structure

πŸ“– Example

See the Vue example for a complete working implementation with Viem integration.

Last updated