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

986 B

Insights State Management Logging Examples

This is a comparison of Insights logging integrations with different state management libraries using a todo list application built with Next.js.

Examples Included

  • Redux: Uses Redux Toolkit with insightsReduxLogger middleware
  • Kea: Uses Kea with insightsKeaLogger plugin (cleaner API)

To run it

pnpm i && pnpm dev

Then visit:

Features Demonstrated

  • Action and state logging with Insights
  • Rate limiting to prevent log flooding
  • State diffing (only log changed values)
  • Action/state masking for sensitive data
  • Performance monitoring (slow action detection)
  • Different API styles (Redux-specific vs generic)

Apologies to the future traveller, the example todo app is entirely AI slop