Skip to content

Repository files navigation

analyitics

First-party analytics you own — browser SDK, pluggable ingest, zero vendors.

pnpm install
pnpm dev
Marketing http://localhost:5173
App http://localhost:5173/app.html
Dashboard http://localhost:5173/dashboard.html
API http://localhost:8787

Open the dashboard first — it boots with seeded history and an SSE live feed.

// browser
import { createAnalytics } from '@altitudems/analytics'
const analytics = createAnalytics({ endpoint: '/ingest', app: 'app' })
analytics.capture('feature_used')

// server
import { registerIngest, type AnalyticsStore } from '@altitudems/analytics-server'
registerIngest(app, { store: myStore, writeKey: '…' })

Built with Vite+ (vp check, vp test, vp pack).

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages