mirror of
https://github.com/hanzoai/insights-js.git
synced 2026-10-30 18:34:19 +00:00
1.9 KiB
1.9 KiB
Hanzo Insights JS
Hanzo Insights JS SDK — fork of @hanzo/insights.
Provides analytics, feature flags, session replay, and A/B testing for web and Node.js applications connected to Hanzo Insights.
Packages
| Package | Description |
|---|---|
@hanzo/insights |
Browser SDK (analytics, session replay, feature flags) |
@hanzo/insights-node |
Node.js SDK |
@hanzo/insights-react |
React hooks (useInsights, InsightsProvider) |
@hanzo/insights-react-native |
React Native SDK |
@hanzo/insights-ai |
AI/LLM observability |
@hanzo/insights-core |
Core shared logic |
@hanzo/insights-types |
TypeScript types |
@hanzo/insights-lite |
Lightweight browser SDK |
@hanzo/insights-nuxt |
Nuxt.js module |
@hanzo/insights-nextjs |
Next.js configuration helper |
@hanzo/insights-rollup-plugin |
Rollup plugin |
@hanzo/insights-webpack-plugin |
Webpack plugin |
@hanzo/insights-convex |
Convex backend analytics |
Quick Start
import { Insights } from '@hanzo/insights'
const insights = new Insights('YOUR_API_KEY', {
api_host: 'https://insights.hanzo.ai'
})
insights.capture('user_signed_up', { plan: 'pro' })
Upstream
This is a branded fork of Insights/@hanzo/insights.
The Insights class is an alias for Insights — all Insights APIs work unchanged.
To sync upstream changes:
git remote add upstream https://github.com/hanzoai/@hanzo/insights.git
git fetch upstream
git merge upstream/main