Skip to content
프로젝트

소개

Streamystats는 Jellyfin용 통계 서비스로, 분석과 데이터 시각화 기능을 제공합니다.

과학 및 공학

이 수치를 측정하는 방법

What you can do

  • Dashboard with overview statistics, live sessions, recommendations, and more
  • User-specific watch history and statistics
  • Library statistics
  • Watch time graphs with advanced filtering

측정된 스타 증가

in 24h
+1
in 7 days
+2
in 15 days
+9
in 1 month
+17

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Streamystats

Streamystats is a statistics service for Jellyfin, providing analytics and data visualization. 📈 Built with modern advanced frameworks.

This is a personal hobby project, so please don't expect rapid development. Even though I am a full-time experienced developer, this project is prone to bugs, and I am using AI-assisted development for tasks ranging from PR reviews to refactoring and coding new features.

Features

  • Dashboard with overview statistics, live sessions, recommendations, and more
  • User-specific watch history and statistics
  • Library statistics
  • Watch time graphs with advanced filtering
  • Client statistics
  • Multi-server and user support
  • AI chat with your library and get watch recommendations
  • Embedding supported watch recommendations
  • Supported by Janitorr (beta)
  • Import data from Jellystat and Playback Reporting Plugin to get started

Embeddings

Library items are embedded using OpenAI-compatible APIs if enabled, supporting multiple models and custom configurations. Embeddings are stored in vectorchord with support for any dimension, allowing you to use any embedding model. The system automatically creates vector indexes optimized for similarity search.

AI Chat

Interactive chat interface. Supports multiple providers out of the box with any OpenAI-compatible API.

The chat includes function calling with 13 specialized tools:

  • Personalized recommendations based on watch history
  • Semantic library search using embeddings
  • Watch statistics and most-watched content
  • Shared recommendations for multiple users
  • Genre filtering and top-rated items
  • Recently added content discovery

AI Recommendations

Recommendations use vector similarity (cosine distance) to find content similar to your watch history. The system analyzes your viewing patterns and suggests movies and series. Each recommendation includes explanations showing which watched items led to the suggestion.

Roadmap

  • Individual item statistics
  • More statistics
  • Only sync certain libraries
  • More AI tools for better chat

Getting started

Supported Jellyfin versions

Streamystats uses only Jellyfin's current REST API with Authorization: MediaBrowser headers, so it keeps working on servers that have legacy authorization disabled. It is tested against Jellyfin 12.0 and 10.11; 10.10.7, the oldest release Jellyfin supports upgrading from, should work as well.

Playback reporting plugin is no longer needed and Streamystats solely relies on the Jellyfin API for statistics.

Docker

  1. Install Docker and Docker Compose if you haven't already.
  2. Copy the docker-compose.yml file to your desired location. Use tag :latest (read more below in Version Tags).
  3. Change any ports if needed. Default web port is 3000.
  4. Change the SESSION_SECRET in the docker-compose.yml file to a random string. You can generate one with openssl rand -hex 64.
  5. Start the application with docker-compose up -d
  6. Open your browser and navigate to http://localhost:3000
  7. Follow the setup wizard to connect your Jellyfin server.

First time load can take a while, depending on the size of your library.

Secrets from files

The secrets below can also be read from a file by appending _FILE to their name (for example SESSION_SECRET_FILE=/run/secrets/session_secret). This works with Docker secrets, Kubernetes secret volumes or a Vault/OpenBao agent, in the AIO image as well as the separate nextjs and job-server images. It follows the official postgres image convention: setting both VAR and VAR_FILE is an error, and trailing newlines in the file are ignored.

Variable Notes
DATABASE_URL Optional. When not set, it is built from POSTGRES_PASSWORD and the POSTGRES_* settings below
POSTGRES_PASSWORD Database password, URL-encoded into the connection string
SESSION_SECRET Session signing secret
INTERNAL_API_KEY Job server to web app key, defaults to SESSION_SECRET
NEXT_SERVER_ACTIONS_ENCRYPTION_KEY Server actions encryption key

When DATABASE_URL is not set, the connection also uses POSTGRES_USER (default postgres), POSTGRES_HOST (default localhost, vectorchord in the provided docker-compose.yml), POSTGRES_PORT (default 5432) and POSTGRES_DB (default streamystats). Keep DATABASE_URL unset when you use POSTGRES_PASSWORD_FILE, otherwise it takes precedence.

Version Tags

Version tags (e.g., v1.2.3) are automatically generated on release. These tags provide stable, tested reference points for production use. I recommend pinning to specific version tags for stability.

The :latest tag always points to the latest commit on the main branch. It contains the most recent features and fixes. While typically stable, it may occasionally contain breaking changes.

Rollbacks / Downgrades (Docker)

Database migrations are automated and handled by the job-server container (it runs migrations on startup before becoming healthy).

Streamystats does not perform automatic rollbacks/downgrades of the database schema for Docker users.

  • No Automatic Downgrade: If you downgrade the Docker image version (for example changing the tag from v1.95.0 back to v1.94.0), the database remains migrated to the newer version. The older application version will likely fail to start or behave incorrectly because it does not understand the newer schema.
  • Recommended Strategy: The official and only supported method to “rollback” a deployment is to restore a database backup.
  • Important: Always take a database backup before updating to a newer image version.

Dockerless

Docker is currently the easiest and recommended way to run streamystats. However you can also run without docker.

See the documentation

Screenshots

Screenshot 2025-12-23 at 11 46 07 Screenshot 2025-12-23 at 11 49 35 Screenshot 2025-12-23 at 11 49 24 Screenshot 2025-12-23 at 11 47 52 Screenshot 2025-12-23 at 11 47 44 Screenshot 2025-12-23 at 11 46 32 Screenshot 2025-12-23 at 11 46 25

Tech Stack

  • Frontend: Next.js, React, TypeScript
  • Backend: Hono with Bun v1.3
  • Database: vectorchord (used for embeddings)
  • Containerization: Docker

관련 프로젝트 살펴보기

불러오는 중…