Skip to content

A powerful, self-hostable application to automatically monitor GitHub repository releases and receive instant email and Apprise notifications, including Telegram, Discord, Slack and many more.

License

Notifications You must be signed in to change notification settings

iamspido/github-release-monitor

Repository files navigation

GitHub Release Monitor

A powerful, self-hostable application to automatically monitor GitHub repository releases and receive instant email or Apprise notifications. Keep track of your favorite projects without manually checking for updates.

✨ Key Features

  • Automated Release Monitoring: Add public GitHub repositories and let the app automatically check for new releases in the background.
  • Flexible Notifications:
    • Email: Configure SMTP settings to receive detailed email notifications.
    • Apprise: Integrate with Apprise to send notifications to over 70 services like Discord, Telegram, Slack, and more.
  • Flexible Release Filtering:
    • Global Settings: Define application-wide rules for which release types (stable, pre-release, draft) to monitor.
    • Per-Repository Overrides: Customize filtering rules for individual repositories.
    • Regex-Powered Precision: Use "Include" and "Exclude" regular expression patterns for fine-grained control over release tags. The "Include" pattern overrides the standard channel filters, giving you ultimate control.
    • Pre-release Granularity: Select specific pre-release tags to watch (e.g., alpha, beta, rc).
  • Modern & Responsive UI:
    • Clean, intuitive interface built with ShadCN UI and Tailwind CSS.
    • Full dark mode support.
    • Responsive design for both desktop and mobile use.
  • Internationalization (i18n): Supports English and German out of the box.
  • Data Management: Easily import or export your list of monitored repositories via JSON.
  • System Diagnostics: A built-in test page to verify GitHub API connectivity and notification service (SMTP, Apprise) configuration.
  • Secure Authentication: Protects the application with a simple username/password login system powered by iron-session.
Image Image
Image Image

🛠️ Tech Stack

📜 License

This project is licensed under the AGPL-3.0-only License.


🐳 Docker Compose Setup (Recommended)

The example/ directory contains a complete Docker Compose setup for a robust, production-ready deployment. This setup includes:

  • Traefik: A modern reverse proxy that automatically handles SSL certificates from Let's Encrypt.
  • SMTP-Relay: A local SMTP server for sending email notifications.
  • GitHub Release Monitor: The main application itself.

1. Prerequisites

  • Docker and Docker Compose installed on your server.
  • A domain name (e.g., github-releases.your-domain.com) pointing to your server's public IP address.

2. Configuration

Navigate to the example/ directory. You will need to configure the environment files for each service.

a) GitHub Release Monitor (Main App)

  1. Go to example/github-release-monitor.

  2. Edit the existing .env file. Below are the key variables to configure.

    Authentication (Required)

    # A long, random string (at least 32 characters) used to encrypt session cookies.
    # You can generate one using: openssl rand -base64 32
    AUTH_SECRET=your_super_secret_session_password_here
    
    # The username and password for logging into the application.
    AUTH_USERNAME=admin
    AUTH_PASSWORD=your_secure_password

    Protocol (HTTP/HTTPS) By default, the application runs in secure (HTTPS) mode. If you are not using a reverse proxy and need to run the app on plain HTTP, you must set this variable.

    # Set to 'false' only if running without SSL/TLS (e.g., direct HTTP access).
    # This makes session cookies insecure. Recommended to leave as 'true' for production.
    HTTPS=true

    GitHub API (Recommended) To avoid being rate-limited, it is highly recommended to create a Personal Access Token with no scopes (public repository access is sufficient and more secure).

    # Your GitHub Personal Access Token to increase the API rate limit from 60 to 5000 requests/hour.
    # Create a token with no scopes (public repo access) for better security.
    GITHUB_ACCESS_TOKEN=your_github_pat_here

    Email (SMTP) Configuration The example compose setup uses a local SMTP relay. The default values are already set for this. You only need to change MAIL_FROM_ADDRESS and MAIL_TO_ADDRESS.

    # The "from" and "to" addresses for notifications.
    MAIL_FROM_ADDRESS=[email protected]
    MAIL_FROM_NAME=GitHub Release Monitor
    MAIL_TO_ADDRESS=[email protected]

    Important: For this Docker setup, MAIL_HOST is correctly set to smtp and MAIL_PORT to 25. You do not need a MAIL_USERNAME or MAIL_PASSWORD for the local relay.

    Apprise Configuration (Optional) Connect to an Apprise service for multi-platform notifications.

    # This URL points to your Apprise service's notification endpoint.
    #
    # Case 1: For stateless notifications via `APPRISE_STATELESS_URLS` in Apprise,
    # use the general notify endpoint.
    # APPRISE_URL=http://apprise:8000/notify
    #
    # Case 2: For notifications configured via the Apprise web UI, include the
    # specific configuration key in the path.
    # APPRISE_URL=http://apprise:8000/notify/your_key
    #
    # IMPORTANT: The configuration of the actual notification services (e.g., Telegram bots,
    # Discord webhooks) is done within the Apprise application itself, either via environment
    # variables or its web UI.
    APPRISE_URL=
  3. Edit compose.yaml.

  4. Update the Traefik router rule to use your domain name:

    # ...
    labels:
      # ...
      # HTTP Router
      - "traefik.http.routers.github-release-monitor.rule=Host(`github-releases.your-domain.com`)"
      # HTTPS Router
      - "traefik.http.routers.github-release-monitor-secured.rule=Host(`github-releases.your-domain.com`)"
      # ...

