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.
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
PostHog's web SDK and GenClass, row by row.
| Question | PostHog web SDK | GenClass |
|---|---|---|
| A stale response overwrites newer data | Not described. Source | Explore finds which value depends on response order; replay reproduces it (below). |
| A form is submitted twice | Not described. Three rapid clicks in about the same spot are a $rageclick event. Source | Flagged when two identical requests are in flight together, started by two separate user actions. |
| Session replay | Plays back what users did, with request URLs and timing and console logs on for new projects. Source | Recordings 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 the bug, replay it, keep a test.
Explore
@genclass/mcpreloads the page with responses delayed and reordered by a seed, and reports which value depends on the order.Replay
It plays one finding's response order again, exactly.
Regression test
It writes a Playwright test that fails while the bug is there.
In CI
With chaos on,
@genclass/playwrightholds 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.
GenClass detections, in your PostHog project.
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.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.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.Rate limits
The same diagnosis on the same route at most once per UTC hour, and at most 60 events per app an hour.
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.
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.
Start in observe mode on one app, then connect PostHog in the Integrations view.
Get started freeGenClass and SentryPostHog is a trademark of its owner. GenClass is not affiliated with it.