
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/browser-sdk
Advanced tools
Low-level browser SDK for embedding the Thru wallet experience. It manages the iframe-based embedded provider, forwards lifecycle events, and exposes a ready-to-use `Thru` RPC client alongside wallet account management utilities.
Low-level browser SDK for embedding the Thru wallet experience. It manages the iframe-based embedded provider, forwards lifecycle events, and exposes a ready-to-use Thru RPC client alongside wallet account management utilities.
npm install @thru/browser-sdk
import { BrowserSDK } from '@thru/browser-sdk';
// Configure the wallet iframe location and the RPC endpoint to talk to
const sdk = new BrowserSDK({
iframeUrl: 'https://wallet.thru.org/embedded',
rpcUrl: 'https://grpc-web.alphanet.thruput.org',
});
await sdk.initialize(); // injects the iframe once
// Observe lifecycle events
sdk.on('connect', ({ accounts }) => {
console.log('Connected accounts', accounts);
});
sdk.on('disconnect', () => console.log('Wallet disconnected'));
sdk.on('error', (err) => console.error('Wallet error', err));
// Trigger the wallet connect flow
const result = await sdk.connect();
const primary = result.accounts[0];
// Use the embedded Thru RPC client
const thru = sdk.getThru();
const account = await thru.accounts.get(primary.address);
// Disconnect when finished
await sdk.disconnect();
initialize, destroy)connect, disconnect, isConnected, selectAccount)connect, disconnect, lock, error, accountChanged)sdk.getThru() for querying on-chain data or submitting transactionsFAQs
Low-level browser SDK for embedding the Thru wallet experience. It manages the iframe-based embedded provider, forwards lifecycle events, and exposes a ready-to-use `Thru` RPC client alongside wallet account management utilities.
The npm package @thru/browser-sdk receives a total of 654 weekly downloads. As such, @thru/browser-sdk popularity was classified as not popular.
We found that @thru/browser-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.