b) Traefik (Reverse Proxy)

  1. Go to example/traefik.
  2. Edit compose.yaml.
  3. Change the email address for Let's Encrypt certificate registration:
    # ...
    command:
      # ...
      - "--certificatesresolvers.letsencrypt.acme.email=your-email@your-domain.com"
      # ...

c) SMTP Relay (Optional, for Email Functionality)

For improved email deliverability and to avoid being marked as spam, it's recommended to configure the SMTP relay with your domain.

  1. Go to example/smtp.
  2. Edit compose.yaml.
  3. Update POSTFIX_myhostname and OPENDKIM_DOMAINS to match the domain from which you are sending emails. This should typically be the domain you are using for the MAIL_FROM_ADDRESS in the main app's .env file.
    # ...
    environment:
      - "POSTFIX_myhostname=your-domain.com"
      - "OPENDKIM_DOMAINS=your-domain.com=example-mail"
    # ...

For further customization of the SMTP relay, please refer to the official documentation of the wader/postfix-relay image.

3. Prepare Data Directory

The application stores its configuration and data in a ./data directory. For Docker, this directory on your host machine must have the correct permissions so that the application process inside the container can write to it.

Create the directory and set the appropriate ownership before starting the containers:

# Navigate to the correct folder
cd example/github-release-monitor

# Create the data directory
mkdir -p data

# Set ownership to user/group 1001 (the standard non-root user in many Node.js images)
sudo chown -R 1001:1001 data

4. Launch the Stack

Start each service using Docker Compose. It's recommended to start them in the following order from the root of the project:

# 1. Start Traefik (creates the shared network)
docker compose -f example/traefik/compose.yaml up -d

# 2. Start the SMTP Relay
docker compose -f example/smtp/compose.yaml up -d

# 3. Start the GitHub Release Monitor
docker compose -f example/github-release-monitor/compose.yaml up -d

After a few moments, your application should be accessible at https://github-releases.your-domain.com with a valid SSL certificate.


🐳 Docker Run Setup

If you prefer not to use Docker Compose, you can run the application using a single Docker command.

1. Configure Environment

Before running the container, you must create a .env file in the same directory where you will run the docker run command. The container will read its configuration from this file.

Copy the required variables from the manual setup guide's environment configuration section into a new file named .env. For a direct HTTP setup without a proxy, you must add HTTPS=false.

# ... other variables
HTTPS=false

2. Prepare Data Directory and Run Container

Create a host directory for the application data and set the correct permissions.

# Create the data directory
mkdir -p data

# Set ownership to user/group 1001 (common for non-root Node.js containers)
sudo chown -R 1001:1001 data

# Pull the latest image and run the container
docker run -d \
  -p 8080:3000 \
  -v ./data:/app/data \
  --env-file ./.env \
  --name github-release-monitor \
  ghcr.io/iamspido/github-release-monitor:latest

The application will be accessible on http://localhost:8080. Note that this setup does not include a reverse proxy or automatic SSL, which is recommended for production use.


🛠️ Setup Guide (Manual)

Follow these steps for a manual setup of the GitHub Release Monitor.

1. Clone the Repository

First, clone the project to your local machine:

git clone https://github.com/iamspido/github-release-monitor.git
cd github-release-monitor

2. Install Dependencies

Install the required npm packages.

npm install

3. Create Data Directory and Set Permissions

The application saves its configuration in a data/ directory at the project root. Ensure this directory exists and is writable by the user that will run the Next.js process.

# Create the directory
mkdir -p data

