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
- Umami
- Uptime Kuma
- Matomo
- OpenTelemetry
- Grafana
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
- UmamiMITUmami is an MIT-licensed web analytics platform for traffic, campaigns, behavior, conversions, revenue, and product analytics without cookies. It serves teams that want self-hosted data ownership or managed hosting through Umami Cloud, which offers Hobby, Pro, Business, and Enterprise plans.
- Uptime KumaMITUptime Kuma is a self-hosted monitoring application for operators, homelabs, small teams, and public status pages. It is MIT licensed, free to run, and has no official hosted SaaS plan. Users provide the server, storage, backups, and maintenance. A broad monitor catalog, status pages, and many notification adapters make it a practical alternative to hosted uptime services when infrastructure control matters. Its scope suits availability checks, response history, certificates, and incident communication rather than deep tracing, log analysis, or full infrastructure metrics. The result is a focused service that keeps deployment and operational decisions with the organization using it.
- MatomoGPL-3.0-or-laterMatomo is a GPL-3.0-or-later web analytics platform for organisations that need to collect, inspect, and retain website data on infrastructure they control. The free on-premise edition supports commercial use under the license terms, while Matomo Cloud provides hosted service from €29 per month with maintenance, automatic updates, security monitoring, and daily backups.
- GrafanaAGPL-3.0-onlyGrafana is an open-source platform for querying, visualizing, alerting on, and sharing metrics, logs, and traces from multiple data sources. Grafana OSS uses AGPL-3.0-only and supports commercial use subject to that license. Grafana Cloud offers a free tier, Pro from $19 per month plus usage, and Enterprise from a $25,000 annual spend commitment.
- AptabaseAGPL-3.0-only server; MIT SDKsAptabase is an open-source analytics platform for mobile, desktop and web applications. Its SDKs send selected events to a TypeScript service with dashboards, live views, session timelines and CSV export. The server is AGPLv3, SDKs are MIT, and deployments can use Docker Compose or cloud plans priced by monthly event volume.
- BetterlyticsAGPL-3.0Betterlytics combines cookieless web analytics, session replay, client-error tracking, Core Web Vitals, uptime checks and status pages in one dashboard. It is AGPL-3.0 licensed and offered through EU-hosted cloud software or Docker self-hosting. Cloud includes a free tier and paid monthly plans; self-hosting shifts infrastructure, maintenance and operational responsibility to the operator.