Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@ingrain/ingrain-react
Advanced tools
Ingrain (ingrain.dev) React components for display user activity audit trails
This is the React UI Components package for Ingrain.
Ingrain is the fastest and easiest way to integrate activity audit trails in your app. Log a trail of user activities and employ our easy-to-integrate components to display these actions within your app's interface, offering your users a transparent view of their account activities.
If you only need the client side SDK, you can check out Ingrain Client SDK.
npm i @ingrain/ingrain-react
or with yarn
:
yarn add @ingrain/ingrain-react
Ingrain requires your application to be wrapped in the <IngrainProvider/>
context.
If using Create React App, set REACT_APP_INGRAIN_PUBLISHABLE_KEY
to your publishable key in your .env.local
file to make the environment variable accessible on process.env
and pass it as the publishableKey
prop.
You will also need to obtain and pass in your user's JWT.
import { render } from 'react-dom';
import { IngrainProvider, UserActivity, EntityActivity } from '@ingrain/ingrain-react';
const publishableKey = process.env.REACT_APP_INGRAIN_PUBLISHABLE_KEY;
const userJwt = getUserJWT(); // Define how you can obtain your user's JWT
render(
<IngrainProvider
theme={{ mode: 'light' }} // or set it to dark mode. You can also customize your colors here.
opts={{
publishableKey,
getUserJwtToken: () => {
return userJwt;
},
}}
>
<App />
</IngrainProvider>,
document.getElementById('root'),
);
function App() {
return (
<>
{/* Activity timeline based on user */}
<UserActivity userId={'user-id-here'}>
{/* Activity timeline based on entity e.g. access token changes */}
<EntityActivity entityId={'entity-id-here'}>
</>
);
}
You can start from Introduction or jump straight to React UI Components
We're open to all community contributions! If you'd like to contribute in any way, please read our contributing guidelines
FAQs
Ingrain (ingrain.dev) React components for display user activity audit trails
The npm package @ingrain/ingrain-react receives a total of 0 weekly downloads. As such, @ingrain/ingrain-react popularity was classified as not popular.
We found that @ingrain/ingrain-react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.