Frontend Integration
Build dApps on Specter using standard Ethereum frontend libraries. Specter is fully EVM-compatible, so ethers.js, viem, wagmi, RainbowKit, and all Ethereum tooling work out of the box.
Supported libraries
| Library | Purpose |
|---|---|
| viem | TypeScript-first Ethereum client |
| ethers.js v6 | Battle-tested Ethereum library |
| wagmi | React hooks for Ethereum |
| RainbowKit | Wallet connection UI |
| snarkjs | Client-side ZK proof generation |
| circomlibjs | Poseidon hashing in JavaScript |
Quick setup
npm install viem ethers snarkjs circomlibjs
Next steps
- Chain Config — viem/ethers chain definitions
- viem & ethers.js — contract interaction examples
- Client-Side ZK — browser-based proof generation
- Building dApps — end-to-end dApp tutorial