@winsznx/react
v0.1.5
Published
React hooks and providers for integrating PULSE into AppKit, wagmi, and Stacks apps.
Readme
@winsznx/react
React hooks and providers for PULSE apps built with AppKit, wagmi, and Stacks wallets.
The package is published to npmjs and GitHub Packages under the @winsznx scope.
Install
npm install @winsznx/sdk @winsznx/reactCreate your provider wrapper in a client component so the wallet and auth hooks can read browser session state.
For AppKit and wallet-aware flows, install the matching peer dependencies in the consuming app:
npm install @reown/appkit @stacks/connect @stacks/transactions viem wagmiIncluded
PulseAuthProviderandusePulseAuthPulseStacksProviderandusePulseStacksusePulseContractfor Base contract reads and writesuseUnifiedContractfor Base or Stacks routinguseStacksWalletfor AppKit-based Stacks sessionsPulseAccessGatefor simple auth-aware UI gating
useStacks() is available as a short alias of usePulseStacks().
useStacksWallet() is useful when you need an AppKit-specific isStacksConnected guard for Stacks-only actions.
For mixed-chain UI, start with useUnifiedContract() and only drop to the chain-specific hooks when you need network-specific behavior.
