ImranR98 / PixelNtfy

A simple tracking pixel generator that uses ntfy for pixel access alerts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PixelNtfy

A simple tracking pixel generator that uses ntfy for pixel access alerts.

Each pixel is associated with a tag and a timestamp that are included in the access notification. This service is stateless, meaning it has no database - pixel-associated info is stored in the pixel URL itself.

This service is meant to be self-hosted and single-user. To prevent unauthorized usage, the ntfy topic doubles as a password, and must be provided when the pixel is generated.

Environment variables needed (a .env file can be used for this):

  • NTFY_TOPIC: The ntfy topic - this MUST be 32 characters long (if not provided, a topic is auto-generated and printed to the console).
  • NTFY_TOKEN: A ntfy access token (optional).
  • NTFY_SERVER_URL: The ntfy server URL (optional - defaults to ntfy.sh).
  • PORT: The port to listen on (optional - defaults to 3000).

Screenshot:

About

A simple tracking pixel generator that uses ntfy for pixel access alerts.

License:GNU General Public License v3.0


Languages

Language:JavaScript 66.3%Language:HTML 33.3%Language:Dockerfile 0.4%