Swetrix vs Tianji

A side-by-side comparison of two self-hosted web analytics options — licensing, setup difficulty, resource needs, and what each one replaces.

Not the right match-up?
FeatureSwetrixTianji
CategoryWeb AnalyticsWeb Analytics
LicenseAGPL-3.0Apache-2.0
LanguageTypeScriptTypeScript
Setup difficultyMediumMedium
Min. RAM512 MB512 MB
Deploymentdockerdocker
GitHub stars★ 1,112★ 3,078
First released20212023
ReplacesGoogle AnalyticsGoogle Analytics

Why pick each one

Choose Swetrix if…

  • No cookie banner needed
  • Detailed flow reports
Swetrix details

Choose Tianji if…

  • Multiple tools in one
  • Clean interface
Tianji details

Frequently asked questions

Is Swetrix or Tianji better?

Neither is universally better. Tianji has the larger community; both share a medium setup difficulty, so the decision comes down to features and licensing.

Are Swetrix and Tianji free and open-source?

Yes. Swetrix is licensed under AGPL-3.0 and Tianji under Apache-2.0. Both can be self-hosted at no software cost.

Can I run Swetrix and Tianji with Docker?

Swetrix: yes. Tianji: yes.

Related comparisons