
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.
compound-react-kit
Advanced tools
A complete React kit for interacting with Compound III protocol across all supported networks and markets.
npm install compound-react-kit
or
yarn add compound-react-kit
import { CompoundProvider, useGetAssetInfo, AssetInfoCard } from 'compound-react-kit';
import { providers } from 'ethers';
function App() {
const provider = new providers.Web3Provider(window.ethereum);
return (
<CompoundProvider
provider={provider}
chainId={1} // Ethereum Mainnet
initialMarket="USDC" // Optional
>
<YourComponent />
</CompoundProvider>
);
}
function YourComponent() {
// Using hooks approach
const { data, isLoading, error } = useGetAssetInfo(0);
if (isLoading) return <div>Loading...</div>;
if (error) return <div>Error: {error.message}</div>;
return (
<div>
{/* Using UI components approach */}
<AssetInfoCard assetIndex={0} />
{/* Or custom UI with hooks data */}
<div className="custom-card">
<h2>Asset Info</h2>
<p>Asset Address: {data?.asset}</p>
<p>Collateral Factor: {data?.borrowCollateralFactor.toString()}</p>
</div>
</div>
);
}
These examples demonstrate how to integrate Compound React with best practices.
For complete documentation, visit our documentation
MIT
FAQs
React hooks library for interacting with Compound III (Comet)
We found that compound-react-kit 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.