head to head · open source
Matomo vs tianji
Matomo has 21,880 GitHub stars, 2,896 forks, 2,578 open issues and last shipped yesterday. tianji has 3,098 stars, 194 forks, 139 open issues and last shipped yesterday. Matomo leads on adoption by 606% (21,880 vs 3,098 stars). Matomo is written in PHP under GPL-3.0; tianji is written in TypeScript under Apache-2.0. Matomo has attracted 13% as many forks as stars, tianji 6%. tianji was the more recently maintained of the two, and both are self-hostable with no licence fee. The two share 1 topic tag (analytics), 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 8884 open source comparisons
Side by side
| Matomo | tianji | |
|---|---|---|
| GitHub stars | ★ 22K | ★ 3.1K |
| License | GPL-3.0 | Apache-2.0 |
| Written in | PHP | TypeScript |
| Last push | 2026-09-17 | 2026-09-17 |
| Forks | ⑂ 2.9K | ⑂ 194 |
| Self-hosting | Yes | Yes |
| Data ownership | Your server | Your server |
pick Matomo if
- You weight community size — 22K stars and counting
- You want the GPL-3.0 license terms
- Your stack matches PHP
- You value the larger contributor base for long-term maintenance
pick tianji if
- You want the tianji feature set and don't need the biggest community
- You prefer the Apache-2.0 license terms
- Your stack matches TypeScript
- You evaluated both and tianji fits your workflow better
About Matomo
Matomo is an open source digital analytics platform for websites and apps, formerly known as Piwik. It lives in the PHP and MySQL web analytics ecosystem, and the provided description positions it as an open alternative to Google Analytics and Amplitude. The project lets an organization collect, visualise, and analyse visitor data from its own digital properties.
read the full Matomo overview →
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 →
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 Matomo or tianji more popular?
Matomo has 21,880 GitHub stars and tianji has 3,098. Matomo has the larger community by that measure.
Are Matomo and tianji free?
Both are open source. Matomo is licensed under GPL-3.0 and tianji under Apache-2.0. Neither carries a licence fee.
What is the difference between Matomo and tianji?
Matomo is written in PHP and tianji 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, Matomo or tianji?
Choose Matomo if you want the larger community (21,880 stars) or its GPL-3.0 licence terms. Choose tianji if its feature set, stack or Apache-2.0 licence fits better. Both are self-hostable.