head to head · open source
tianji vs Swetrix
tianji has 3,118 GitHub stars, 199 forks, 139 open issues and last shipped 6 days ago. Swetrix has 1,211 stars, 78 forks, 14 open issues and last shipped 2 days ago. tianji leads on adoption by 157% (3,118 vs 1,211 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-10-30 | 2026-11-03 |
| Forks | ⑂ 199 | ⑂ 78 |
| 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 All in One Insight Hub Website analytics + Uptime Monitor + Server Status = Tianji All in one project! Motivation During our observations of the website. We often need to use multiple applications together. For example, we need analysis tools such as GA / umami to check pv/uv and the number of visits to each page, we need an uptime monitor to check the network quality and connectivity of the server, and we need to use prometheus to obtain the status reported by the server to check the quality of the server. In addition, if we develop an application that allows open source deployment, we often need a…
read the full tianji overview →
About Swetrix
Swetrix Privacy first, open source web analytics — with error tracking, session replays and performance monitoring built in. See the live demo » Website · Docs · Issues · Discord · Twitter ℹ️ What is Swetrix? Swetrix is a cookieless, GDPR compliant analytics platform — a privacy respecting alternative to Google Analytics. No cookies, no consent banner, no cross device tracking, all data anonymised. It's the only thing on the page and the dashboard is fast and real time. It goes beyond pageviews: alongside traffic stats you get error tracking , performance monitoring , session replays , funnels and custom events…
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,118 GitHub stars and Swetrix has 1,211. 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,118 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.