
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
@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 161 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
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.