What problem does it solve?
Frontend UX mistakes in Ethereum dApps cause users to double-submit transactions, misunderstand address/value inputs, rely on stale state, and encounter confusing wallet errors that reduce trust and increase failed transactions.
Core Features & Use Cases
- Deterministic transaction button states: Enforces per-action pending states (disabled + spinner + correct label) until onchain confirmation.
- Four-state action flow: Guides UX from connect → network switch → approval → execution with correct ordering and fresh onchain status checks.
- Safe address and amount presentation: Standardizes address validation, copy/explorer/ENS handling, and adds USD context and human-readable decimals for ETH/tokens.
- RPC reliability and contract error translation: Promotes intentional provider usage, stable polling, and human-readable error mapping for reverts and wallet failures.
- Pre-publish product identity: Ensures OG/Twitter metadata, absolute reachable images, theming semantics, and branding checks before release.
Quick Start
Use frontend-ux to design your Ethereum dApp’s connect/approve/execute flows so every onchain action has immediate disabling, correct pending labels, and readable failures, while displaying addresses and token amounts with proper formatting and USD context.