
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
@river-build/react-sdk
Advanced tools
React Hooks for River SDK.
in the future:
yarn add @river-build/react-sdk
@river-build/react-sdk suggests you to use Wagmi to connect to River.
Wrap your app with RiverSyncProvider and use the useAgentConnection hook to connect to River.
[!NOTE] You'll need to use
useEthersSignerto get the signer from viem wallet client. You can get the hook from wagmi docs.
import { RiverSyncProvider, useAgentConnection } from "@river-build/react-sdk";
import { makeRiverConfig } from "@river-build/sdk";
import { WagmiProvider } from "wagmi";
import { useEthersSigner } from "./utils/viem-to-ethers";
import { wagmiConfig } from "./config/wagmi";
const riverConfig = makeRiverConfig("gamma");
const App = ({ children }: { children: React.ReactNode }) => {
return (
<WagmiProvider config={wagmiConfig}>
<RiverSyncProvider>{children}</RiverSyncProvider>
</WagmiProvider>
);
};
const ConnectRiver = () => {
const { connect, isConnecting, isConnected } = useAgentConnection();
const signer = useEthersSigner();
return (
<>
<button
onClick={async () => {
if (!signer) {
return;
}
connect(signer, { riverConfig });
}}
>
{isConnecting ? "Disconnect" : "Connect"}
</button>
{isConnected && <span>Connected!</span>}
</>
);
};
FAQs
React Hooks for River SDK
The npm package @river-build/react-sdk receives a total of 13 weekly downloads. As such, @river-build/react-sdk popularity was classified as not popular.
We found that @river-build/react-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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 is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.