Back to directory

Data & Analytics · Web & Product Analytics

Tianji

Website analytics, uptime monitoring, and server status in one service

Tianji is an open source application for website analytics, uptime monitoring, server status, telemetry, and related operational tools. It targets independent developers and small teams, uses Apache-2.0, supports self-hosting, and offers Tianji Cloud, with hosting location documented in Frankfurt, Germany. A public cloud price is not listed in the referenced pricing information.

Key facts

License
Apache-2.0
Main language
TypeScript, Go
Maintainer
Community, led by moonrailgun
First released
2023
Latest release
v1.33.11, October 18, 2026
GitHub stars
3.1k, October 2026
Hosted option
Tianji Cloud

What Tianji is

Tianji is an all-in-one application for website analytics, uptime monitoring, and server status reporting. The repository was created on August 31, 2023, and GitHub lists moonrailgun as the dominant contributor with 2,301 contributions. The repository has 3,115 stars, 195 forks, and 143 open issues. Its contributor list also includes tommy141x, KingPin, 1Luc1, gander, JeffersonVelozo, impuls42, aligunesv, yangchuansheng, and ChobPT. The README describes Tianji as community driven and presents it as a response to combining analytics, availability checks, and server metrics from separate applications. No company backing, funding announcement, or named customer roster appears in the referenced project information. The project is maintained in the msgbyte/tianji repository.

How it works

Tianji combines website analytics, uptime monitoring, server status, Docker status, status pages, problem notifications, telemetry, OpenAPI access, team collaboration, UTM tracking, waitlists, surveys, Lighthouse reports, hooks, and custom monitoring scripts. A typical workflow begins with configuring a website, monitor, server reporter, or passive result endpoint. Tianji then records visitor events or availability results, presents trends and breakdowns in its interface, and sends notifications when a check fails. Custom scripts run in a restricted JavaScript environment and return numeric values for charts. A script can return -1 to mark a failed check and trigger notification handling. Passive result reception also supports agents and services that report health data instead of waiting for probes.

Architecture and recent releases

GitHub lists TypeScript, Go, JavaScript, HTML, CSS, Less, Shell, Go Template, Dockerfile, and related project files, with TypeScript and Go as the principal implementation languages. The documented Compose deployment starts the Tianji application and PostgreSQL, while manual installation uses Node.js 18.12 or later, or Node.js 20.4 or later, pnpm 9.x, Git, PostgreSQL, and PM2. Apprise is optional for notifications, and Helm installation support is listed. The default local service port is 12345. Releases v1.33.8 through v1.33.11 appeared from October 7 to October 18, 2026, adding website metrics, event breakdowns, authentication changes, AI gateway routing, and preservation of terminal metadata and failure details.

License and pricing

Apache-2.0 permits commercial use, modification, distribution, and derivative works, subject to license, attribution, modification-notice, and patent provisions. The license contains no SaaS restriction, and the repository does not describe an open-core split. The pricing information lists self-hosting at $0 per month with unlimited users, unlimited storage, secure data hosting, and community support, although operators still pay for infrastructure and administration. Tianji also offers Tianji Cloud, which is hosted in Frankfurt, Germany. The project website states support for GDPR and CCPA. Those statements do not replace an operator's own decisions about retention, access control, database location, incident response, and legal obligations.

Limitations and how it compares

Tianji's main limitation is breadth, since one application may offer less depth than a specialist analytics or monitoring product. Umami is a closer open source analytics comparison, while Uptime Kuma focuses more narrowly on availability monitoring. Matomo provides a larger analytics feature set, and Google Analytics offers a mature proprietary analytics service. Grafana and OpenTelemetry are stronger choices for teams building broader observability systems around multiple data sources. Tianji fits independent developers and small teams that want one deployment for basic product analytics and operational checks, while teams requiring advanced attribution, complex alerting, or large-scale observability should choose a specialist tool.

