selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

poeticmetric logo

Self-host poeticmetric

v2.0.0-beta.8

Privacy-first open-source web analytics alternative

ReleaseOpen SourceAGPL-3.0
Updated15 hours ago
LanguageTypescript
Setup difficultyModerate
Stars
269
CPU
x86-64 or arm64
RAM
2GB minimum, 4GB recommended
Ports
8000 (Frontend (NGINX serving static Next.js build)), 8001 (REST API (Go backend))
Requires
ClickHouse, PostgreSQL, RabbitMQ, Redis, SMTP server
Install with Docker Compose
PoeticMetric dashboard showing website analytics overview

What is poeticmetric?

PoeticMetric is a privacy-focused, open-source web analytics tool that serves as a Google Analytics alternative. It collects no personal data, uses no cookies, and is fully compliant with major privacy regulations including GDPR, CCPA, PECR, and KVKK. The platform provides clear, clutter-free reports with team collaboration features, a REST API for integrations, and lightning-fast performance powered by ClickHouse. It is self-hosted via Docker Compose with pre-built images for linux/amd64 and linux/arm64 architectures. The architecture consists of a Next.js frontend served by NGINX, a Go backend with REST API, worker, and scheduler components, backed by PostgreSQL (primary database), ClickHouse (analytics OLAP), RabbitMQ (message broker), and Redis (ephemeral storage). A managed cloud service is also available at poeticmetric.com with free and paid tiers.

Should you self-host poeticmetric?

poeticmetric scores 50/100 on selfhost.directory (how scoring works) and ranks #17 of 21 in Web analytics. It has 269 GitHub stars.

There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.

Setup is moderate: expect some configuration beyond a single command. It is AGPL-3.0-licensed and written mostly in Typescript.

Its closest alternative on selfhost.directory is Plausible Analytics (81/100, 29 704 stars). It scores higher overall, so compare the two before you pick. See poeticmetric vs Plausible Analytics side by side.

Features

  • Email notifications
  • Google Search Console integration
  • Open source (AGPL-3.0)
  • Privacy-first analytics
  • Real-Time Analytics
  • REST API
  • Team Collaboration

poeticmetric README

How to install poeticmetric

Install poeticmetric with Docker Compose

Environment variables
CLICKHOUSE_PASSWORD, POSTGRES_PASSWORD, RABBITMQ_PASSWORD, REDIS_PASSWORD, GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, FRONTEND_BASE_URL, REST_API_BASE_URL, SMTP_FROM, SMTP_HOST, SMTP_PASSWORD, SMTP_PORT, SMTP_USER

$ curl -fsSL https://github.com/th0th/poeticmetric/releases/latest/download/self-hosted.tar.gz | tar -xz $ cd poeticmetric $ cp .env.example .env

Edit .env with your configuration

$ docker compose up -d

Requires Docker and Docker Compose installed. Images for linux/amd64 and linux/arm64.

How to configure poeticmetric

  • CLICKHOUSE_PASSWORDPassword for ClickHouse database

    Password for ClickHouse database

  • FRONTEND_BASE_URLBase URL for the frontend (e.g., http://your-server:8000)

    Base URL for the frontend (e.g., http://your-server:8000)

  • GOOGLE_CLIENT_IDGoogle OAuth client ID for Search Console integration

    Google OAuth client ID for Search Console integration

  • GOOGLE_CLIENT_SECRETGoogle OAuth client secret for Search Console integration

    Google OAuth client secret for Search Console integration

  • POSTGRES_PASSWORDPassword for PostgreSQL database

    Password for PostgreSQL database

  • RABBITMQ_PASSWORDPassword for RabbitMQ message broker

    Password for RabbitMQ message broker

  • REDIS_PASSWORDPassword for Redis

    Password for Redis

  • REST_API_BASE_URLBase URL for the REST API (e.g., http://your-server:8001)

    Base URL for the REST API (e.g., http://your-server:8001)

  • SMTP_FROMSender email address for SMTP

    Sender email address for SMTP

  • SMTP_HOSTSMTP server hostname

    SMTP server hostname

  • SMTP_PASSWORDSMTP password

    SMTP password

  • SMTP_PORTSMTP server port

    SMTP server port

  • SMTP_USERSMTP username

    SMTP username

More in Web analytics

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…