
Security News
eMudhra, Brotli, and the Long Tail of a Security Fix
Fixes for eMudhra and Brotli are out. Getting them everywhere they’re needed means tracking down bundled libraries, runtimes, and certificate stores.
@litemetrics/react
Advanced tools
React bindings for Litemetrics analytics. Provider component and hooks for tracking pageviews and custom events.
npm install @litemetrics/react
import { LitemetricsProvider } from '@litemetrics/react';
function App() {
return (
<LitemetricsProvider
siteId="your-site-id"
endpoint="https://your-server.com/api/collect"
>
<YourApp />
</LitemetricsProvider>
);
}
useTrackEventTrack custom events from any component:
import { useTrackEvent } from '@litemetrics/react';
function SignupButton() {
const track = useTrackEvent();
return (
<button onClick={() => track('Signup', { plan: 'pro' })}>
Sign Up
</button>
);
}
usePageViewManually trigger a pageview:
import { usePageView } from '@litemetrics/react';
function Page() {
usePageView(); // Tracks on mount
return <div>...</div>;
}
useLitemetricsAccess the full tracker instance:
import { useLitemetrics } from '@litemetrics/react';
function UserProfile({ user }) {
const tracker = useLitemetrics();
useEffect(() => {
tracker.identify(user.id, { name: user.name });
}, [user]);
return <div>...</div>;
}
// app/providers.tsx
'use client';
import { LitemetricsProvider } from '@litemetrics/react';
export function Providers({ children }: { children: React.ReactNode }) {
return (
<LitemetricsProvider
siteId="your-site-id"
endpoint="https://your-server.com/api/collect"
>
{children}
</LitemetricsProvider>
);
}
// app/layout.tsx
import { Providers } from './providers';
export default function RootLayout({ children }) {
return (
<html><body>
<Providers>{children}</Providers>
</body></html>
);
}
MIT
FAQs
React bindings for Litemetrics analytics (hooks + provider)
The npm package @litemetrics/react receives a total of 0 weekly downloads. As such, @litemetrics/react popularity was classified as not popular.
We found that @litemetrics/react 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.

Security News
Fixes for eMudhra and Brotli are out. Getting them everywhere they’re needed means tracking down bundled libraries, runtimes, and certificate stores.

Threat Research
/Security News
Socket uncovered secret-stealing workflows that ran in LiteLLM’s GitHub repository 11 days before the supply chain attack on PyPI and Docker.

Security News
Cloudflare introduces tsrs, a Rust port of TypeScript’s compiler promising faster checks and lower memory use, with the TypeScript team’s help.