
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@thru/react-sdk
Advanced tools
React bindings for the Thru browser wallet. The package wraps `@thru/browser-sdk`, exposes context providers, and ships hooks for accessing connection state, accounts, and the typed Thru RPC client inside React applications.
React bindings for the Thru browser wallet. The package wraps @thru/browser-sdk, exposes context providers, and ships hooks for accessing connection state, accounts, and the typed Thru RPC client inside React applications.
npm install @thru/react-sdk
Note: React 18+ is required (declared as a peer dependency).
import { ThruProvider, useWallet, useAccounts } from '@thru/react-sdk';
function WalletPanel() {
const { connect, disconnect, isConnected, isConnecting } = useWallet();
const { accounts, selectedAccount } = useAccounts();
if (!isConnected) {
return (
<button onClick={() => connect()} disabled={isConnecting}>
{isConnecting ? 'Connecting…' : 'Connect Thru Wallet'}
</button>
);
}
return (
<section>
<p>Selected account: {selectedAccount?.address}</p>
<ul>
{accounts.map((account) => (
<li key={account.address}>{account.address}</li>
))}
</ul>
<button onClick={() => disconnect()}>Disconnect</button>
</section>
);
}
export function App() {
return (
<ThruProvider
config={{
iframeUrl: 'https://wallet.thru.org/embedded',
rpcUrl: 'https://grpc-web.alphanet.thruput.org',
}}
>
<WalletPanel />
</ThruProvider>
);
}
The provider creates a shared BrowserSDK instance and exposes:
useWallet() — connect/disconnect helpers plus access to the embedded provider APIuseAccounts() — subscribe to accounts and the current selectionuseThru() — raw context (including the underlying BrowserSDK and the Thru RPC client for data queries)FAQs
React bindings for the Thru browser wallet. The package wraps `@thru/browser-sdk`, exposes context providers, and ships hooks for accessing connection state, accounts, and the typed Thru RPC client inside React applications.
The npm package @thru/react-sdk receives a total of 164 weekly downloads. As such, @thru/react-sdk popularity was classified as not popular.
We found that @thru/react-sdk 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.