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?
FeatureCounterscaleTianji
Deploy effort≈5-minute setupUnder-an-hour setup
Health score80 · Excellent87 · Excellent
CategoryWeb AnalyticsWeb Analytics
LicenseMITApache-2.0
LanguageTypeScriptTypeScript
Setup difficultyEasyMedium
Min. RAM64 MB512 MB
Deploymentone-click, sourcedocker
GitHub stars★ 2,147★ 3,100
First released20242023
ReplacesGoogle AnalyticsGoogle Analytics

What are Counterscale and Tianji?

Counterscale

Counterscale is a simple, privacy-friendly web analytics tool designed to be easy to deploy and maintain on Cloudflare Workers. It tracks page views and visitors with minimal infrastructure.

  • Runs on Cloudflare Workers
  • Privacy-friendly tracking
  • Minimal infrastructure
  • Cheap to operate

Read the full Counterscale guide →

Tianji

Tianji is an all-in-one insight hub that combines website analytics, uptime monitoring, and server status into a single application. It offers a unified dashboard for observing your sites and infrastructure.

  • Website analytics
  • Uptime monitoring
  • Server status reporting
  • Unified insight dashboard

Read the full Tianji guide →

Counterscale vs Tianji: key differences

Both projects are written in TypeScript. Licensing differs — MIT for Counterscale versus Apache-2.0 for Tianji. Counterscale is the lighter option, starting around 64 MB of RAM against 512 MB for Tianji. Tianji lists first-class Docker deployment; Counterscale does not.

Why pick each one

Choose Counterscale if…

  • Almost free to run
  • Very easy deployment

Watch out for

  • Cloudflare dependency
  • Basic feature set
Counterscale details

Choose Tianji if…

  • Multiple tools in one
  • Clean interface

Watch out for

  • Jack-of-all-trades scope
  • Younger project
Tianji details

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.

Which is lighter on resources, Counterscale or Tianji?

Counterscale has the smaller minimum footprint at 64 MB of RAM, compared to about 512 MB for Tianji. Real-world usage depends on library size, user count, and enabled features.

Related comparisons