Main features

  • Website analytics. Tracks website activity and presents visitor statistics, page information, event breakdowns, and session trends.
  • Uptime monitoring. Checks service availability, accepts passive results, records trends, and supports notifications when a monitor reports failure.
  • Server status. Collects server status reports and presents operational information through dashboards and public status pages.
  • Custom scripts. Runs restricted JavaScript checks that return numeric values for charts, including custom health and balance measurements.
  • OpenAPI interface. Provides an OpenAPI interface for developers who need programmatic access to Tianji services and features.
  • Team collaboration. Includes workspace-oriented collaboration features for teams managing analytics, monitors, and operational information.
  • Lighthouse reports. Includes Lighthouse reporting for tracking website performance information alongside analytics and operational monitoring data.

Self-hosting Tianji

Docker Compose is the documented installation path and starts Tianji with PostgreSQL. The default local service uses port 12345. Manual installation requires Node.js 18.12 or later, or Node.js 20.4 or later, pnpm 9.x, Git, PostgreSQL, and PM2. Apprise is optional for notifications, and Helm installation support is listed. The documentation does not publish minimum CPU, memory, Redis, or object storage requirements. Manual upgrades involve checking out a release tag, installing dependencies, rebuilding, applying database migrations, and restarting PM2. Operators should maintain PostgreSQL backups and test migrations before upgrades.

Strengths

  • Apache-2.0 permits commercial use, modification, and redistribution under stated conditions.
  • One deployment combines analytics, uptime checks, server status, telemetry, and status pages.
  • Docker Compose starts the application with PostgreSQL on documented default port 12345.
  • Recent releases add website metrics, event breakdowns, authentication changes, and AI gateway updates.

Drawbacks

  • The combined product may provide less depth than specialist analytics or monitoring tools.
  • Manual installation requires Node.js, pnpm, PostgreSQL, Git, and PM2.
  • The referenced pricing information does not list a public Tianji Cloud price.

What teams replace with it

Teams usually evaluate Tianji when they want to move off Google Analytics, UptimeRobot, Statuspage.

For side-by-side commercial comparisons, browse our alternatives hub.

Open-source alternatives to Tianji

Frequently asked questions

Is Tianji free to use?

Tianji is available under Apache-2.0, and the pricing information lists self-hosting at $0 per month with unlimited users, unlimited storage, secure data hosting, and community support. Running it still requires infrastructure, maintenance, and administration. Tianji Cloud is a separate hosted offering, and its public price is not listed in the referenced information.

Can Tianji be used commercially?

Yes. Apache-2.0 permits use, reproduction, modification, distribution, derivative works, and commercial operation, subject to its conditions. Redistributors must include the license, preserve applicable notices, and identify modified files. The license includes a patent grant under its terms and does not grant permission to use the project's trademarks as product branding.

How do you self-host Tianji, and what does it require?

The recommended installation uses Docker Compose and starts Tianji with PostgreSQL. Manual installation requires Node.js 18.12 or later, or Node.js 20.4 or later, pnpm 9.x, Git, PostgreSQL, and PM2. Apprise is optional for notifications. The default service port is 12345, and Helm installation support is also listed. Minimum CPU and memory requirements are not published.

How does Tianji compare with Umami?

Umami focuses primarily on website analytics, while Tianji combines analytics with uptime monitoring, server status, telemetry, status pages, and related operational tools. Tianji suits teams that want one deployment for several lightweight needs. Umami is the closer choice when analytics is the main requirement and monitoring can remain in separate specialist services. Umami lists Pro at $20 per month and Business at $200 per month.

Does Tianji protect analytics data and support privacy requirements?

The Tianji website states support for GDPR and CCPA and identifies Frankfurt, Germany as the Tianji Cloud hosting location. Self-hosting gives operators control over deployment and database location, but privacy depends on configuration, retention, access controls, and legal practices. The project information does not define one complete security or compliance program for every deployment.

Similar projects to compare

Sources

Last updated 2026-10-22.