
Security News
The Code You Didn't Write Is Still Yours to Defend
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.
@cometchat/cards-react
Advanced tools
A React component for rendering CometChat Card Schema JSON. This is a thin wrapper around @cometchat/cards that mounts the vanilla DOM output into a React component with full lifecycle management.
CometChatCardActionEventsThe package is a pure renderer. It doesn't talk to the CometChat SDK, doesn't manage message lifecycle, and doesn't know about your app's routing. You decide what each action does.
npm install @cometchat/cards-react
@cometchat/cards-react includes @cometchat/cards as a dependency — no need to install both.
react >= 17.0.0react-dom >= 17.0.0import { CometChatCardView } from "@cometchat/cards-react";
function CardMessage({ cardJson }: { cardJson: string }) {
return (
<CometChatCardView
cardJson={cardJson}
themeMode="auto"
onAction={(event) => {
console.log("action:", event.action.type, "from", event.elementId);
}}
/>
);
}
Refer to the Integration Steps to integrate the react cards into your app.
For integration issues, create a support ticket or seek real-time support via the CometChat Dashboard.
FAQs
CometChat Card Schema renderer — React wrapper
We found that @cometchat/cards-react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 14 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
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.