Counterscale 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?
Counterscale
Scalable web analytics that runs on Cloudflare Workers
VS
Tianji
Insight hub combining analytics, uptime, and server status
| Feature | Counterscale | Tianji |
|---|---|---|
| Category | Web Analytics | Web Analytics |
| License | MIT | Apache-2.0 |
| Language | TypeScript | TypeScript |
| Setup difficulty | Easy | Medium |
| Min. RAM | 64 MB | 512 MB |
| Deployment | one-click, source | docker |
| GitHub stars | ★ 2,113 | ★ 3,078 |
| First released | 2024 | 2023 |
| Replaces | Google Analytics | Google Analytics |
Why pick each one
Frequently asked questions
Is Counterscale or Tianji better?
Neither is universally better. Tianji has the larger community, while Counterscale is simpler to set up (easy difficulty). Choose based on the comparison table above and your own setup.
Are Counterscale and Tianji free and open-source?
Yes. Counterscale is licensed under MIT and Tianji under Apache-2.0. Both can be self-hosted at no software cost.
Can I run Counterscale and Tianji with Docker?
Counterscale: check the project docs for container support. Tianji: yes.