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.

Codeberg
Patchy logo

Self-host Patchy

Tiny temporary file uploader with expiring links

ReleaseOpen Source
Docker ComposeCompose file & guide
docker compose up
Updatedlast month
Setup difficultyEasy
Port
8080 (HTTP server for the uploader web UI and API)
Docker
git.nadeko.net/fijxu/patchy
Upload page of the web UI with JavaScript enabledUpload page rendered without JavaScript

What is Patchy?

Patchy is a lightweight, temporary file uploader written in Crystal, created as an easier-to-host alternative to the PHP-based Uguu. Uploaded files get generated short names, expire after a configurable number of hours, and each upload can carry a deletion link; the web UI also works with JavaScript disabled. It supports upload clients such as Chatterino2 and ShareX, can generate OpenGraph thumbnails through ffmpeg, limits uploads per IP address, keeps recently used files in an in-memory LRU cache to spare the disk, and offers an optional admin API for inspecting and deleting files. Storage can be the local filesystem, optionally an S3 bucket (experimental), and caching can use either the built-in LRU or a Redis-compatible database. Self-hosting is a single compose file pulling an image from git.nadeko.net or quay.io, or compiling with shards and running it under systemd behind nginx. Some parts are still marked experimental or in progress, notably S3 storage and VPN blocking, and there are no tagged releases.

Patchy alternatives

All self-hosted alternatives to Uguu →

Should you self-host Patchy?

Patchy scores 50/100 on selfhost.directory (how scoring works) and ranks #47 of 89 in File Sharing.

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

Setup is easy: most people get it running in one sitting. An official Docker image is available.

Its closest alternative on selfhost.directory is copyparty (82/100, 47 435 stars). It scores higher overall, so compare the two before you pick. See Patchy vs copyparty side by side.

Features

  • Admin API
  • Automatic HTTP/HTTPS protocol detection
  • Chatterino2 and ShareX support
  • File deletion linkNot available in the no-JavaScript interface yet.
  • In-memory LRU file cache
  • LocalizationEnglish, Spanish and Russian only for now.
  • Low memory footprint
  • OpenGraph thumbnail generationRequires ffmpeg; disabled by default.
  • Per-IP upload rate limiting
  • S3 bucket storageMarked experimental.
  • Temporary file uploads with automatic expiry
  • Tor and VPN IP blockingVPN blocking marked as in progress.
  • Unix socket listening
  • Works without JavaScript

How to install Patchy

Install Patchy with Docker Compose

  • Create a folder with the name you want
  • Download the docker-compose.yml file into the folder you created
  • If you are using docker, create the data folder using mkdir ./data && sudo chown -R 10000:10000 ./data
  • Run it using docker compose up if using docker or podman compose up if using Podman. If it works fine, then you can append the -d argument next to leave the container running on the background

Images are pushed to git.nadeko.net and quay.io.

How to configure Patchy

  • colorize_logstrueWhether log output is colorized.

    values: true / false

  • log_levelinfoLogging verbosity.

    values: none, fatal, error, warn, notice, info, debug, trace

  • files./data/files/storage: path where uploaded files are kept.
  • files_per_ip32rate_limits: how many files an IP may upload within rate_limit_period.
  • rate_limit_period600rate_limits: seconds after which an IP's upload limits are lifted.

More in File Sharing

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…