# Ensure the user running the app can write to it (example)
# This might not be necessary if you are the owner.
sudo chown $(whoami) data

4. Configure Environment Variables

The application is configured using a .env file in the root of the project. Create this file by copying the example:

# In your terminal
touch .env

Now, open the .env file and add the following variables.

Authentication (Required)

These variables are essential for securing your application.

# A long, random string (at least 32 characters) used to encrypt session cookies.
# You can generate one using: openssl rand -base64 32
AUTH_SECRET=your_super_secret_session_password_here

# The username and password for logging into the application.
AUTH_USERNAME=admin
AUTH_PASSWORD=your_secure_password

Protocol (HTTP/HTTPS)

This variable controls whether the application runs in secure (HTTPS) or insecure (HTTP) mode. It affects session cookies and security headers.

# Set to 'false' if running without a reverse proxy or SSL certificate (e.g., direct HTTP).
# Defaults to 'true' for secure HTTPS operation.
HTTPS=true

GitHub API (Recommended)

To avoid being rate-limited by the GitHub API, it is highly recommended to create a Personal Access Token with no scopes (public repository access is sufficient and more secure).

# Your GitHub Personal Access Token to increase the API rate limit from 60 to 5000 requests/hour.
# Create a token with no scopes (public repo access) for better security.
GITHUB_ACCESS_TOKEN=your_github_pat_here

Email (SMTP) Configuration (Optional)

These variables are required if you want to receive email notifications.

# Your SMTP server details.
MAIL_HOST=smtp.example.com
MAIL_PORT=587
MAIL_USERNAME=[email protected]
MAIL_PASSWORD=your_email_password_or_app_token

# The "from" and "to" addresses for notifications.
MAIL_FROM_ADDRESS=[email protected]
MAIL_FROM_NAME=GitHub Release Monitor
MAIL_TO_ADDRESS=[email protected]

Apprise Configuration (Optional)

Connect to an Apprise service for multi-platform notifications.

# This URL points to your Apprise service's notification endpoint.
#
# Case 1: For stateless notifications via `APPRISE_STATELESS_URLS` in Apprise,
# use the general notify endpoint.
# APPRISE_URL=http://localhost:8000/notify
#
# Case 2: For notifications configured via the Apprise web UI, include the
# specific configuration key in the path.
# APPRISE_URL=http://localhost:8000/notify/your_key
#
# IMPORTANT: The configuration of the actual notification services (e.g., Telegram bots,
# Discord webhooks) is done within the Apprise application itself, either via environment
# variables or its web UI.
APPRISE_URL=

5. Running the Application

Once your .env file is configured, you can run the application in one of two modes:

Production Mode

For a production deployment, build and start the application:

# 1. Build the application for production
npm run build

# 2. Start the production server
npm run start

The application will be served on port 3000.

Development Mode

For development purposes, you can start the development server which provides features like hot-reloading:

npm run dev

The application will be available at http://localhost:3000. Log in with the AUTH_USERNAME and AUTH_PASSWORD you configured.


⚙️ Environment Variables

Here is a complete list of all environment variables used by the application.

Variable Description Required? Default
AUTH_SECRET A secret key (at least 32 characters) for encrypting user sessions. Yes -
AUTH_USERNAME The username for logging into the application. Yes -
AUTH_PASSWORD The password for logging into the application. Yes -
HTTPS Set to false to run in HTTP mode. Defaults to true for secure operation. No true
GITHUB_ACCESS_TOKEN A GitHub Personal Access Token to increase the API rate limit. A token with no scopes is sufficient. No (but recommended) -
MAIL_HOST The hostname or IP address of your SMTP server. Yes, for email -
MAIL_PORT The port for your SMTP server (e.g., 587 or 465). Yes, for email -
MAIL_USERNAME The username for SMTP authentication. No (depends on server) -
MAIL_PASSWORD The password or app token for SMTP authentication. No (depends on server) -
MAIL_FROM_ADDRESS The email address that notifications will be sent from. Yes, for email -
MAIL_FROM_NAME The display name for the "from" address. No GitHub Release Monitor
MAIL_TO_ADDRESS The email address that will receive the notifications. Yes, for email -
APPRISE_URL URL of your Apprise service's notification endpoint (e.g., http://host/notify or http://host/notify/key). No -
TZ The timezone for the container (e.g., Europe/Berlin). Affects log timestamps and date formatting. No System default

Star History

Star History Chart

About

A powerful, self-hostable application to automatically monitor GitHub repository releases and receive instant email and Apprise notifications, including Telegram, Discord, Slack and many more.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages