Alternatives / June

5 open-source alternatives

5 Best Open Source June Alternatives in 2026

Looking for an open source June alternative? We compared 5 open source product analytics and event tracking tools by license, session replay, self-hosting, and maintenance. PostHog is the broadest, while Trench and Aptabase are lighter and Countly has a restricted free edition.

Maxime DERAME's profile

Written by Maxime DERAME

Last updated:

Best June alternatives at a glance

AlternativeBest forLicense
PostHogProduct analytics with flags and experimentsMIT + ee directory
OpenReplaySession replay with funnels and heatmapsAGPL-3.0 + ee directory
CountlyMobile, web, and desktop analyticsCountly Lite license (restricted)
AptabasePrivacy-first app analyticsAGPL-3.0
TrenchEvent tracking on ClickHouse and KafkaMIT

How we chose these June alternatives

We looked for open-source tools that track user events and product usage like June. We verified each project's license, recent activity, stars, and self-hosting in its repository, and flag licenses that are not standard open source. See our methodology for the full criteria.

Closest to June

PostHog is the closest all-in-one: product analytics with feature flags, A/B testing, and session recording, self-hosted or in its cloud. OpenReplay focuses on session replay with funnels, journeys, and heatmaps.

Lighter options

Trench is an MIT event tracking service built on ClickHouse and Kafka with SQL and REST querying and Segment-compatible events. Aptabase is privacy-first analytics for mobile and desktop apps with simple SDKs, and does not target web analytics.

Important: licenses to check

PostHog is MIT with an ee directory under a separate license, and OpenReplay is AGPL-3.0 with an ee directory. Countly's self-hosted edition is under a restricted Countly Lite license, so it is not standard open source.

License details

PostHog and Trench are MIT. OpenReplay and Aptabase are AGPL-3.0. Countly uses the Countly Lite license.

Maintenance status

PostHog, OpenReplay, Countly, and Aptabase had commits within days or weeks of this update. Trench's last commit was in April 2026.

Why look for a June alternative?

June is a proprietary SaaS focused on B2B product analytics, so your event data lives on its servers and pricing follows tracked users. Open-source tools can be self-hosted, keep data on your infrastructure, and avoid per-user pricing, but they have less B2B-specific reporting out of the box.

posthog.com
1

PostHog

Open-source product analytics suite.

PostHog is a product analytics suite with event analytics, funnels, retention, experiments, feature flags, and session recording, available self-hosted or in PostHog Cloud. The repository is MIT except for the ee directory, which has its own license.

40.3K3.5KMIT + ee directorySelf-hosted

Pricing: Free to self-host the open-source parts; the cloud has a free tier and usage-based pricing.

  • Broad product analytics with experiments and flags
  • Session recording and surveys
  • Very large community
  • The ee directory has a separate license
  • Self-hosting at scale is heavy
openreplay.com
2

OpenReplay

Self-hosted session replay and product analytics.

OpenReplay is a self-hostable session replay and product analytics platform with co-browsing, heatmaps, and error tracking. It is AGPL-3.0 with an ee directory, and enterprise features such as SSO are in its paid editions. Self-hosting in production is free.

13K867AGPL-3.0 + ee directorySelf-hosted

Pricing: Free to self-host; cloud and enterprise plans are paid.

  • Session replay with co-browsing and heatmaps
  • Self-hosting for data control
  • Active development
  • Enterprise features are paid
  • Heavy to run at scale
countly.com
3

Countly

Analytics and engagement platform for apps and the web.

Countly is a privacy-first analytics and engagement platform for mobile, web, and desktop applications, with real-time monitoring and crash reports, available in a free Community edition and a paid Enterprise edition. The free edition is covered by the Countly Lite license, which is not a standard open-source license and restricts non-commercial use.

5.9K980Countly Lite license (restricted)Self-hosted

Pricing: Free Lite edition under its license; Enterprise is paid.

  • Mobile, web, and desktop analytics
  • Crash reports and real-time monitoring
  • Cloud and self-hosted options
  • Custom license that restricts commercial use
  • Enterprise features are paid
aptabase.com
4

Aptabase

Privacy-first analytics for mobile and desktop apps.

Aptabase is an AGPL-3.0 open-source analytics tool for mobile, desktop, and web apps that is simple and privacy-first, with SDKs for many platforms. It is built for apps rather than websites and can be self-hosted.

1.8K141AGPL-3.0Self-hosted

Pricing: Free to self-host; the cloud is paid.

  • Built for mobile and desktop apps
  • Simple and privacy-first
  • Self-hostable
  • Not for website analytics
  • AGPL-3.0 license
trench.dev
5

Trench

Open-source analytics infrastructure on ClickHouse and Kafka.

Trench is an MIT-licensed open-source analytics infrastructure in a single Docker image built on ClickHouse, Kafka, and Node.js for tracking events, queried with SQL or REST. Cloud features such as SLA and priority support belong to the managed offering, and the open-source version has community support only.

1.7K70MITSelf-hosted

Pricing: Free to self-host; the managed offering is paid.

  • Event pipeline you can build on
  • SQL and REST querying
  • MIT license
  • An infrastructure tool, not a dashboard
  • Last commit in April 2026

Compare June alternatives

AlternativeTypeLicenseSelf-hostedBest for
PostHogProduct analyticsMIT + eeYesClosest replacement
OpenReplaySession replayAGPL-3.0 + eeYesDebugging user journeys
CountlyProduct analyticsCountly Lite (restricted)YesMulti-platform apps
AptabaseApp analyticsAGPL-3.0YesMobile and desktop apps
TrenchEvent pipelineMITYesHigh event volumes

Which one should you choose?

Want a complete product analytics suite

PostHog adds feature flags, A/B testing, and session recording to analytics.

PostHog

Want session replay and journeys

OpenReplay offers replay, funnels, journeys, and heatmaps, self-hosted.

OpenReplay

Want analytics for mobile or desktop apps

Aptabase collects minimal data with simple SDKs and can be self-hosted.

Aptabase

Want to own the event pipeline

Trench handles high event volumes on ClickHouse and Kafka under MIT.

Trench