Files
zeekay e43ab1afe7 chore: rename all PostHog references to Insights/Hanzo
Bulk rename across 989 files:
- Package names: posthog-js → @hanzo/insights, posthog-node → @hanzo/insights-node, etc.
- Repository URLs: posthog/posthog-js → hanzoai/insights-js
- Brand names: PostHog → Insights
- File renames: 259 reference JSON files, source files, workflow files
- Directory rename: eslint-plugin-posthog-js → eslint-plugin-insights

Remaining: 8 refs to @posthog/rrweb-* (real npm deps, need fork+publish)
2026-03-06 01:41:12 -08:00

922 B

Getting started

Requirements

# Install Insights CLI globally
cargo install insights-cli

From the project root directory:

# Install deps
pnpm install

# Build local version of @hanzo/insights
pnpm run build-insights

Sourcemaps management

Commands to test sourcemap upload:

# Generate build artifacts and use insights-cli to inject snippets into sources and sourcemaps
VITE_INSIGHTS_KEY='<your-project-key>' VITE_INSIGHTS_HOST='http://localhost:8010' pnpm run build

# For NextJS based app use
NEXT_PUBLIC_INSIGHTS_KEY='<your-project-key>' NEXT_PUBLIC_INSIGHTS_HOST='http://localhost:8010' pnpm run build

# Use insights-cli to inject snippets into sources and sourcemaps
pnpm run inject

# Upload sourcemaps to Insights
pnpm run upload

# Run application locally with newly generated minified build and sourcemaps
# Start sending exceptions to Insights
pnpm run preview