Type-Safe Analytics for Any Provider
Track events with full type safety. One library that works with PostHog, Segment, Mixpanel, and 15+ other analytics services.
Why @stacksee/analytics?
Fully Type-Safe
Define events once, get autocomplete and type checking everywhere. No more typos or wrong properties.
Provider Agnostic
Use PostHog, Bento, Pirsch, or any service. Switch providers without changing your tracking code.
Universal API
Same API works on client and server. Write once, track everywhere with full type safety.
Zero Dependencies
Core library has zero dependencies. Providers are optional and fully tree-shakeable.
User Context
Identify users once, context flows to all events automatically. Works on client and server.
Edge Ready
Works in serverless, edge runtimes, and long-running servers. Optimized for modern platforms.
See It In Action
Try the interactive playground below. Click around the product and watch events flow to multiple analytics providers in real-time.
Premium Wireless Headphones
Experience studio-quality sound with our flagship wireless headphones. Advanced noise cancellation, 40-hour battery life, and premium comfort.
Event Stream
0 events captured
No events yet
Interact with the product to see events
Works with Your Analytics Stack
Official support for popular providers, plus easy custom provider integration
Ready to Get Started?
Install @stacksee/analytics and start tracking type-safe events in minutes