
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
wallet-ux is a tiny, zero-dependency TypeScript library that normalizes user-facing wallet behavior across all EIP-1193 providers.
It gives developers a consistent set of UX states like:
connectingconnectedwaitingForSignaturependingTransactionuserRejectedtransactionSuccesstransactionErrorswitchingNetworkdisconnectederrorSomething no existing library (wagmi, viem, ethers.js, web3.js) provides.
npm install wallet-ux
import { createWalletUX } from 'wallet-ux';
const wallet = createWalletUX({
provider: window.ethereum,
});
wallet.onStateChange(state => {
console.log('UX State:', state);
});
await wallet.connect();
await wallet.sendTransaction({
to: '0x...',
value: '0x1',
});
idle
connecting
connected
waitingForSignature
waitingForTransaction
pendingTransaction
transactionSuccess
transactionError
switchingNetwork
userRejected
error
disconnected
These states eliminate hundreds of lines of custom wallet-handling logic.
createWalletUX({ provider })Returns:
{
getState(): WalletUXState;
onStateChange(cb: (state) => void): void;
connect(): Promise<string>;
sendTransaction(tx): Promise<any>;
switchNetwork(chainId: number): Promise<void>;
reset(): void;
}
Install:
npm install wallet-ux-react
Usage:
const { state, connect } = useWalletUX(window.ethereum);
See the /examples folder in the repo:
basic.js – minimal integration examplePRs are welcome!
If this project helps you, please ⭐ star the repo — it helps visibility and adoption.
MIT License
© 2025
FAQs
Universal Web3 Wallet UX state machine for EIP-1193 providers.
We found that wallet-ux demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.