GenClass is open source.Star on GitHub

GenClass and PostHog. Run them side by side.

PostHog records what people do in your app and captures the exceptions it throws. GenClass finds timing bugs that throw nothing, such as a stale response or a form sent twice, proves them by replaying the response order, and can send its detections into PostHog.

Each PostHog claim in the comparison links to PostHog's documentation, checked on 5 December 2026.

Verdict

PostHog for what visitors do. GenClass for stale responses and double submits.

Use PostHog for
What visitors do, and exceptions
Use GenClass for
Timing bugs that raise no error
Together
GenClass detections in PostHog
Side by side

PostHog's web SDK and GenClass, row by row.

PostHog web SDK and GenClass compared
QuestionPostHog web SDKGenClass
A stale response overwrites newer dataNot described. SourceExplore finds which value depends on response order; replay reproduces it (below).
A form is submitted twiceNot described. Three rapid clicks in about the same spot are a $rageclick event. SourceFlagged when two identical requests are in flight together, started by two separate user actions.
Session replayPlays back what users did, with request URLs and timing and console logs on for new projects. SourceRecordings and Live Watch, a beta, off by default.

"Not described" means the linked pages do not describe it, not that PostHog cannot do it.

Find and prove

Find the bug, replay it, keep a test.

  1. Explore

    @genclass/mcp reloads the page with responses delayed and reordered by a seed, and reports which value depends on the order.

  2. Replay

    It plays one finding's response order again, exactly.

  3. Regression test

    It writes a Playwright test that fails while the bug is there.

  4. In CI

    With chaos on, @genclass/playwright holds your tests' API requests for a seeded time, then lets them go unchanged.

Gitea's markdown preview
23 of 23 loads stale before the fix, 0 of 23 afterLoads where the newer response arrived first, on one app with a prepared patch: not a recall figure. A Gitea e2e test, run without GenClass, failed 20 of 20 before and passed 20 of 20 after.
Two small apps: RTK Query, TanStack Query
Planted stale race reported in 32 of 32 runs that ended stale, 0 of 36 false reportsEvery replay reproduced. The rules' author wrote both apps, so this checks the mechanism, not independent recall.

Method and misses: RESULTS.md, sections 21 and 27.

Works with PostHog

GenClass detections, in your PostHog project.

  1. Paste your project API key

    In the app's Integrations view on the dashboard, or with npx genclass connections add posthog. The host is PostHog's US or EU cloud, or your own public https address.

  2. Each likely detection becomes one event

    genclass detection, sent from GenClass's server through PostHog's capture API with person processing off: an anonymous event.

  3. What it holds

    Diagnosis, confidence, trigger, route (ids as :id, email addresses removed), versions, time, app and a dashboard link. No page text, visitor id or session id.

  4. Rate limits

    The same diagnosis on the same route at most once per UTC hour, and at most 60 events per app an hour.

PostHog alone

When PostHog alone is enough.

Your bugs throw

Exceptions are what PostHog's error tracking captures.

You want to see what visitors did

Replays, heatmaps and web analytics.

You ship behind flags

PostHog has feature flags. GenClass has no flags of its own, and its analytics have no custom events or ad-hoc queries.

Questions

Running GenClass next to PostHog.

Can a GenClass event open the replay of that visit?

No. Every event from one app has the same distinct id, so it cannot be joined to a PostHog replay, person or funnel.

Which detections reach PostHog?

The in-browser model's likely detections only, not explore or replay results. Detection rates, each next to its false-intervention rate: benchmarks.

Does forwarding cost extra?

No. It comes with every plan for apps within the plan's app limit, and needs telemetry on, the app's token and the app in a GenClass account (pricing).

Does GenClass change how my app behaves?

Not by default. Observe mode reports and changes nothing; guard mode is opt-in.

PostHog is a trademark of its owner. GenClass is not affiliated with it.

Talk to sales

Tell us about your team and what you need. A person writes back, usually within a day.