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

1.6 KiB

Insights Remix Playground

This is a basic Remix application demonstrating Insights integration following the official Insights Remix documentation.

Features

  • Automatic pageview tracking with capture_pageview: 'history_change'
  • Custom event capture using Insights React hooks
  • Insights React Provider integration
  • Proper Vite configuration for SSR support
  • Navigation header for multi-page testing
  • Media page with base64 images for replay testing

Setup

Quick Start

Run the automated setup script:

./bin/localdev.sh

This will:

  1. Build the Insights packages from the repo root
  2. Create tarballs in the target directory
  3. Set up symlinks
  4. Install dependencies
  5. Start the dev server

Manual Setup

  1. Build and package Insights libraries from the repo root:
cd ../..
pnpm build
pnpm package
  1. Return to the Remix playground and install dependencies:
cd playground/remix
pnpm install
  1. Start the development server:
pnpm dev
  1. Open http://localhost:5173 in your browser

Example Pages

  • Home (/) - Main page with custom event capture button
  • Media (/media) - Base64 image generation and testing for session replay

Additional Resources