PostHogOpen-source product analytics and context layer for apps
TianjiCombined web analytics, uptime, and server status
PostHog vs Tianji
How PostHog and Tianji compare on popularity, activity, license and platforms: two open-source Web & Product Analytics projects, both alternatives to Google Analytics 4.
At a glance
- PostHog has more GitHub stars (41.2k vs 3.1k, about 13× as many).
- Both are actively maintained (last commits today and today).
- PostHog uses MIT; Tianji uses Apache-2.0 (both permissive).
- Both can be self-hosted.
- PostHog is the older project (repository started 2020; Tianji in 2023).
Side by side
| PostHog | Tianji | |
|---|---|---|
| GitHub stars | ★ 41,198 | ★ 3,126 |
| Forks | 3,743 | 202 |
| Last commit | today | today |
| Latest version | desktop-v0.61.1137 | v1.34.7 |
| Repository started | January 2020 | August 2023 |
| License | MIT · permissive | Apache-2.0 · permissive |
| Self-hosted | Yes | Yes |
| Platforms | Web, Linux, Docker, CLI | Docker |
| Main language | Python | TypeScript |
| Alternative to | Amplitude, Fathom Analytics, FullStory, Gainsight PX, Google Analytics 4, Google Analytics for Firebase +4 | Google Analytics, Google Analytics 4, Pirsch |
Highlighted: more stars or forks, or a last commit at least two weeks more recent. Data from GitHub, updated 27 November 2026.
PostHog
PostHog ingests analytics, session replays, errors, logs, and related product data so teams and agents can query and act on it. It ships feature flags, experiments, surveys, and warehouse tooling in one platform.
Key features
- Product and web analytics
- Session replay and heatmaps
- Feature flags and experiments
- Error tracking and logs
- Surveys and in-app support
- Data warehouse and pipelines
Tianji
Tianji bundles website analytics, uptime monitoring, and server status reporting in one open-source application for lightweight operations insight.
Key features
- Website analytics
- Uptime monitoring
- Server status reporting
- Status pages
- Telemetry collection
- OpenAPI interface