
Security News
Official Go SDK for MCP in Development, Stable Release Expected in August
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
app-usage-events-emitter-react
Advanced tools
A set of types, type checks, and type guards for simpler, safer, and easier to read code.
utility to easily emit app-usage-events from your app to the mhetrics platform
npm install @mhetrics/app-usage-events-emitter-react
Add the provider to your react app. This provider is responsible for
import { AppUsageEventsEmitter } from '@mhetrics/app-usage-events-emitter-react';
<AppUsageEventsEmitter
clientKey={config.mhetrics.clientKey}
captureHost={config.mhetrics.captureHost}
/>
With that, your app will automatically be emitting
Your app is now also configured to emit domain events. Domain events are custom events produced by your application's domain logic (a.k.a. business logic). Here is an example of how to emit domain events
import { emitDomainEvent } from '@mhetrics/app-usage-events-emitter-react';
await emitDomainEvent({
/**
* the name of this event
*/
name: 'conversion', // a conversion occurred
/**
* the scope of the domain that this event applies to
*/
scope: 'storefront', // a conversion from the storefront product
/**
* any adhoc details we want to associate with this event
*/
details: {
promocode: 'WINT23',
}
})
FAQs
A set of types, type checks, and type guards for simpler, safer, and easier to read code.
The npm package app-usage-events-emitter-react receives a total of 3 weekly downloads. As such, app-usage-events-emitter-react popularity was classified as not popular.
We found that app-usage-events-emitter-react demonstrated a not healthy version release cadence and project activity because the last version was released 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
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.