mirror of
https://github.com/hanzoai/insights-node.git
synced 2026-10-30 20:01:53 +00:00
master
Two thousand and twenty-one packages carried more than one spec across this estate — eslint alone in a hundred and four forms — and a package resolved twice is two copies at run time, which is how react-hook-form came to report "two different types with this name" from files nobody had edited. None do now. The number lives in the catalog: a manifest names the package, the workspace names the version. Where a manifest cannot reach a catalog it still carries the one version, because the table is the source either way.
Hanzo Insights Node.js SDK
Note: The Node.js SDK code has moved to hanzoai/insights-js — use
@hanzo/insights-nodeinstead.
Install
npm install @hanzo/insights-node
Usage
import { Insights } from '@hanzo/insights-node'
const insights = new Insights('YOUR_API_KEY', {
host: 'https://insights.hanzo.ai'
})
insights.capture({
distinctId: 'user_123',
event: 'signed_up',
properties: { plan: 'pro' }
})
await insights.shutdown()
Upstream
This is a branded fork. Active development is in hanzoai/insights-js/packages/node.
To sync upstream:
git remote add upstream https://github.com/PostHog/posthog-node.git
git fetch upstream
git merge upstream/main
Languages
JavaScript
100%