Files
zeekay 043ac58d3c chore: sweep upstream brand from ALL files; restore LICENSE/NOTICE attribution
Extends the sweep beyond packages/ to the whole repo (178 files): workflows,
.eslintrc, playground, examples, tooling, root docs. Zero upstream-brand refs and
zero such filenames outside the exemptions.

REVERTS A LICENSING ERROR (from earlier rebrand e43ab1af, not this sweep):
- LICENSE had its copyright holder rewritten to 'Insights'. Restored to the real
  holder: 'Copyright 2020 Posthog / Hiberly, Inc.' (+ Mixpanel, Inc.).
- NOTICE credited a non-existent upstream (github.com/getinsights/insights-js).
  Restored to the real one: github.com/PostHog/posthog-js.
Apache-2.0 4(c) requires retaining upstream attribution; rewriting a third
party's copyright line falsifies ownership. Both files are now excluded from the
guard and documented as exempt in LLM.md.

Also:
- Deleted junk: AGENTS.md~upstream_main (merge leftover), the now-obsolete
  rebrand script; renamed upload-*-s3.ts tooling (still used by cli.ts).
- Removed 42 stale playground/example pnpm-lock.yaml files: they pinned upstream
  packages the package.json no longer references. Regenerated on install —
  sed-ing a lockfile would corrupt its integrity hashes.
- Guard renamed no-posthog.yml -> brand-guard.yml and now assembles the pattern
  at runtime, so no filename or file content carries the string (the previous
  guard was swept by its own rule, inverting it to forbid 'insights').
2026-07-16 09:54:05 -07:00

54 lines
1.8 KiB
TypeScript

import Link from 'next/link'
const demos = [
{
title: 'Authentication',
href: '/auth',
description:
'Log in and out with insights.identify() and insights.reset(). Shows identity sync between client and server.',
},
{
title: 'Server-Side Flags',
href: '/server-flags',
description: 'Evaluate feature flags in server components using getInsights().',
},
{
title: 'Client Hooks',
href: '/client-hooks',
description: 'Use React hooks like useFeatureFlag and useActiveFeatureFlags.',
},
{
title: 'SSR Bootstrap',
href: '/ssr-bootstrap',
description: 'Feature flags available on first render with no flicker, using server-side bootstrap.',
},
{
title: 'Event Capture',
href: '/capture',
description: 'Capture custom events from client components with insights.capture().',
},
]
export default function Home() {
return (
<div>
<h1 className="text-3xl font-bold mb-2">@hanzo/insights-next Example</h1>
<p className="text-gray-600 mb-8">
Explore each demo to see how @hanzo/insights-next integrates with Next.js App Router.
</p>
<div className="grid gap-4 sm:grid-cols-2">
{demos.map((demo) => (
<Link
key={demo.href}
href={demo.href}
className="block p-6 bg-white rounded-lg border border-gray-200 hover:border-gray-300 hover:shadow-sm transition-all"
>
<h2 className="font-semibold mb-1">{demo.title}</h2>
<p className="text-sm text-gray-600">{demo.description}</p>
</Link>
))}
</div>
</div>
)
}