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.
import { initFhevmPolyfills } from '@fhevm/vue-sdk';
// Initialize polyfills before any other imports
initFhevmPolyfills();
import { createApp } from 'vue';
import { createFhevmPlugin } from '@fhevm/vue-sdk';
// ... rest of your imports