head to head · open source
tianji vs Aptabase
tianji has 3,100 GitHub stars, 194 forks, 139 open issues and last shipped 2 days ago. Aptabase has 1,815 stars, 138 forks, 59 open issues and last shipped 8 days ago. tianji leads on adoption by 71% (3,100 vs 1,815 stars). tianji is written in TypeScript under Apache-2.0; Aptabase is written in TypeScript under AGPL-3.0. tianji has attracted 6% as many forks as stars, Aptabase 8%. 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 20902 open source comparisons
Side by side
| tianji | Aptabase | |
|---|---|---|
| GitHub stars | ★ 3.1K | ★ 1.8K |
| License | Apache-2.0 | AGPL-3.0 |
| Written in | TypeScript | TypeScript |
| Last push | 2026-09-19 | 2026-09-13 |
| Forks | ⑂ 194 | ⑂ 138 |
| 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 Aptabase if
- You want the Aptabase 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 Aptabase 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 Aptabase
Aptabase is an open source, privacy first analytics project for mobile, desktop, and web apps. It is written in TypeScript and released under the AGPL 3.0 license. The project describes itself as an alternative to Firebase and Google Analytics for teams that need usage insights without detailed personal identifiers.
read the full Aptabase 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 Aptabase more popular?
tianji has 3,100 GitHub stars and Aptabase has 1,815. tianji has the larger community by that measure.
Are tianji and Aptabase free?
Both are open source. tianji is licensed under Apache-2.0 and Aptabase under AGPL-3.0. Neither carries a licence fee.
What is the difference between tianji and Aptabase?
tianji is written in TypeScript and Aptabase 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 Aptabase?
Choose tianji if you want the larger community (3,100 stars) or its Apache-2.0 licence terms. Choose Aptabase if its feature set, stack or AGPL-3.0 licence fits better. Both are self-hostable.