Start small.
Events, identity, sessions, and consent. The event core imports no external runtime modules.
@minihog/coreTypeScript · ESM · Tree-shakable
Capture events. Understand sessions. Import the features your app uses, and load them when your app is ready.
pnpm add @minihog/coreA small, explicit API
Keep your PostHog project. Send events through its ingestion APIs, with a client you can assemble feature by feature.
Explore the APIimport { createMiniHog } from '@minihog/core';
const analytics = createMiniHog('phc_…', {
apiHost: 'https://eu.i.posthog.com'
});
analytics.capture('something_good', {
project: 'your-next-idea'
});Events, identity, sessions, and consent. The event core imports no external runtime modules.
@minihog/corePageviews, flags, heatmaps, replay, and web vitals each have a separate import.
12 entry pointsLoad analytics after critical content or consent. The Nuxt module supports manual startup through start().
@minihog/nuxtTry it in your browser
The playground shows event properties, identity changes, consent, and flag evaluation. Everything stays in your tab.
Open playground