head to head · open source
tianji vs Swetrix
tianji has 3,100 GitHub stars, 194 forks, 139 open issues and last shipped yesterday. Swetrix has 1,201 stars, 74 forks, 14 open issues and last shipped yesterday. tianji leads on adoption by 158% (3,100 vs 1,201 stars). tianji is written in TypeScript under Apache-2.0; Swetrix is written in TypeScript under AGPL-3.0. tianji has attracted 6% as many forks as stars, Swetrix 6%. Swetrix was the more recently maintained of the two, and both are self-hostable with no licence fee. The two share 3 topic tags (docker, google-analytics, self-hosted), so they are genuine substitutes rather than adjacent tools.
Two open source projects, one decision. Both are free and self-hostable — the differences are community size, license terms, language stack and release pace.
← all 20902 open source comparisons
Side by side
| tianji | Swetrix | |
|---|---|---|
| GitHub stars | ★ 3.1K | ★ 1.2K |
| License | Apache-2.0 | AGPL-3.0 |
| Written in | TypeScript | TypeScript |
| Last push | 2026-09-19 | 2026-09-19 |
| Forks | ⑂ 194 | ⑂ 74 |
| Self-hosting | Yes | Yes |
| Data ownership | Your server | Your server |
pick tianji if
- You weight community size — 3.1K stars and counting
- You want the Apache-2.0 license terms
- Your stack matches TypeScript
- You value the larger contributor base for long-term maintenance
pick Swetrix if
- You want the Swetrix feature set and don't need the biggest community
- You prefer the AGPL-3.0 license terms
- Your stack matches TypeScript
- You evaluated both and Swetrix fits your workflow better
About tianji
Tianji is a self hosted TypeScript project that combines website analytics, uptime monitoring, and server status in one application under the Apache 2.0 license. It is positioned as an all in one insight hub rather than only another Google Analytics alternative, and it lives in the web and product analytics ecosystem alongside tools such as Umami, Google Analytics, uptime monitors, and server status collectors.
read the full tianji overview →
About Swetrix
Swetrix is a cookieless, GDPR compliant, open source web analytics platform for teams that want privacy first traffic metrics plus error tracking, performance monitoring, session replays, funnels and custom events in one hosted or self hosted product.
read the full Swetrix overview →
More in Data & Analytics
Related comparisons
More Web & Product Analytics projects
Compare either of these against the rest of the Web & Product Analytics field.
Frequently asked questions
Is tianji or Swetrix more popular?
tianji has 3,100 GitHub stars and Swetrix has 1,201. tianji has the larger community by that measure.
Are tianji and Swetrix free?
Both are open source. tianji is licensed under Apache-2.0 and Swetrix under AGPL-3.0. Neither carries a licence fee.
What is the difference between tianji and Swetrix?
tianji is written in TypeScript and Swetrix in TypeScript. The practical differences are community size, licence terms, language stack and release cadence — all compared in the table above.
Which should I choose, tianji or Swetrix?
Choose tianji if you want the larger community (3,100 stars) or its Apache-2.0 licence terms. Choose Swetrix if its feature set, stack or AGPL-3.0 licence fits better. Both are self-hostable.